lexer.cpp File Reference

#include <stdio.h>
#include <iostream>
#include <string>
#include "vhdVRMLParser/stdafx.h"
#include "vhdVRMLParser/Element.h"
#include "vhdVRMLParser/EventIn.h"
#include "vhdVRMLParser/EventOut.h"
#include "vhdVRMLParser/ExposedField.h"
#include "vhdVRMLParser/Field.h"
#include "vhdVRMLParser/FieldValue.h"
#include "vhdVRMLParser/Node.h"
#include "vhdVRMLParser/Scene.h"
#include "vhdVRMLParser/SFBool.h"
#include "vhdVRMLParser/SFNode.h"
#include "vhdVRMLParser/MFNode.h"
#include "vhdVRMLParser/MFString.h"
#include "vhdVRMLParser/SFString.h"
#include "vhdVRMLParser/parser.h"
#include "vhdVRMLParser/parser.hpp"

Classes

struct  yy_buffer_state

Defines

#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION   2
#define YY_FLEX_MINOR_VERSION   5
#define yyconst
#define YY_PROTO(proto)   ()
#define YY_NULL   0
#define YY_SC_TO_UI(c)   ((unsigned int) (unsigned char) c)
#define BEGIN   yy_start = 1 + 2 *
#define YY_START   ((yy_start - 1) / 2)
#define YYSTATE   YY_START
#define YY_STATE_EOF(state)   (YY_END_OF_BUFFER + state + 1)
#define YY_NEW_FILE   yyrestart( yyin )
#define YY_END_OF_BUFFER_CHAR   0
#define YY_BUF_SIZE   16384
#define EOB_ACT_CONTINUE_SCAN   0
#define EOB_ACT_END_OF_FILE   1
#define EOB_ACT_LAST_MATCH   2
#define yyless(n)
#define unput(c)   yyunput( c, yytext_ptr )
#define YY_BUFFER_NEW   0
#define YY_BUFFER_NORMAL   1
#define YY_BUFFER_EOF_PENDING   2
#define YY_CURRENT_BUFFER   yy_current_buffer
#define YY_FLUSH_BUFFER   yy_flush_buffer( yy_current_buffer )
#define yy_new_buffer   yy_create_buffer
#define yy_set_interactive(is_interactive)
#define yy_set_bol(at_bol)
#define YY_AT_BOL()   (yy_current_buffer->yy_at_bol)
#define yytext_ptr   yytext
#define YY_DO_BEFORE_ACTION
#define YY_NUM_RULES   26
#define YY_END_OF_BUFFER   27
#define REJECT   reject_used_but_not_detected
#define yymore()   yymore_used_but_not_detected
#define YY_MORE_ADJ   0
#define YY_RESTORE_YY_MORE_OFFSET
#define INITIAL   0
#define YYDEBUG   0
#define YY_NEVER_INTERACTIVE   1
#define YY_INPUT(buf, result, max_size)   { result = fread( buf, 1, max_size, inputFile ); }
#define YY_NO_PUSH_STATE   1
#define YY_NO_POP_STATE   1
#define YY_NO_TOP_STATE   1
#define YY_READ_BUF_SIZE   8192
#define ECHO   (void) fwrite( yytext, yyleng, 1, yyout )
#define yyterminate()   return YY_NULL
#define YY_START_STACK_INCR   25
#define YY_FATAL_ERROR(msg)   yy_fatal_error( msg )
#define YY_DECL   int yylex YY_PROTO(( void ))
#define YY_BREAK   break;
#define YY_RULE_SETUP   YY_USER_ACTION
#define YY_EXIT_FAILURE   2
#define yyless(n)

Typedefs

typedef 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))
static 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 yyunput YY_PROTO ((int c, char *buf_ptr))

Variables

int yyleng
FILE * yyin
FILE * yyout
static YY_BUFFER_STATE yy_current_buffer = 0
static char yy_hold_char
static int yy_n_chars
int yyleng
static char * yy_c_buf_p = (char *) 0
static int yy_init = 1
static int yy_start = 0
static int yy_did_buffer_switch_on_eof
FILE * yyin = (FILE *) 0
FILE * yyout = (FILE *) 0
char * yytext
static yyconst short int yy_accept [112]
static yyconst int yy_ec [256]
static yyconst int yy_meta [43]
static yyconst short int yy_base [116]
static yyconst short int yy_def [116]
static yyconst short int yy_nxt [229]
static yyconst short int yy_chk [229]
static yy_state_type yy_last_accepting_state
static char * yy_last_accepting_cpos
char * yytext
register char * yy_bp
int size
FILE * file
yy_size_t size
int len
yy_size_t size

Define Documentation

#define BEGIN   yy_start = 1 + 2 *

#define ECHO   (void) fwrite( yytext, yyleng, 1, yyout )

#define EOB_ACT_CONTINUE_SCAN   0

#define EOB_ACT_END_OF_FILE   1

#define EOB_ACT_LAST_MATCH   2

#define FLEX_SCANNER

#define INITIAL   0

#define REJECT   reject_used_but_not_detected

#define unput (  )     yyunput( c, yytext_ptr )

 
#define YY_AT_BOL (  )     (yy_current_buffer->yy_at_bol)

#define YY_BREAK   break;

#define YY_BUF_SIZE   16384

#define YY_BUFFER_EOF_PENDING   2

#define YY_BUFFER_NEW   0

#define YY_BUFFER_NORMAL   1

#define YY_CURRENT_BUFFER   yy_current_buffer

#define YY_DECL   int yylex YY_PROTO(( void ))

#define YY_DO_BEFORE_ACTION

Value:

yytext_ptr = yy_bp; \
        yyleng = (int) (yy_cp - yy_bp); \
        yy_hold_char = *yy_cp; \
        *yy_cp = '\0'; \
        yy_c_buf_p = yy_cp;

#define YY_END_OF_BUFFER   27

#define YY_END_OF_BUFFER_CHAR   0

#define YY_EXIT_FAILURE   2

#define YY_FATAL_ERROR ( msg   )     yy_fatal_error( msg )

#define YY_FLEX_MAJOR_VERSION   2

#define YY_FLEX_MINOR_VERSION   5

#define YY_FLUSH_BUFFER   yy_flush_buffer( yy_current_buffer )

#define YY_INPUT ( buf,
result,
max_size   )     { result = fread( buf, 1, max_size, inputFile ); }

#define YY_MORE_ADJ   0

#define YY_NEVER_INTERACTIVE   1

#define yy_new_buffer   yy_create_buffer

#define YY_NEW_FILE   yyrestart( yyin )

#define YY_NO_POP_STATE   1

#define YY_NO_PUSH_STATE   1

#define YY_NO_TOP_STATE   1

#define YY_NULL   0

#define YY_NUM_RULES   26

#define YY_PROTO ( proto   )     ()

#define YY_READ_BUF_SIZE   8192

#define YY_RESTORE_YY_MORE_OFFSET

#define YY_RULE_SETUP   YY_USER_ACTION

#define YY_SC_TO_UI (  )     ((unsigned int) (unsigned char) c)

#define yy_set_bol ( at_bol   ) 

Value:

{ \
        if ( ! yy_current_buffer ) \
                yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
        yy_current_buffer->yy_at_bol = at_bol; \
        }

#define yy_set_interactive ( is_interactive   ) 

Value:

{ \
        if ( ! yy_current_buffer ) \
                yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
        yy_current_buffer->yy_is_interactive = is_interactive; \
        }

#define YY_START   ((yy_start - 1) / 2)

#define YY_START_STACK_INCR   25

#define YY_STATE_EOF ( state   )     (YY_END_OF_BUFFER + state + 1)

#define yyconst

#define YYDEBUG   0

#define yyless (  ) 

Value:

do \
                { \
                /* Undo effects of setting up yytext. */ \
                yytext[yyleng] = yy_hold_char; \
                yy_c_buf_p = yytext + n; \
                yy_hold_char = *yy_c_buf_p; \
                *yy_c_buf_p = '\0'; \
                yyleng = n; \
                } \
        while ( 0 )

#define yyless (  ) 

Value:

do \
                { \
                /* Undo effects of setting up yytext. */ \
                *yy_cp = yy_hold_char; \
                YY_RESTORE_YY_MORE_OFFSET \
                yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
                YY_DO_BEFORE_ACTION; /* set up yytext again */ \
                } \
        while ( 0 )

 
#define yymore (  )     yymore_used_but_not_detected

#define YYSTATE   YY_START

 
#define yyterminate (  )     return YY_NULL

#define yytext_ptr   yytext


Typedef Documentation

typedef struct yy_buffer_state* YY_BUFFER_STATE

typedef unsigned char YY_CHAR

typedef unsigned int yy_size_t

typedef int yy_state_type


Function Documentation

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

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

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

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

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

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

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

YY_BUFFER_STATE yy_scan_string YY_PROTO ( (yyconst char *yy_str)   ) 

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

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

void yy_flush_buffer YY_PROTO ( (YY_BUFFER_STATE b)   ) 

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

static int input YY_PROTO ( (void)   ) 

void yy_switch_to_buffer YY_PROTO ( (YY_BUFFER_STATE new_buffer)   ) 

void yyrestart YY_PROTO ( (FILE *input_file)   ) 


Variable Documentation

FILE* file

Examples:
vhdOSGGeometryProperty.

int len

yy_size_t size

yy_size_t size

int size

Examples:
vhdOSGBackgroundProperty.

yyconst short int yy_accept[112] [static]

Initial value:

    {   0,
        0,    0,   27,   20,   23,   24,   25,   22,   25,   25,
       25,    3,    3,   20,   20,   20,   20,   20,   20,   20,
       20,   20,   20,   20,   20,   20,   23,    0,   21,    0,
       22,    0,    3,    3,    1,    1,    0,    0,   20,   20,
       20,    9,   20,   20,   20,   20,   13,   20,   20,   20,
       20,   20,   21,    0,    0,    1,    0,    2,    4,    6,
       20,   20,   20,   20,   20,   20,   20,   15,   20,   20,
       20,    0,    1,   20,   20,   10,   20,   20,   20,   14,
       20,   20,   20,   20,    8,   11,   12,   20,   20,   20,
       19,   20,    5,   20,   20,   20,   20,   16,   20,   20,

       20,   17,   20,   20,   20,   20,   20,    7,   20,   18,
        0
    }

yyconst short int yy_base[116] [static]

Initial value:

    {   0,
        0,    0,  185,    0,  182,  186,   39,    0,  186,   35,
       37,   40,   43,  168,  156,  169,  157,  154,  156,  157,
      148,   37,  152,   19,  142,    0,  171,   52,  186,   58,
        0,   53,   65,   78,   81,   87,   61,    0,  156,  147,
      152,    0,  151,  148,  142,  129,    0,  140,  149,  133,
      126,  131,   63,   73,  102,  104,   73,   93,    0,    0,
      145,  136,  140,  133,  132,  123,  139,    0,  119,  117,
      118,   95,  110,  128,  134,    0,  128,  132,  109,    0,
       98,   98,  104,  113,    0,    0,    0,   92,   61,  100,
        0,  108,    0,   94,   87,   97,  103,    0,   85,  107,

      102,    0,   86,   92,   71,   79,   61,    0,   57,    0,
      186,  134,  138,  142,   61
    }

register char* yy_bp

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

yyconst short int yy_chk[229] [static]

Initial value:

    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    7,   10,   10,   10,   11,   11,   12,   12,
       12,   13,   13,   13,   12,   28,   22,   13,   22,   24,
       24,   30,   32,   32,  115,    7,   53,   37,   37,   12,
       37,   37,   13,   33,   33,   33,   54,   89,   28,   33,
       89,   12,   57,   57,   30,  109,   34,   34,   34,   53,
       35,   35,   34,  107,   33,   35,   36,   36,  106,   54,

      105,   36,   58,   58,   72,   72,   33,   34,   55,   55,
       35,   55,   55,   56,   56,  104,   36,  103,   56,   73,
       73,  101,  100,   99,   97,   96,   95,   94,   92,   90,
       88,   84,   83,   56,  112,   82,   81,  112,  113,  113,
      113,  113,  114,  114,   79,  114,   78,   77,   75,   74,
       71,   70,   69,   67,   66,   65,   64,   63,   62,   61,
       52,   51,   50,   49,   48,   46,   45,   44,   43,   41,
       40,   39,   27,   25,   23,   21,   20,   19,   18,   17,
       16,   15,   14,    5,    3,  111,  111,  111,  111,  111,
      111,  111,  111,  111,  111,  111,  111,  111,  111,  111,

      111,  111,  111,  111,  111,  111,  111,  111,  111,  111,
      111,  111,  111,  111,  111,  111,  111,  111,  111,  111,
      111,  111,  111,  111,  111,  111,  111,  111
    }

YY_BUFFER_STATE yy_current_buffer = 0 [static]

yyconst short int yy_def[116] [static]

Initial value:

    {   0,
      111,    1,  111,  112,  111,  111,  113,  114,  111,  111,
      111,  111,  111,  112,  112,  112,  112,  112,  112,  112,
      112,  112,  112,  112,  112,  112,  111,  113,  111,  113,
      114,  111,  111,  111,  111,  111,  111,  115,  112,  112,
      112,  112,  112,  112,  112,  112,  112,  112,  112,  112,
      112,  112,  113,  113,  111,  111,  111,  111,  115,  112,
      112,  112,  112,  112,  112,  112,  112,  112,  112,  112,
      112,  111,  111,  112,  112,  112,  112,  112,  112,  112,
      112,  112,  112,  112,  112,  112,  112,  112,  112,  112,
      112,  112,  112,  112,  112,  112,  112,  112,  112,  112,

      112,  112,  112,  112,  112,  112,  112,  112,  112,  112,
        0,  111,  111,  111,  111
    }

int yy_did_buffer_switch_on_eof [static]

yyconst int yy_ec[256] [static]

char yy_hold_char [static]

int yy_init = 1 [static]

char* yy_last_accepting_cpos [static]

yy_state_type yy_last_accepting_state [static]

yyconst int yy_meta[43] [static]

Initial value:

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

int yy_n_chars [static]

yyconst short int yy_nxt[229] [static]

Initial value:

    {   0,
        4,    5,    6,    7,    8,    9,   10,   10,   11,   12,
       13,    4,    4,   14,   15,   16,   17,    4,   18,    4,
       19,   20,   21,   22,   23,    4,    9,    4,    4,   24,
       25,    4,    4,    4,    4,    4,    4,    4,    4,    4,
        4,    4,   29,   32,   33,   34,   35,   35,   36,   34,
       34,   36,   34,   34,   37,   29,   47,   37,   48,   50,
       51,   53,   35,   35,   59,   30,   29,   57,   57,   37,
       58,   58,   37,   36,   34,   34,   53,   94,   30,   37,
       95,   38,   58,   58,   54,  110,   36,   34,   34,   30,
       35,   35,   37,  109,   37,   55,   56,   56,  108,   54,

      107,   55,   58,   58,   73,   73,   38,   37,   72,   72,
       55,   73,   73,   56,   56,  106,   55,  105,   55,   73,
       73,  104,  103,  102,  101,  100,   99,   98,   97,   96,
       93,   92,   91,   55,   26,   90,   89,   26,   28,   28,
       28,   28,   31,   31,   88,   31,   87,   86,   85,   84,
       83,   82,   81,   80,   79,   78,   77,   76,   75,   74,
       71,   70,   69,   68,   67,   66,   65,   64,   63,   62,
       61,   60,   27,   52,   49,   46,   45,   44,   43,   42,
       41,   40,   39,   27,  111,    3,  111,  111,  111,  111,
      111,  111,  111,  111,  111,  111,  111,  111,  111,  111,

      111,  111,  111,  111,  111,  111,  111,  111,  111,  111,
      111,  111,  111,  111,  111,  111,  111,  111,  111,  111,
      111,  111,  111,  111,  111,  111,  111,  111
    }

int yy_start = 0 [static]

FILE* yyin = (FILE *) 0

FILE* yyin

int yyleng

int yyleng

FILE * yyout = (FILE *) 0

FILE * yyout

char* yytext

char* yytext


Generated on Thu Jan 18 10:06:08 2007 for vhdPLUS by  doxygen 1.5.1-p1