scanner.cc File Reference

#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <mycc/c/scanner.hh>
#include <ylmm/lexmm.hh>
#include <unistd.h>

Include dependency graph for scanner.cc:

Include dependency graph

Go to the source code of this file.

Classes

struct  yy_buffer_state
struct  yy_trans_info

Defines

#define YY_INT_ALIGNED   short int
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION   2
#define YY_FLEX_MINOR_VERSION   5
#define YY_FLEX_SUBMINOR_VERSION   31
#define FLEX_BETA
#define INT8_MIN   (-128)
#define INT16_MIN   (-32767-1)
#define INT32_MIN   (-2147483647-1)
#define INT8_MAX   (127)
#define INT16_MAX   (32767)
#define INT32_MAX   (2147483647)
#define UINT8_MAX   (255U)
#define UINT16_MAX   (65535U)
#define UINT32_MAX   (4294967295U)
#define yyconst
#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 YY_LESS_LINENO(n)
#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
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
#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_LVALUE->yy_at_bol)
#define yytext_ptr   yytext
#define YY_DO_BEFORE_ACTION
#define YY_NUM_RULES   93
#define YY_END_OF_BUFFER   94
#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 YLMM_SCANNER_CLASS   mycc::c::scanner
#define INITIAL   0
#define COMMENT   1
#define YY_EXTRA_TYPE   void *
#define YY_READ_BUF_SIZE   8192
#define ECHO   (void) fwrite( yytext, yyleng, 1, yyout )
#define YY_INPUT(buf, result, max_size)
#define yyterminate()   return YY_NULL
#define YY_START_STACK_INCR   25
#define YY_FATAL_ERROR(msg)   yy_fatal_error( msg )
#define YY_DECL_IS_OURS   1
#define YY_DECL   int yylex (void)
#define YY_BREAK   break;
#define YY_RULE_SETUP   YY_USER_ACTION
#define YY_EXIT_FAILURE   2
#define yyless(n)
#define YYTABLES_NAME   "yytables"

Typedefs

typedef signed char flex_int8_t
typedef short int flex_int16_t
typedef int flex_int32_t
typedef unsigned char flex_uint8_t
typedef unsigned short int flex_uint16_t
typedef unsigned int flex_uint32_t
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 (FILE *input_file)
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer)
YY_BUFFER_STATE yy_create_buffer (FILE *file, int size)
void yy_delete_buffer (YY_BUFFER_STATE b)
void yy_flush_buffer (YY_BUFFER_STATE b)
void yypush_buffer_state (YY_BUFFER_STATE new_buffer)
void yypop_buffer_state (void)
void yyensure_buffer_stack (void)
void yy_load_buffer_state (void)
void yy_init_buffer (YY_BUFFER_STATE b, FILE *file)
YY_BUFFER_STATE yy_scan_buffer (char *base, yy_size_t size)
YY_BUFFER_STATE yy_scan_string (char *yy_str)
YY_BUFFER_STATE yy_scan_bytes (char *bytes, int len)
void * yyalloc (yy_size_t)
void * yyrealloc (void *, yy_size_t)
void yyfree (void *)
yy_state_type yy_get_previous_state (void)
yy_state_type yy_try_NUL_trans (yy_state_type current_state)
int yy_get_next_buffer (void)
void yy_fatal_error (char msg[])
int yywrap (void)
void yyunput (int c, char *buf_ptr)
int input (void)
int yylex (void)
void yyunput (int c, register char *yy_bp)
int isatty (int)
void yy_fatal_error (char *msg)
int yyget_lineno (void)
FILE * yyget_in (void)
FILE * yyget_out (void)
int yyget_leng (void)
char * yyget_text (void)
void yyset_lineno (int line_number)
void yyset_in (FILE *in_str)
void yyset_out (FILE *out_str)
int yyget_debug (void)
void yyset_debug (int bdebug)
int yylex_destroy (void)

Variables

int yyleng
FILE * yyin = (FILE *) 0 *yyout = (FILE *) 0
FILE * yyout
size_t yy_buffer_stack_top = 0
size_t yy_buffer_stack_max = 0
YY_BUFFER_STATEyy_buffer_stack = 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
flex_int16_t yy_accept [248]
flex_int32_t yy_ec [256]
flex_int32_t yy_meta [64]
flex_int16_t yy_base [253]
flex_int16_t yy_def [253]
flex_int16_t yy_nxt [445]
flex_int16_t yy_chk [445]
yy_state_type yy_last_accepting_state
char * yy_last_accepting_cpos
int yy_flex_debug = 0


Define Documentation

#define BEGIN   (yy_start) = 1 + 2 *
 

Definition at line 115 of file scanner.cc.

Referenced by yylex().

#define COMMENT   1
 

Definition at line 651 of file scanner.cc.

Referenced by yylex().

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

Definition at line 707 of file scanner.cc.

Referenced by yylex().

#define EOB_ACT_CONTINUE_SCAN   0
 

Definition at line 146 of file scanner.cc.

Referenced by input(), yy_get_next_buffer(), and yylex().

#define EOB_ACT_END_OF_FILE   1
 

Definition at line 147 of file scanner.cc.

Referenced by input(), yy_get_next_buffer(), and yylex().

#define EOB_ACT_LAST_MATCH   2
 

Definition at line 148 of file scanner.cc.

Referenced by input(), yy_get_next_buffer(), and yylex().

#define FLEX_BETA
 

Definition at line 13 of file scanner.cc.

#define FLEX_SCANNER
 

Definition at line 8 of file scanner.cc.

#define INITIAL   0
 

Definition at line 650 of file scanner.cc.

Referenced by yylex().

#define INT16_MAX   (32767)
 

Definition at line 64 of file scanner.cc.

#define INT16_MIN   (-32767-1)
 

Definition at line 55 of file scanner.cc.

#define INT32_MAX   (2147483647)
 

Definition at line 67 of file scanner.cc.

#define INT32_MIN   (-2147483647-1)
 

Definition at line 58 of file scanner.cc.

#define INT8_MAX   (127)
 

Definition at line 61 of file scanner.cc.

#define INT8_MIN   (-128)
 

Definition at line 52 of file scanner.cc.

#define REJECT   reject_used_but_not_detected
 

Definition at line 616 of file scanner.cc.

#define UINT16_MAX   (65535U)
 

Definition at line 73 of file scanner.cc.

#define UINT32_MAX   (4294967295U)
 

Definition at line 76 of file scanner.cc.

#define UINT8_MAX   (255U)
 

Definition at line 70 of file scanner.cc.

#define unput  )     yyunput( c, (yytext_ptr) )
 

Definition at line 166 of file scanner.cc.

#define YLMM_SCANNER_CLASS   mycc::c::scanner
 

Definition at line 644 of file scanner.cc.

 
#define YY_AT_BOL  )     (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
 

Definition at line 322 of file scanner.cc.

#define YY_BREAK   break;
 

Definition at line 786 of file scanner.cc.

Referenced by yylex().

#define YY_BUF_SIZE   16384
 

Definition at line 134 of file scanner.cc.

Referenced by yylex(), and yyrestart().

#define YY_BUFFER_EOF_PENDING   2
 

Definition at line 238 of file scanner.cc.

Referenced by yy_get_next_buffer().

#define YY_BUFFER_NEW   0
 

Definition at line 226 of file scanner.cc.

Referenced by yy_flush_buffer(), yy_scan_buffer(), and yylex().

#define YY_BUFFER_NORMAL   1
 

Definition at line 227 of file scanner.cc.

Referenced by yylex().

#define YY_CURRENT_BUFFER
 

Value:

( (yy_buffer_stack) \
                          ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
                          : NULL)

Definition at line 254 of file scanner.cc.

Referenced by yy_delete_buffer(), yy_flush_buffer(), yy_get_next_buffer(), yy_init_buffer(), yy_switch_to_buffer(), yylex(), yylex_destroy(), yypop_buffer_state(), yypush_buffer_state(), and yyrestart().

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
 

Definition at line 261 of file scanner.cc.

Referenced by input(), yy_delete_buffer(), yy_get_next_buffer(), yy_load_buffer_state(), yy_switch_to_buffer(), yylex(), yylex_destroy(), yypop_buffer_state(), yypush_buffer_state(), yyrestart(), and yyunput().

#define YY_DECL   int yylex (void)
 

Definition at line 774 of file scanner.cc.

Referenced by yylex().

#define YY_DECL_IS_OURS   1
 

Definition at line 770 of file scanner.cc.

#define YY_DO_BEFORE_ACTION
 

Value:

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

Definition at line 347 of file scanner.cc.

Referenced by yylex().

#define YY_END_OF_BUFFER   94
 

Definition at line 355 of file scanner.cc.

Referenced by yylex().

#define YY_END_OF_BUFFER_CHAR   0
 

Definition at line 130 of file scanner.cc.

Referenced by input(), yy_flush_buffer(), yy_get_next_buffer(), yy_scan_buffer(), and yy_scan_bytes().

#define YY_EXIT_FAILURE   2
 

Definition at line 2138 of file scanner.cc.

Referenced by yy_fatal_error().

#define YY_EXTRA_TYPE   void *
 

Definition at line 662 of file scanner.cc.

#define YY_FATAL_ERROR msg   )     yy_fatal_error( msg )
 

Definition at line 761 of file scanner.cc.

Referenced by yy_create_buffer(), yy_get_next_buffer(), yy_scan_buffer(), yy_scan_bytes(), yylex(), and yyunput().

#define YY_FLEX_MAJOR_VERSION   2
 

Definition at line 9 of file scanner.cc.

#define YY_FLEX_MINOR_VERSION   5
 

Definition at line 10 of file scanner.cc.

#define YY_FLEX_SUBMINOR_VERSION   31
 

Definition at line 11 of file scanner.cc.

#define YY_FLUSH_BUFFER   yy_flush_buffer(YY_CURRENT_BUFFER )
 

Definition at line 290 of file scanner.cc.

#define YY_INPUT buf,
result,
max_size   ) 
 

Value:

if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
                { \
                int c = '*'; \
                size_t n; \
                for ( n = 0; n < max_size && \
                             (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
                        buf[n] = (char) c; \
                if ( c == '\n' ) \
                        buf[n++] = (char) c; \
                if ( c == EOF && ferror( yyin ) ) \
                        YY_FATAL_ERROR( "input in flex scanner failed" ); \
                result = n; \
                } \
        else \
                { \
                errno=0; \
                while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
                        { \
                        if( errno != EINTR) \
                                { \
                                YY_FATAL_ERROR( "input in flex scanner failed" ); \
                                break; \
                                } \
                        errno=0; \
                        clearerr(yyin); \
                        } \
                }\
\

Definition at line 714 of file scanner.cc.

Referenced by yy_get_next_buffer().

#define YY_INT_ALIGNED   short int
 

Definition at line 4 of file scanner.cc.

#define YY_LESS_LINENO  ) 
 

Definition at line 150 of file scanner.cc.

#define YY_MORE_ADJ   0
 

Definition at line 618 of file scanner.cc.

Referenced by yy_get_next_buffer(), yy_get_previous_state(), and yylex().

#define yy_new_buffer   yy_create_buffer
 

Definition at line 300 of file scanner.cc.

#define YY_NEW_FILE   yyrestart(yyin )
 

Definition at line 128 of file scanner.cc.

Referenced by input(), and yylex().

#define YY_NULL   0
 

Definition at line 102 of file scanner.cc.

#define YY_NUM_RULES   93
 

Definition at line 354 of file scanner.cc.

#define YY_READ_BUF_SIZE   8192
 

Definition at line 699 of file scanner.cc.

Referenced by yy_get_next_buffer().

#define YY_RESTORE_YY_MORE_OFFSET
 

Definition at line 619 of file scanner.cc.

Referenced by yylex().

#define YY_RULE_SETUP   YY_USER_ACTION
 

Definition at line 789 of file scanner.cc.

Referenced by yylex().

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

Definition at line 109 of file scanner.cc.

Referenced by yy_get_previous_state(), and yylex().

#define yy_set_bol at_bol   ) 
 

Value:

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

Definition at line 312 of file scanner.cc.

#define yy_set_interactive is_interactive   ) 
 

Value:

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

Definition at line 302 of file scanner.cc.

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

Definition at line 121 of file scanner.cc.

Referenced by yylex().

#define YY_START_STACK_INCR   25
 

Definition at line 756 of file scanner.cc.

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

Definition at line 125 of file scanner.cc.

Referenced by yylex().

#define yyconst
 

Definition at line 98 of file scanner.cc.

#define yyless  ) 
 

Value:

do \
                { \
                  \
        int yyless_macro_arg = (n); \
        YY_LESS_LINENO(yyless_macro_arg);\
                yytext[yyleng] = (yy_hold_char); \
                (yy_c_buf_p) = yytext + yyless_macro_arg; \
                (yy_hold_char) = *(yy_c_buf_p); \
                *(yy_c_buf_p) = '\0'; \
                yyleng = yyless_macro_arg; \
                } \
        while ( 0 )

Definition at line 2150 of file scanner.cc.

#define yyless  ) 
 

Value:

do \
                { \
                  \
        int yyless_macro_arg = (n); \
        YY_LESS_LINENO(yyless_macro_arg);\
                *yy_cp = (yy_hold_char); \
                YY_RESTORE_YY_MORE_OFFSET \
                (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
                YY_DO_BEFORE_ACTION;   \
                } \
        while ( 0 )

Definition at line 2150 of file scanner.cc.

 
#define yymore  )     yymore_used_but_not_detected
 

Definition at line 617 of file scanner.cc.

#define YYSTATE   YY_START
 

Definition at line 122 of file scanner.cc.

#define YYTABLES_NAME   "yytables"
 

Definition at line 2308 of file scanner.cc.

 
#define yyterminate  )     return YY_NULL
 

Definition at line 751 of file scanner.cc.

Referenced by yylex().

#define yytext_ptr   yytext
 

Definition at line 337 of file scanner.cc.

Referenced by input(), yy_get_next_buffer(), yy_get_previous_state(), yy_load_buffer_state(), yylex(), and yyunput().


Typedef Documentation

typedef short int flex_int16_t
 

Definition at line 43 of file scanner.cc.

typedef int flex_int32_t
 

Definition at line 44 of file scanner.cc.

typedef signed char flex_int8_t
 

Definition at line 42 of file scanner.cc.

typedef unsigned short int flex_uint16_t
 

Definition at line 46 of file scanner.cc.

typedef unsigned int flex_uint32_t
 

Definition at line 47 of file scanner.cc.

typedef unsigned char flex_uint8_t
 

Definition at line 45 of file scanner.cc.

typedef struct yy_buffer_state* YY_BUFFER_STATE
 

Definition at line 139 of file scanner.cc.

Referenced by yy_create_buffer(), yy_delete_buffer(), yy_flush_buffer(), yy_get_next_buffer(), yy_init_buffer(), yy_scan_buffer(), yy_scan_bytes(), yy_scan_string(), yy_switch_to_buffer(), and yypush_buffer_state().

typedef unsigned char YY_CHAR
 

Definition at line 326 of file scanner.cc.

Referenced by yy_get_previous_state(), yy_try_NUL_trans(), and yylex().

typedef unsigned int yy_size_t
 

Definition at line 175 of file scanner.cc.

Referenced by yy_scan_bytes().

typedef int yy_state_type
 

Definition at line 330 of file scanner.cc.

Referenced by yy_get_previous_state(), yy_try_NUL_trans(), and yylex().


Function Documentation

int input void   )  [static]
 

Definition at line 1718 of file scanner.cc.

References EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, YY_END_OF_BUFFER_CHAR, yy_get_next_buffer(), yy_hold_char, yy_n_chars, YY_NEW_FILE, yyin, yyrestart(), yytext_ptr, and yywrap().

Here is the call graph for this function:

int isatty int   ) 
 

Referenced by yy_init_buffer().

YY_BUFFER_STATE yy_create_buffer FILE *  file,
int  size
 

Allocate and initialize an input buffer state.

Parameters:
file A readable stream.
size The character buffer size in bytes. When in doubt, use YY_BUF_SIZE.
Returns:
the allocated buffer state.

Definition at line 1855 of file scanner.cc.

References yy_buffer_state::yy_buf_size, YY_BUFFER_STATE, yy_buffer_state::yy_ch_buf, YY_FATAL_ERROR, yy_init_buffer(), yy_buffer_state::yy_is_our_buffer, and yyalloc().

Referenced by yylex(), and yyrestart().

Here is the call graph for this function:

void yy_delete_buffer YY_BUFFER_STATE  b  ) 
 

Destroy the buffer.

Parameters:
b a buffer created with yy_create_buffer()

Definition at line 1883 of file scanner.cc.

References YY_BUFFER_STATE, yy_buffer_state::yy_ch_buf, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_buffer_state::yy_is_our_buffer, and yyfree().

Referenced by yylex_destroy(), and yypop_buffer_state().

Here is the call graph for this function:

void yy_fatal_error char *  msg  )  [static]
 

Definition at line 2141 of file scanner.cc.

References YY_EXIT_FAILURE.

void yy_fatal_error char  msg[]  )  [static]
 

void yy_flush_buffer YY_BUFFER_STATE  b  ) 
 

Discard all buffered characters.

On the next scan, YY_INPUT will be called.

Parameters:
b the buffer state to be flushed, usually YY_CURRENT_BUFFER.

Definition at line 1934 of file scanner.cc.

References yy_buffer_state::yy_at_bol, yy_buffer_state::yy_buf_pos, YY_BUFFER_NEW, YY_BUFFER_STATE, yy_buffer_state::yy_buffer_status, yy_buffer_state::yy_ch_buf, YY_CURRENT_BUFFER, YY_END_OF_BUFFER_CHAR, yy_load_buffer_state(), and yy_buffer_state::yy_n_chars.

Referenced by yy_init_buffer().

Here is the call graph for this function:

int yy_get_next_buffer void   )  [static]
 

Definition at line 1496 of file scanner.cc.

References EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, yy_buffer_state::yy_buf_size, YY_BUFFER_EOF_PENDING, YY_BUFFER_STATE, yy_c_buf_p, yy_buffer_state::yy_ch_buf, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, YY_INPUT, yy_buffer_state::yy_is_our_buffer, YY_MORE_ADJ, yy_n_chars, YY_READ_BUF_SIZE, yyin, yyrealloc(), yyrestart(), and yytext_ptr.

Referenced by input(), and yylex().

Here is the call graph for this function:

yy_state_type yy_get_previous_state void   )  [static]
 

Definition at line 1622 of file scanner.cc.

References yy_accept, yy_base, yy_c_buf_p, YY_CHAR, yy_chk, yy_def, yy_ec, yy_last_accepting_cpos, yy_last_accepting_state, yy_meta, YY_MORE_ADJ, yy_nxt, YY_SC_TO_UI, yy_start, yy_state_type, and yytext_ptr.

Referenced by yylex().

void yy_init_buffer YY_BUFFER_STATE  b,
FILE *  file
[static]
 

Definition at line 1906 of file scanner.cc.

References isatty(), yy_buffer_state::yy_bs_column, yy_buffer_state::yy_bs_lineno, YY_BUFFER_STATE, YY_CURRENT_BUFFER, yy_buffer_state::yy_fill_buffer, yy_flush_buffer(), yy_buffer_state::yy_input_file, and yy_buffer_state::yy_is_interactive.

Referenced by yy_create_buffer(), and yyrestart().

Here is the call graph for this function:

void yy_load_buffer_state void   )  [static]
 

Definition at line 1841 of file scanner.cc.

References yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, yy_hold_char, yy_n_chars, yyin, and yytext_ptr.

Referenced by yy_flush_buffer(), yy_switch_to_buffer(), yylex(), yypop_buffer_state(), yypush_buffer_state(), and yyrestart().

YY_BUFFER_STATE yy_scan_buffer char *  base,
yy_size_t  size
 

Setup the input buffer state to scan directly from a user-specified character buffer.

Parameters:
base the character buffer
size the size in bytes of the character buffer
Returns:
the newly allocated buffer state object.

Definition at line 2057 of file scanner.cc.

References yy_buffer_state::yy_at_bol, yy_buffer_state::yy_buf_pos, yy_buffer_state::yy_buf_size, YY_BUFFER_NEW, YY_BUFFER_STATE, yy_buffer_state::yy_buffer_status, yy_buffer_state::yy_ch_buf, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_buffer_state::yy_fill_buffer, yy_buffer_state::yy_input_file, yy_buffer_state::yy_is_interactive, yy_buffer_state::yy_is_our_buffer, yy_buffer_state::yy_n_chars, yy_switch_to_buffer(), and yyalloc().

Referenced by yy_scan_bytes().

Here is the call graph for this function:

YY_BUFFER_STATE yy_scan_bytes char *  bytes,
int  len
 

Setup the input buffer state to scan the given bytes.

The next call to yylex() will scan from a copy of bytes.

Parameters:
bytes the byte buffer to scan
len the number of bytes in the buffer pointed to by bytes.
Returns:
the newly allocated buffer state object.

Definition at line 2107 of file scanner.cc.

References YY_BUFFER_STATE, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_buffer_state::yy_is_our_buffer, yy_scan_buffer(), yy_size_t, and yyalloc().

Referenced by yy_scan_string().

Here is the call graph for this function:

YY_BUFFER_STATE yy_scan_string char *  yy_str  ) 
 

Setup the input buffer state to scan a string.

The next call to yylex() will scan from a copy of str.

Parameters:
str a NUL-terminated string to scan
Returns:
the newly allocated buffer state object.
Note:
If you want to scan bytes that may contain NUL values, then use yy_scan_bytes() instead.

Definition at line 2094 of file scanner.cc.

References YY_BUFFER_STATE, and yy_scan_bytes().

Here is the call graph for this function:

void yy_switch_to_buffer YY_BUFFER_STATE  new_buffer  ) 
 

Switch to a different input buffer.

Parameters:
new_buffer The new input buffer.

Definition at line 1810 of file scanner.cc.

References YY_BUFFER_STATE, yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, yy_hold_char, yy_load_buffer_state(), yy_n_chars, and yyensure_buffer_stack().

Referenced by yy_scan_buffer().

Here is the call graph for this function:

yy_state_type yy_try_NUL_trans yy_state_type  current_state  )  [static]
 

Definition at line 1654 of file scanner.cc.

References yy_accept, yy_base, yy_c_buf_p, YY_CHAR, yy_chk, yy_def, yy_last_accepting_cpos, yy_last_accepting_state, yy_meta, yy_nxt, and yy_state_type.

Referenced by yylex().

void * yyalloc yy_size_t   ) 
 

Definition at line 2286 of file scanner.cc.

Referenced by yy_create_buffer(), yy_scan_buffer(), yy_scan_bytes(), and yyensure_buffer_stack().

void yyensure_buffer_stack void   )  [static]
 

Definition at line 2012 of file scanner.cc.

References yy_buffer_stack, yy_buffer_stack_max, yy_buffer_stack_top, yyalloc(), and yyrealloc().

Referenced by yy_switch_to_buffer(), yylex(), yypush_buffer_state(), and yyrestart().

Here is the call graph for this function:

void yyfree void *   ) 
 

Definition at line 2303 of file scanner.cc.

Referenced by yy_delete_buffer(), and yylex_destroy().

int yyget_debug void   ) 
 

Definition at line 2234 of file scanner.cc.

References yy_flex_debug.

FILE* yyget_in void   ) 
 

Get the input stream.

Definition at line 2178 of file scanner.cc.

References yyin.

int yyget_leng void   ) 
 

Get the length of the current token.

Definition at line 2194 of file scanner.cc.

References yyleng.

int yyget_lineno void   ) 
 

Get the current line number.

Definition at line 2169 of file scanner.cc.

References yylineno.

FILE* yyget_out void   ) 
 

Get the output stream.

Definition at line 2186 of file scanner.cc.

References yyout.

char* yyget_text void   ) 
 

Get the current token.

Definition at line 2203 of file scanner.cc.

References yytext.

int yylex void   ) 
 

The main scanner function which does all the work.

Definition at line 794 of file scanner.cc.

References BEGIN, COMMENT, ECHO, EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, INITIAL, yy_accept, yy_base, YY_BREAK, YY_BUF_SIZE, YY_BUFFER_NEW, YY_BUFFER_NORMAL, yy_c_buf_p, YY_CHAR, yy_chk, yy_create_buffer(), YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, YY_DECL, yy_def, yy_did_buffer_switch_on_eof, YY_DO_BEFORE_ACTION, yy_ec, YY_END_OF_BUFFER, YY_FATAL_ERROR, yy_get_next_buffer(), yy_get_previous_state(), yy_hold_char, yy_init, yy_last_accepting_cpos, yy_last_accepting_state, yy_load_buffer_state(), yy_meta, YY_MORE_ADJ, yy_n_chars, YY_NEW_FILE, yy_nxt, YY_RESTORE_YY_MORE_OFFSET, YY_RULE_SETUP, YY_SC_TO_UI, YY_START, yy_start, YY_STATE_EOF, yy_state_type, yy_try_NUL_trans(), yyensure_buffer_stack(), yyin, yyleng, yyout, yyterminate, yytext, yytext_ptr, and yywrap().

Here is the call graph for this function:

int yylex_destroy void   ) 
 

Definition at line 2245 of file scanner.cc.

References yy_buffer_stack, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_delete_buffer(), yyfree(), and yypop_buffer_state().

Here is the call graph for this function:

void yypop_buffer_state void   ) 
 

Removes and deletes the top of the stack, if present.

The next element becomes the new top.

Definition at line 1993 of file scanner.cc.

References yy_buffer_stack_top, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_delete_buffer(), yy_did_buffer_switch_on_eof, and yy_load_buffer_state().

Referenced by yylex_destroy().

Here is the call graph for this function:

void yypush_buffer_state YY_BUFFER_STATE  new_buffer  ) 
 

Pushes the new state onto the stack.

The new state becomes the current state. This function will allocate the stack if necessary.

Parameters:
new_buffer The new state.

Definition at line 1963 of file scanner.cc.

References yy_buffer_stack_top, YY_BUFFER_STATE, yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, yy_hold_char, yy_load_buffer_state(), yy_n_chars, and yyensure_buffer_stack().

Here is the call graph for this function:

void * yyrealloc void *  ,
yy_size_t 
 

Definition at line 2291 of file scanner.cc.

Referenced by yy_get_next_buffer(), and yyensure_buffer_stack().

void yyrestart FILE *  input_file  ) 
 

Immediately switch to a different input stream.

Parameters:
input_file A readable stream.
Note:
This function does not reset the start condition to INITIAL .

Definition at line 1793 of file scanner.cc.

References YY_BUF_SIZE, yy_create_buffer(), YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_init_buffer(), yy_load_buffer_state(), yyensure_buffer_stack(), and yyin.

Referenced by input(), and yy_get_next_buffer().

Here is the call graph for this function:

void yyset_debug int  bdebug  ) 
 

Definition at line 2239 of file scanner.cc.

References yy_flex_debug.

void yyset_in FILE *  in_str  ) 
 

Set the input stream.

This does not discard the current input buffer.

Parameters:
in_str A readable stream.
See also:
yy_switch_to_buffer

Definition at line 2224 of file scanner.cc.

References yyin.

void yyset_lineno int  line_number  ) 
 

Set the current line number.

Parameters:
line_number 

Definition at line 2212 of file scanner.cc.

References yylineno.

void yyset_out FILE *  out_str  ) 
 

Definition at line 2229 of file scanner.cc.

References yyout.

void yyunput int  c,
register char *  yy_bp
[static]
 

Definition at line 1677 of file scanner.cc.

References yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, YY_FATAL_ERROR, yy_hold_char, yy_n_chars, and yytext_ptr.

void yyunput int  c,
char *  buf_ptr
[static]
 

int yywrap void   ) 
 

Referenced by input(), and yylex().


Variable Documentation

flex_int16_t yy_accept[248] [static]
 

Initial value:

    {   0,
        0,    0,    0,    0,   94,   92,   91,   91,   79,   92,
       85,   78,   92,   73,   74,   83,   82,   70,   81,   77,
       84,   39,   39,   71,   67,   86,   72,   87,   90,   36,
       36,   75,   76,   88,   36,   36,   36,   36,   36,   36,
       36,   36,   36,   36,   36,   36,   36,   36,   36,   68,
       89,   69,   80,    3,   93,    3,   66,    0,   44,    0,
       52,   69,   61,   53,    0,    0,   50,   58,   48,   59,
       49,   60,    0,   42,    1,   51,   43,   38,    0,   39,
        0,   39,   76,   68,   75,   57,   63,   65,   64,   56,
       36,    0,    0,   54,   36,   36,   36,   36,   36,   36,

       11,   36,   36,   36,   36,   36,   36,   19,   36,   36,
       36,   36,   36,   36,   36,   36,   36,   36,   36,   55,
       62,    2,   40,   45,    0,   42,   42,    0,   43,   38,
        0,   41,   37,   47,   46,   36,   36,   36,   36,   36,
       36,   36,   36,   36,   36,   36,   17,   36,   20,   36,
       36,   36,   36,   36,   36,   36,   36,   36,   36,   36,
       36,   36,   36,   36,    0,   42,    0,   42,    0,   43,
       41,   37,    4,   36,    6,    7,   36,   36,   36,   36,
       13,   14,   36,   36,   18,   21,   36,   36,   36,   36,
       36,   36,   36,   36,   36,   36,   36,   33,   36,   36,

        0,   42,    5,    8,   36,   36,   36,   36,   16,   36,
       36,   24,   36,   36,   36,   36,   36,   36,   31,   36,
       36,   35,   36,   36,   12,   15,   36,   23,   25,   26,
       27,   28,   29,   36,   36,   36,   36,   10,   36,   30,
       36,   36,    9,   22,   32,   34,    0
    }

Definition at line 363 of file scanner.cc.

Referenced by yy_get_previous_state(), yy_try_NUL_trans(), and yylex().

flex_int16_t yy_base[253] [static]
 

Definition at line 437 of file scanner.cc.

Referenced by yy_get_previous_state(), yy_try_NUL_trans(), and yylex().

YY_BUFFER_STATE* yy_buffer_stack = 0 [static]
 

Stack as an array.

Definition at line 246 of file scanner.cc.

Referenced by yyensure_buffer_stack(), and yylex_destroy().

size_t yy_buffer_stack_max = 0 [static]
 

capacity of stack

Definition at line 245 of file scanner.cc.

Referenced by yyensure_buffer_stack().

size_t yy_buffer_stack_top = 0 [static]
 

index of top of stack

Definition at line 244 of file scanner.cc.

Referenced by yyensure_buffer_stack(), yypop_buffer_state(), and yypush_buffer_state().

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

Definition at line 269 of file scanner.cc.

Referenced by input(), yy_get_next_buffer(), yy_get_previous_state(), yy_load_buffer_state(), yy_switch_to_buffer(), yy_try_NUL_trans(), yylex(), yypush_buffer_state(), and yyunput().

flex_int16_t yy_chk[445] [static]
 

Definition at line 554 of file scanner.cc.

Referenced by yy_get_previous_state(), yy_try_NUL_trans(), and yylex().

flex_int16_t yy_def[253] [static]
 

Definition at line 469 of file scanner.cc.

Referenced by yy_get_previous_state(), yy_try_NUL_trans(), and yylex().

int yy_did_buffer_switch_on_eof [static]
 

Definition at line 276 of file scanner.cc.

Referenced by input(), yy_switch_to_buffer(), yylex(), yypop_buffer_state(), and yypush_buffer_state().

flex_int32_t yy_ec[256] [static]
 

Definition at line 394 of file scanner.cc.

Referenced by yy_get_previous_state(), and yylex().

int yy_flex_debug = 0
 

Definition at line 611 of file scanner.cc.

Referenced by yyget_debug(), and yyset_debug().

char yy_hold_char [static]
 

Definition at line 264 of file scanner.cc.

Referenced by input(), yy_load_buffer_state(), yy_switch_to_buffer(), yylex(), yypush_buffer_state(), and yyunput().

int yy_init = 1 [static]
 

Definition at line 270 of file scanner.cc.

Referenced by yylex().

char* yy_last_accepting_cpos [static]
 

Definition at line 608 of file scanner.cc.

Referenced by yy_get_previous_state(), yy_try_NUL_trans(), and yylex().

yy_state_type yy_last_accepting_state [static]
 

Definition at line 607 of file scanner.cc.

Referenced by yy_get_previous_state(), yy_try_NUL_trans(), and yylex().

flex_int32_t yy_meta[64] [static]
 

Initial value:

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

Definition at line 426 of file scanner.cc.

Referenced by yy_get_previous_state(), yy_try_NUL_trans(), and yylex().

int yy_n_chars [static]
 

Definition at line 265 of file scanner.cc.

Referenced by input(), yy_get_next_buffer(), yy_load_buffer_state(), yy_switch_to_buffer(), yylex(), yypush_buffer_state(), and yyunput().

flex_int16_t yy_nxt[445] [static]
 

Definition at line 501 of file scanner.cc.

Referenced by yy_get_previous_state(), yy_try_NUL_trans(), and yylex().

int yy_start = 0 [static]
 

Definition at line 271 of file scanner.cc.

Referenced by yy_get_previous_state(), and yylex().

FILE * yyin = (FILE *) 0 *yyout = (FILE *) 0
 

Definition at line 328 of file scanner.cc.

Referenced by input(), yy_get_next_buffer(), yy_load_buffer_state(), yyget_in(), yylex(), yyrestart(), and yyset_in().

int yyleng
 

Definition at line 266 of file scanner.cc.

Referenced by yyget_leng(), and yylex().

int yylineno = 1
 

Definition at line 334 of file scanner.cc.

Referenced by yyget_lineno(), and yyset_lineno().

FILE * yyout
 

Definition at line 144 of file scanner.cc.

Referenced by yyget_out(), yylex(), and yyset_out().

char * yytext
 

Definition at line 620 of file scanner.cc.

Referenced by yyget_text(), and yylex().

Top of page
Christian Holm (home page)
Last update Fri Dec 12 14:35:50 2003
Created by DoxyGen 1.3.4