Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

ht_c_syntax_lexer Class Reference

#include <syntax.h>

Inheritance diagram for ht_c_syntax_lexer:

ht_lang_syntax_lexer ht_syntax_lexer Object List of all members.

Public Member Functions

void init ()
virtual void done ()
virtual vcp getcolor_syntax (UINT pal_index)
virtual lexer_state getinitstate ()
virtual lexer_token geterrortoken ()
virtual char * getname ()
virtual lexer_token gettoken (void *buf, UINT buflen, text_pos p, bool start_of_line, lexer_state *ret_state, UINT *ret_len)
virtual vcp gettoken_color (lexer_token t)

Protected Member Functions

virtual void config_changed ()
void reloadpalette ()

Protected Attributes

char ** c_reserved_sorted
UINT c_reserved_count
palette c_pal

Member Function Documentation

void ht_c_syntax_lexer::config_changed  )  [protected, virtual]
 

Reimplemented from ht_syntax_lexer.

Definition at line 368 of file syntax.cc.

References reloadpalette().

Referenced by init().

void ht_c_syntax_lexer::done  )  [virtual]
 

Reimplemented from ht_lang_syntax_lexer.

Definition at line 361 of file syntax.cc.

References c_pal, c_reserved_sorted, palette::data, and ht_lang_syntax_lexer::done().

vcp ht_c_syntax_lexer::getcolor_syntax UINT  pal_index  )  [virtual]
 

Implements ht_syntax_lexer.

Definition at line 373 of file syntax.cc.

References c_pal, getcolorv(), UINT, and vcp.

Referenced by gettoken_color().

lexer_token ht_c_syntax_lexer::geterrortoken  )  [virtual]
 

Implements ht_syntax_lexer.

Definition at line 378 of file syntax.cc.

References LEX_CTOK_ERROR, and lexer_token.

lexer_state ht_c_syntax_lexer::getinitstate  )  [virtual]
 

Implements ht_syntax_lexer.

Definition at line 383 of file syntax.cc.

References LEX_CST_NORMAL, and lexer_state.

char * ht_c_syntax_lexer::getname  )  [virtual]
 

Implements ht_syntax_lexer.

Definition at line 388 of file syntax.cc.

lexer_token ht_c_syntax_lexer::gettoken void *  buf,
UINT  buflen,
text_pos  p,
bool  start_of_line,
lexer_state ret_state,
UINT ret_len
[virtual]
 

Reimplemented from ht_lang_syntax_lexer.

Definition at line 393 of file syntax.cc.

References buf, c_reserved_count, c_reserved_sorted, ht_lang_syntax_lexer::gettoken(), LEX_CTOK_IDENTIFIER, LEX_CTOK_RIDENTIFIER, lexer_state, lexer_token, match_sorted_stringtable(), and UINT.

vcp ht_c_syntax_lexer::gettoken_color lexer_token  t  )  [virtual]
 

Implements ht_syntax_lexer.

Definition at line 404 of file syntax.cc.

References getcolor_syntax(), LEX_CTOK_CHAR, LEX_CTOK_COMMENT, LEX_CTOK_FNUMBER, LEX_CTOK_IDENTIFIER, LEX_CTOK_NUMBER, LEX_CTOK_PREPROCESS, LEX_CTOK_RIDENTIFIER, LEX_CTOK_STRING, LEX_CTOK_SYMBOL, LEX_CTOK_WHITESPACE, lexer_token, palidx_syntax_char, palidx_syntax_comment, palidx_syntax_floatnum, palidx_syntax_identifier, palidx_syntax_intnum, palidx_syntax_preprocess, palidx_syntax_reserved, palidx_syntax_string, palidx_syntax_symbol, palidx_syntax_whitespace, VC_BLACK, VC_RED, VCP, and vcp.

void ht_c_syntax_lexer::init  ) 
 

Reimplemented from Object.

Definition at line 344 of file syntax.cc.

References c_pal, c_reserved, c_reserved_count, c_reserved_sorted, c_syntax_lexer_rules, config_changed(), create_sorted_stringtable(), palette::data, Object::init(), NULL, and palette::size.

Referenced by ht_app::init().

void ht_c_syntax_lexer::reloadpalette  )  [protected]
 

Definition at line 421 of file syntax.cc.

References c_pal, palette::data, load_pal(), NULL, palclasskey_syntax, and palkey_syntax_c_default.

Referenced by config_changed().


Member Data Documentation

palette ht_c_syntax_lexer::c_pal [protected]
 

Definition at line 107 of file syntax.h.

Referenced by done(), getcolor_syntax(), init(), and reloadpalette().

UINT ht_c_syntax_lexer::c_reserved_count [protected]
 

Definition at line 105 of file syntax.h.

Referenced by gettoken(), and init().

char** ht_c_syntax_lexer::c_reserved_sorted [protected]
 

Definition at line 104 of file syntax.h.

Referenced by done(), gettoken(), and init().


The documentation for this class was generated from the following files:
Generated on Fri May 7 21:15:56 2004 by doxygen 1.3.5