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

syntax.h File Reference

#include "common.h"
#include "htio.h"
#include "htobj.h"

Go to the source code of this file.

Classes

class  ht_c_syntax_lexer
class  ht_html_syntax_lexer
class  ht_lang_syntax_lexer
class  ht_syntax_lexer
struct  syntax_lexer_rule
struct  text_pos

Defines

#define HT_HTML_SYNTAX_LEXER
#define palkey_syntax_default   "c/default"
#define palidx_syntax_whitespace   0
#define palidx_syntax_comment   1
#define palidx_syntax_identifier   2
#define palidx_syntax_reserved   3
#define palidx_syntax_intnum   4
#define palidx_syntax_floatnum   5
#define palidx_syntax_string   6
#define palidx_syntax_char   7
#define palidx_syntax_symbol   8
#define palidx_syntax_preprocess   9
#define palidx_syntax_meta   10

Typedefs

typedef UINT lexer_state
typedef UINT lexer_state_set
typedef UINT lexer_token

Enumerations

enum  lexer_rule_string_type {
  LRST_EMPTY, LRST_STRING, LRST_STRING_EXPECT, LRST_REGEX,
  LRST_CHARSET, LRST_WHITESPACE, LRST_QSTRING, LRST_DQSTRING,
  LRST_ANYCHAR, LRST_IDENTIFIER
}

Functions

char ** create_sorted_stringtable (char **table)


Define Documentation

#define HT_HTML_SYNTAX_LEXER
 

Definition at line 28 of file syntax.h.

#define palidx_syntax_char   7
 

Definition at line 165 of file syntax.h.

Referenced by ht_c_syntax_lexer::gettoken_color().

#define palidx_syntax_comment   1
 

Definition at line 159 of file syntax.h.

Referenced by ht_c_syntax_lexer::gettoken_color().

#define palidx_syntax_floatnum   5
 

Definition at line 163 of file syntax.h.

Referenced by ht_c_syntax_lexer::gettoken_color().

#define palidx_syntax_identifier   2
 

Definition at line 160 of file syntax.h.

Referenced by ht_c_syntax_lexer::gettoken_color().

#define palidx_syntax_intnum   4
 

Definition at line 162 of file syntax.h.

Referenced by ht_c_syntax_lexer::gettoken_color().

#define palidx_syntax_meta   10
 

Definition at line 168 of file syntax.h.

Referenced by ht_text_viewer::draw().

#define palidx_syntax_preprocess   9
 

Definition at line 167 of file syntax.h.

Referenced by ht_c_syntax_lexer::gettoken_color().

#define palidx_syntax_reserved   3
 

Definition at line 161 of file syntax.h.

Referenced by ht_c_syntax_lexer::gettoken_color().

#define palidx_syntax_string   6
 

Definition at line 164 of file syntax.h.

Referenced by ht_c_syntax_lexer::gettoken_color().

#define palidx_syntax_symbol   8
 

Definition at line 166 of file syntax.h.

Referenced by ht_c_syntax_lexer::gettoken_color().

#define palidx_syntax_whitespace   0
 

Definition at line 158 of file syntax.h.

Referenced by ht_c_syntax_lexer::gettoken_color().

#define palkey_syntax_default   "c/default"
 

Definition at line 156 of file syntax.h.


Typedef Documentation

typedef UINT lexer_state
 

Definition at line 35 of file syntax.h.

Referenced by ht_text_viewer::draw(), ht_html_syntax_lexer::getinitstate(), ht_c_syntax_lexer::getinitstate(), ht_info_lexer::getinitstate(), ht_help_lexer::getinitstate(), ht_ltextfile::getline(), ht_layer_textfile::getline(), ht_html_syntax_lexer::gettoken(), ht_c_syntax_lexer::gettoken(), ht_lang_syntax_lexer::gettoken(), ht_info_lexer::gettoken(), ht_help_lexer::gettoken(), ht_ltextfile::next_instate(), ht_ltextfile::reread(), and ht_ltextfile::update_parse().

typedef UINT lexer_state_set
 

Definition at line 36 of file syntax.h.

typedef UINT lexer_token
 

Definition at line 37 of file syntax.h.

Referenced by ht_text_viewer::draw(), ht_html_syntax_lexer::geterrortoken(), ht_c_syntax_lexer::geterrortoken(), ht_info_lexer::geterrortoken(), ht_help_lexer::geterrortoken(), ht_html_syntax_lexer::gettoken(), ht_c_syntax_lexer::gettoken(), ht_lang_syntax_lexer::gettoken(), ht_info_lexer::gettoken(), ht_help_lexer::gettoken(), ht_html_syntax_lexer::gettoken_color(), ht_c_syntax_lexer::gettoken_color(), ht_info_lexer::gettoken_color(), and ht_help_lexer::gettoken_color().


Enumeration Type Documentation

enum lexer_rule_string_type
 

Enumeration values:
LRST_EMPTY 
LRST_STRING 
LRST_STRING_EXPECT 
LRST_REGEX 
LRST_CHARSET 
LRST_WHITESPACE 
LRST_QSTRING 
LRST_DQSTRING 
LRST_ANYCHAR 
LRST_IDENTIFIER 

Definition at line 39 of file syntax.h.


Function Documentation

char** create_sorted_stringtable char **  table  ) 
 

Definition at line 650 of file syntax.cc.

References malloc(), and qsort_stringlist().

Referenced by ht_c_syntax_lexer::init().


Generated on Fri May 7 21:15:52 2004 by doxygen 1.3.5