Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

scanner.c File Reference

Go to the source code of this file.

Compounds

struct  yy_buffer_state

Typedefs

typedef struct yy_buffer_stateYY_BUFFER_STATE
typedef unsigned int yy_size_t
typedef unsigned char YY_CHAR
typedef int yy_state_type

Functions

void yyrestart YY_PROTO ((FILE *input_file))
void yy_switch_to_buffer YY_PROTO ((YY_BUFFER_STATE new_buffer))
void yy_load_buffer_state YY_PROTO ((void))
YY_BUFFER_STATE yy_create_buffer YY_PROTO ((FILE *file, int size))
void yy_delete_buffer YY_PROTO ((YY_BUFFER_STATE b))
void yy_init_buffer YY_PROTO ((YY_BUFFER_STATE b, FILE *file))
YY_BUFFER_STATE yy_scan_buffer YY_PROTO ((char *base, yy_size_t size))
YY_BUFFER_STATE yy_scan_string YY_PROTO ((yyconst char *yy_str))
YY_BUFFER_STATE yy_scan_bytes YY_PROTO ((yyconst char *bytes, int len))
void* yy_flex_alloc YY_PROTO ((yy_size_t))
void* yy_flex_realloc YY_PROTO ((void *, yy_size_t))
void yy_flex_free YY_PROTO ((void *))
yy_state_type yy_try_NUL_trans YY_PROTO ((yy_state_type current_state))
void yy_fatal_error YY_PROTO ((yyconst char msg[]))
void yyerror (char *message)
void appendToDmBuffer (void)
char* getUnescapedString (char *literal)
char getUnescapedChar (char *literal, int *incr)
void yyunput YY_PROTO ((int c, char *buf_ptr))
void yy_flex_strncpy YY_PROTO ((char *, yyconst char *, int))
int yy_flex_strlen YY_PROTO ((yyconst char *))
void yy_push_state YY_PROTO ((int new_state))
void enterDumbMode (char nest, char unnest, int unput)

Variables

int yyleng
FILE* yyin = (FILE *) 0
FILE * yyout = (FILE *) 0
YY_BUFFER_STATE yy_current_buffer = 0
char yy_hold_char
int yy_n_chars
char* yy_c_buf_p = (char *) 0
int yy_init = 1
int yy_start = 0
int yy_did_buffer_switch_on_eof
int yylineno = 1
char* yytext
yyconst short int yy_acclist [222]
yyconst short int yy_accept [161]
yyconst int yy_ec [256]
yyconst int yy_meta [61]
yyconst short int yy_base [172]
yyconst short int yy_def [172]
yyconst short int yy_nxt [310]
yyconst short int yy_chk [310]
int yy_flex_debug = 1
yyconst short int yy_rule_linenum [48]
yy_state_type yy_state_buf [YY_BUF_SIZE+2]
yy_state_typeyy_state_ptr
char* yy_full_match
int yy_lp
char dmbNest
char dmbUnnest
int dmbNestLevel
int dmbUnput
char* dmbModeBuffer = NULL
int yy_start_stack_ptr = 0
int yy_start_stack_depth = 0
int* yy_start_stack = 0
register char* yy_bp
int size
FILE* file
int len
yyconst char* s2
int n
int dmbModeBufSize = 50


Typedef Documentation

typedef struct yy_buffer_state * YY_BUFFER_STATE
 

Definition at line 99 of file scanner.c.

typedef unsigned int yy_size_t
 

Definition at line 141 of file scanner.c.

typedef unsigned char YY_CHAR
 

Definition at line 271 of file scanner.c.

typedef int yy_state_type
 

Definition at line 273 of file scanner.c.


Function Documentation

void yyrestart YY_PROTO ( (FILE *input_file) )
 

void yy_switch_to_buffer YY_PROTO ( (YY_BUFFER_STATE new_buffer) )
 

int yy_top_state YY_PROTO ( (void) )
 

YY_BUFFER_STATE yy_create_buffer YY_PROTO ( (FILE *file, int size) )
 

void yy_flush_buffer YY_PROTO ( (YY_BUFFER_STATE b) )
 

void yy_init_buffer YY_PROTO ( (YY_BUFFER_STATE b, FILE *file) )
 

YY_BUFFER_STATE yy_scan_buffer YY_PROTO ( (char *base, yy_size_t size) )
 

YY_BUFFER_STATE yy_scan_string YY_PROTO ( (yyconst char *yy_str) )
 

YY_BUFFER_STATE yy_scan_bytes YY_PROTO ( (yyconst char *bytes, int len) )
 

void *yy_flex_alloc YY_PROTO ( (yy_size_t) ) [static]
 

void *yy_flex_realloc YY_PROTO ( (void *, yy_size_t) ) [static]
 

void yy_flex_free YY_PROTO ( (void *) ) [static]
 

yy_state_type yy_try_NUL_trans YY_PROTO ( (yy_state_type current_state) ) [static]
 

void yy_fatal_error YY_PROTO ( (yyconst char msg[]) ) [static]
 

void yyerror ( char * message )
 

Definition at line 68 of file cw_misc.cc.

Referenced by getUnescapedChar(), yy_start_stack(), and yyparse().

void appendToDmBuffer ( void )
 

Definition at line 2071 of file scanner.c.

Referenced by yy_start_stack().

char * getUnescapedString ( char * literal )
 

Definition at line 2145 of file scanner.c.

Referenced by yy_start_stack().

char getUnescapedChar ( char * literal,
int * len )
 

Definition at line 2084 of file scanner.c.

Referenced by getUnescapedString(), and yy_start_stack().

void yyunput YY_PROTO ( (int c, char *buf_ptr) ) [static]
 

void yy_flex_strncpy YY_PROTO ( (char *, yyconst char *, int) ) [static]
 

int yy_flex_strlen YY_PROTO ( (yyconst char *) ) [static]
 

void yy_push_state YY_PROTO ( (int new_state) ) [static]
 

void enterDumbMode ( char nest,
char unnest,
int unput )
 

Definition at line 2056 of file scanner.c.

Referenced by yyparse().


Variable Documentation

int yyleng
 

Definition at line 216 of file scanner.c.

FILE* yyin = (FILE *) 0
 

Definition at line 272 of file scanner.c.

FILE * yyout = (FILE *) 0
 

Definition at line 272 of file scanner.c.

YY_BUFFER_STATE yy_current_buffer = 0 [static]
 

Definition at line 201 of file scanner.c.

char yy_hold_char [static]
 

Definition at line 211 of file scanner.c.

int yy_n_chars [static]
 

Definition at line 213 of file scanner.c.

char * yy_c_buf_p = (char *) 0 [static]
 

Definition at line 219 of file scanner.c.

int yy_init = 1 [static]
 

Definition at line 220 of file scanner.c.

int yy_start = 0 [static]
 

Definition at line 221 of file scanner.c.

int yy_did_buffer_switch_on_eof [static]
 

Definition at line 226 of file scanner.c.

int yylineno = 1
 

Definition at line 277 of file scanner.c.

char * yytext
 

Definition at line 537 of file scanner.c.

yyconst short int yy_acclist [static]
 

Initial value:

    {   0,
       49,   41,   48,    1,   41,   48,    1,   48,   35,   41,
       48,   41,   48,   31,   41,   48,   41,   48,   18,   41,
       48,   19,   41,   48,   27,   41,   48,   29,   41,   48,
       33,   41,   48,   30,   41,   48,   41,   48,   36,   41,
       48,   26,   41,   48,   25,   41,   48,   20,   41,   48,
       24,   41,   48,   21,   41,   48,   28,   41,   48,   40,
       41,   48,   40,   41,   48,   40,   41,   48,   40,   41,
       48,   40,   41,   48,   40,   41,   48,   40,   41,   48,
       40,   41,   48,   40,   41,   48,   22,   41,   48,   23,
       41,   48,   40,   41,   48,   40,   41,   48,   40,   41,

       48,   16,   41,   48,   34,   41,   48,   17,   41,   48,
       32,   41,   48,   47,   48,   42,   47,   48,   42,   48,
       47,   48,   47,   48,   47,   48,    1,   38,    3,   36,
       40,   40,   40,   40,   40,   40,   40,   40,   40,   40,
       40,   40,   40,   40,   40,   42,   45,   44,   37,   37,
        2,    3,   40,   40,   40,   40,   40,   40,   40,   40,
       40,   40,   40,   40,   40,   40,   46,   46,   43,   44,
        2,    7,   40,   40,   40,   10,   40,   40,   40,   40,
        9,   40,   40,   40,   40,   40,   40,   39,   40,   43,
       40,   40,   40,   40,   40,   40,    5,   40,   15,   40,

       14,   40,   40,   40,   40,   12,   40,   40,   40,   11,
       40,   40,    4,   40,    6,   40,    8,   40,   40,   13,
       40
    } 

Definition at line 298 of file scanner.c.

yyconst short int yy_accept [static]
 

Initial value:

    {   0,
        1,    1,    1,    1,    1,    2,    4,    7,    9,   12,
       14,   17,   19,   22,   25,   28,   31,   34,   37,   39,
       42,   45,   48,   51,   54,   57,   60,   63,   66,   69,
       72,   75,   78,   81,   84,   87,   90,   93,   96,   99,
      102,  105,  108,  111,  114,  116,  119,  121,  123,  125,
      127,  128,  128,  129,  129,  129,  129,  129,  130,  131,
      132,  133,  134,  135,  136,  137,  138,  139,  140,  141,
      142,  143,  144,  145,  146,  147,  147,  148,  148,  148,
      148,  148,  149,  149,  150,  151,  151,  151,  151,  152,
      153,  154,  155,  156,  157,  158,  159,  160,  161,  162,

      163,  164,  165,  166,  167,  167,  168,  169,  169,  169,
      169,  170,  171,  171,  171,  171,  172,  174,  175,  176,
      178,  179,  180,  181,  183,  184,  185,  186,  187,  188,
      190,  190,  190,  190,  191,  191,  192,  193,  194,  195,
      196,  197,  199,  201,  203,  203,  204,  205,  206,  208,
      209,  210,  212,  213,  215,  217,  219,  220,  222,  222
    } 

Definition at line 327 of file scanner.c.

yyconst int yy_ec [static]
 

Definition at line 348 of file scanner.c.

yyconst int yy_meta [static]
 

Initial value:

    {   0,
        1,    1,    2,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    3,    3,    1,    1,    1,    1,
        1,    1,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        1,    1,    1,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    1,    1,    1,    1
    } 

Definition at line 380 of file scanner.c.

yyconst short int yy_base [static]
 

Initial value:

    {   0,
        0,    0,   59,   65,  248,  249,   72,   74,  249,   58,
      249,  205,  249,  249,  249,  249,  249,  249,   55,   65,
      249,  249,  249,  249,  249,  249,    0,  212,  218,  210,
      209,  207,  218,   53,  206,  249,  249,  194,  193,   33,
      249,  249,  249,  249,  249,   84,   87,   66,  195,   81,
       90,   79,  249,  221,  228,   87,   87,    0,   83,    0,
      208,  193,  198,  195,  192,  193,  205,  198,  199,  195,
      170,  173,  170,  166,  101,   91,  249,  205,  212,   98,
       96,    0,  102,  249,  211,  104,  102,  104,  110,    0,
      190,  177,  185,  187,  184,  168,  166,  158,  165,  160,

      138,  125,  126,  128,  110,  249,  167,  115,  113,  118,
      121,    0,  121,  122,  124,  249,    0,  139,  149,    0,
      137,  143,  136,    0,  139,  134,  117,  118,  108,    0,
      134,  133,  131,  249,  104,  126,  133,  127,  123,  131,
      134,    0,    0,    0,  137,  130,  128,  117,    0,  117,
      120,    0,  127,    0,    0,    0,  121,    0,  249,  179,
      182,  185,  140,  188,  191,  194,  197,  200,  203,  206,
      209
    } 

Definition at line 390 of file scanner.c.

yyconst short int yy_def [static]
 

Initial value:

    {   0,
      159,    1,  160,  160,  159,  159,  159,  159,  159,  161,
      159,  162,  159,  159,  159,  159,  159,  159,  159,  159,
      159,  159,  159,  159,  159,  159,  163,  163,  163,  163,
      163,  163,  163,  163,  163,  159,  159,  163,  163,  163,
      159,  159,  159,  159,  159,  159,  159,  164,  165,  159,
      159,  161,  159,  161,  159,  162,  166,  167,  159,  163,
      163,  163,  163,  163,  163,  163,  163,  163,  163,  163,
      163,  163,  163,  163,  159,  164,  159,  164,  159,  165,
      168,  169,  161,  159,  159,  159,  166,  170,  166,  167,
      163,  163,  163,  163,  163,  163,  163,  163,  163,  163,

      163,  163,  163,  163,  164,  159,  159,  159,  168,  171,
      168,  169,  161,  159,  166,  159,  163,  163,  163,  163,
      163,  163,  163,  163,  163,  163,  163,  163,  163,  163,
      164,  159,  168,  159,  161,  163,  163,  163,  163,  163,
      163,  163,  163,  163,  164,  163,  163,  163,  163,  163,
      163,  163,  163,  163,  163,  163,  163,  163,    0,  159,
      159,  159,  159,  159,  159,  159,  159,  159,  159,  159,
      159
    } 

Definition at line 413 of file scanner.c.

yyconst short int yy_nxt [static]
 

Definition at line 436 of file scanner.c.

yyconst short int yy_chk [static]
 

Definition at line 474 of file scanner.c.

int yy_flex_debug = 1
 

Definition at line 513 of file scanner.c.

yyconst short int yy_rule_linenum [static]
 

Initial value:

    {   0,
      135,  136,  137,  138,  139,  140,  141,  142,  143,  144,
      145,  146,  147,  148,  149,  151,  152,  153,  154,  155,
      156,  157,  158,  159,  160,  161,  162,  163,  164,  165,
      166,  167,  168,  169,  170,  172,  173,  175,  177,  179,
      181,  196,  197,  198,  199,  200,  213
    } 

Definition at line 515 of file scanner.c.

yy_state_type yy_state_buf [static]
 

Definition at line 524 of file scanner.c.

yy_state_type * yy_state_ptr [static]
 

Definition at line 524 of file scanner.c.

char * yy_full_match [static]
 

Definition at line 525 of file scanner.c.

int yy_lp [static]
 

Definition at line 526 of file scanner.c.

char dmbNest
 

Definition at line 604 of file scanner.c.

char dmbUnnest
 

Definition at line 605 of file scanner.c.

int dmbNestLevel
 

Definition at line 606 of file scanner.c.

int dmbUnput
 

Definition at line 607 of file scanner.c.

char * dmbModeBuffer = NULL
 

Definition at line 608 of file scanner.c.

int yy_start_stack_ptr = 0 [static]
 

Definition at line 650 of file scanner.c.

int yy_start_stack_depth = 0 [static]
 

Definition at line 651 of file scanner.c.

int * yy_start_stack = 0 [static]
 

Definition at line 652 of file scanner.c.

register char * yy_bp
 

Definition at line 1497 of file scanner.c.

yy_size_t size
 

Definition at line 2009 of file scanner.c.

Referenced by DfaGenerator::createScannerDfa(), operator<<(), LaParserWriter::writeEbnf(), LaParserWriter::writeParser(), ScannerDfaWriter::writeScanner(), and TokenWriter::writeTokenClass().

FILE * file
 

Definition at line 1728 of file scanner.c.

int len
 

Definition at line 1841 of file scanner.c.

yyconst char * s2
 

Definition at line 1967 of file scanner.c.

int n
 

Definition at line 1968 of file scanner.c.

int dmbModeBufSize = 50
 

Definition at line 2054 of file scanner.c.


Generated at Tue Jul 9 21:05:47 2002 for CppCC by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001