Scanner.cpp File Reference
#include <IceUtil/ScannerConfig.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <Ice/Ice.h>
#include <IceStorm/Parser.h>
#include <IceStorm/Grammar.h>
#include <unistd.h>
+ Include dependency graph for Scanner.cpp:

Go to the source code of this file.

Classes

struct  yy_buffer_state
 
struct  yy_trans_info
 

Namespaces

 IceStorm
 

Macros

#define BEGIN   (yy_start) = 1 + 2 *
 
#define ECHO   do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
 
#define EOB_ACT_CONTINUE_SCAN   0
 
#define EOB_ACT_END_OF_FILE   1
 
#define EOB_ACT_LAST_MATCH   2
 
#define FLEX_BETA
 
#define FLEX_SCANNER
 
#define FLEXINT_H
 
#define INITIAL   0
 
#define INT16_MAX   (32767)
 
#define INT16_MIN   (-32767-1)
 
#define INT32_MAX   (2147483647)
 
#define INT32_MIN   (-2147483647-1)
 
#define INT8_MAX   (127)
 
#define INT8_MIN   (-128)
 
#define REJECT   reject_used_but_not_detected
 
#define UINT16_MAX   (65535U)
 
#define UINT32_MAX   (4294967295U)
 
#define UINT8_MAX   (255U)
 
#define unput(c)   yyunput( c, (yytext_ptr) )
 
#define YY_AT_BOL()   (YY_CURRENT_BUFFER_LVALUE->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
 
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
 
#define YY_DECL   int yylex (void)
 
#define YY_DECL_IS_OURS   1
 
#define YY_DO_BEFORE_ACTION
 
#define YY_END_OF_BUFFER   9
 
#define YY_END_OF_BUFFER_CHAR   0
 
#define YY_EXIT_FAILURE   2
 
#define YY_EXTRA_TYPE   void *
 
#define YY_FATAL_ERROR(msg)   yy_fatal_error( msg )
 
#define YY_FLEX_MAJOR_VERSION   2
 
#define YY_FLEX_MINOR_VERSION   5
 
#define YY_FLEX_SUBMINOR_VERSION   37
 
#define YY_FLUSH_BUFFER   yy_flush_buffer(YY_CURRENT_BUFFER )
 
#define YY_INPUT(buf, result, maxSize)   parser->getInput(buf, result, maxSize)
 
#define YY_INT_ALIGNED   short int
 
#define YY_LESS_LINENO(n)
 
#define YY_MORE_ADJ   0
 
#define yy_new_buffer   yy_create_buffer
 
#define YY_NEW_FILE   yyrestart(yyin )
 
#define YY_NULL   0
 
#define YY_NUM_RULES   8
 
#define YY_READ_BUF_SIZE   8192
 
#define YY_RESTORE_YY_MORE_OFFSET
 
#define YY_RULE_SETUP   YY_USER_ACTION
 
#define YY_SC_TO_UI(c)   ((unsigned int) (unsigned char) c)
 
#define yy_set_bol(at_bol)
 
#define yy_set_interactive(is_interactive)
 
#define YY_SKIP_YYWRAP
 
#define YY_START   (((yy_start) - 1) / 2)
 
#define YY_START_STACK_INCR   25
 
#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
 
#define YY_STATE_EOF(state)   (YY_END_OF_BUFFER + state + 1)
 
#define YY_STRUCT_YY_BUFFER_STATE
 
#define YY_TYPEDEF_YY_BUFFER_STATE
 
#define YY_TYPEDEF_YY_SIZE_T
 
#define YY_USER_ACTION
 
#define YY_USER_INIT   initScanner();
 
#define yyconst
 
#define yyless(n)
 
#define yyless(n)
 
#define yymore()   yymore_used_but_not_detected
 
#define YYSTATE   YY_START
 
#define YYTABLES_NAME   "yytables"
 
#define yyterminate()   return YY_NULL
 
#define yytext_ptr   yytext
 
#define yywrap()   1
 

Typedefs

typedef short int flex_int16_t
 
typedef int flex_int32_t
 
typedef signed char flex_int8_t
 
typedef unsigned short int flex_uint16_t
 
typedef unsigned int flex_uint32_t
 
typedef unsigned char flex_uint8_t
 
typedef std::map< std::string, int > StringTokenMap
 
typedef struct yy_buffer_stateYY_BUFFER_STATE
 
typedef unsigned char YY_CHAR
 
typedef size_t yy_size_t
 
typedef int yy_state_type
 

Functions

 if (!(yy_init))
 
void initScanner ()
 
 while (1)
 
YY_BUFFER_STATE yy_create_buffer (FILE *file, int size)
 Allocate and initialize an input buffer state. More...
 
void yy_delete_buffer (YY_BUFFER_STATE b)
 Destroy the buffer. More...
 
void yy_flush_buffer (YY_BUFFER_STATE b)
 Discard all buffered characters. More...
 
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. More...
 
YY_BUFFER_STATE yy_scan_bytes (yyconst char *yybytes, yy_size_t _yybytes_len)
 Setup the input buffer state to scan the given bytes. More...
 
YY_BUFFER_STATE yy_scan_string (yyconst char *yystr)
 Setup the input buffer state to scan a string. More...
 
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer)
 Switch to a different input buffer. More...
 
void * yyalloc (yy_size_t)
 
void yyfree (void *)
 
int yyget_debug (void)
 
YY_EXTRA_TYPE yyget_extra (void)
 
FILE * yyget_in (void)
 Get the input stream. More...
 
yy_size_t yyget_leng (void)
 Get the length of the current token. More...
 
int yyget_lineno (void)
 Get the current line number. More...
 
FILE * yyget_out (void)
 Get the output stream. More...
 
char * yyget_text (void)
 Get the current token. More...
 
int yylex (void)
 
int yylex_destroy (void)
 
void yypop_buffer_state (void)
 Removes and deletes the top of the stack, if present. More...
 
void yypush_buffer_state (YY_BUFFER_STATE new_buffer)
 Pushes the new state onto the stack. More...
 
void * yyrealloc (void *, yy_size_t)
 
void yyrestart (FILE *input_file)
 Immediately switch to a different input stream. More...
 
void yyset_debug (int debug_flag)
 
void yyset_extra (YY_EXTRA_TYPE user_defined)
 
void yyset_in (FILE *in_str)
 Set the input stream. More...
 
void yyset_lineno (int line_number)
 Set the current line number. More...
 
void yyset_out (FILE *out_str)
 

Variables

int yy_act
 
char * yy_bp
 
char * yy_cp
 
 YY_DECL
 The main scanner function which does all the work. More...
 
int yy_flex_debug = 0
 
FILE * yyin = (FILE*) 0
 
yy_size_t yyleng
 
int yylineno = 1
 
FILE * yyout = (FILE*) 0
 
char * yytext
 

Macro Definition Documentation

◆ BEGIN

#define BEGIN   (yy_start) = 1 + 2 *

Definition at line 127 of file Scanner.cpp.

◆ ECHO

#define ECHO   do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)

Definition at line 633 of file Scanner.cpp.

◆ EOB_ACT_CONTINUE_SCAN

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 167 of file Scanner.cpp.

◆ EOB_ACT_END_OF_FILE

#define EOB_ACT_END_OF_FILE   1

Definition at line 168 of file Scanner.cpp.

◆ EOB_ACT_LAST_MATCH

#define EOB_ACT_LAST_MATCH   2

Definition at line 169 of file Scanner.cpp.

◆ FLEX_BETA

#define FLEX_BETA

Definition at line 15 of file Scanner.cpp.

◆ FLEX_SCANNER

#define FLEX_SCANNER

Definition at line 10 of file Scanner.cpp.

◆ FLEXINT_H

#define FLEXINT_H

Definition at line 31 of file Scanner.cpp.

◆ INITIAL

#define INITIAL   0

Definition at line 546 of file Scanner.cpp.

◆ INT16_MAX

#define INT16_MAX   (32767)

Definition at line 73 of file Scanner.cpp.

◆ INT16_MIN

#define INT16_MIN   (-32767-1)

Definition at line 64 of file Scanner.cpp.

◆ INT32_MAX

#define INT32_MAX   (2147483647)

Definition at line 76 of file Scanner.cpp.

◆ INT32_MIN

#define INT32_MIN   (-2147483647-1)

Definition at line 67 of file Scanner.cpp.

◆ INT8_MAX

#define INT8_MAX   (127)

Definition at line 70 of file Scanner.cpp.

◆ INT8_MIN

#define INT8_MIN   (-128)

Definition at line 61 of file Scanner.cpp.

◆ REJECT

#define REJECT   reject_used_but_not_detected

Definition at line 464 of file Scanner.cpp.

◆ UINT16_MAX

#define UINT16_MAX   (65535U)

Definition at line 82 of file Scanner.cpp.

◆ UINT32_MAX

#define UINT32_MAX   (4294967295U)

Definition at line 85 of file Scanner.cpp.

◆ UINT8_MAX

#define UINT8_MAX   (255U)

Definition at line 79 of file Scanner.cpp.

◆ unput

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

Definition at line 187 of file Scanner.cpp.

◆ YY_AT_BOL

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 333 of file Scanner.cpp.

◆ YY_BREAK

#define YY_BREAK   break;

Definition at line 712 of file Scanner.cpp.

◆ YY_BUF_SIZE

#define YY_BUF_SIZE   16384

Definition at line 146 of file Scanner.cpp.

◆ YY_BUFFER_EOF_PENDING

#define YY_BUFFER_EOF_PENDING   2

Definition at line 249 of file Scanner.cpp.

◆ YY_BUFFER_NEW

#define YY_BUFFER_NEW   0

Definition at line 237 of file Scanner.cpp.

◆ YY_BUFFER_NORMAL

#define YY_BUFFER_NORMAL   1

Definition at line 238 of file Scanner.cpp.

◆ YY_CURRENT_BUFFER

#define YY_CURRENT_BUFFER
Value:
( (yy_buffer_stack) \
? (yy_buffer_stack)[(yy_buffer_stack_top)] \
: NULL)

Definition at line 265 of file Scanner.cpp.

◆ YY_CURRENT_BUFFER_LVALUE

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

Definition at line 272 of file Scanner.cpp.

◆ YY_DECL

#define YY_DECL   int yylex (void)

Definition at line 700 of file Scanner.cpp.

◆ YY_DECL_IS_OURS

#define YY_DECL_IS_OURS   1

Definition at line 696 of file Scanner.cpp.

◆ YY_DO_BEFORE_ACTION

#define YY_DO_BEFORE_ACTION
Value:
yyleng = (size_t) (yy_cp - yy_bp); \
(yy_hold_char) = *yy_cp; \
*yy_cp = '\0'; \
(yy_c_buf_p) = yy_cp;

Definition at line 361 of file Scanner.cpp.

◆ YY_END_OF_BUFFER

#define YY_END_OF_BUFFER   9

Definition at line 369 of file Scanner.cpp.

◆ YY_END_OF_BUFFER_CHAR

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 142 of file Scanner.cpp.

◆ YY_EXIT_FAILURE

#define YY_EXIT_FAILURE   2

Definition at line 1868 of file Scanner.cpp.

◆ YY_EXTRA_TYPE

#define YY_EXTRA_TYPE   void *

Definition at line 557 of file Scanner.cpp.

◆ YY_FATAL_ERROR

#define YY_FATAL_ERROR (   msg)    yy_fatal_error( msg )

Definition at line 687 of file Scanner.cpp.

◆ YY_FLEX_MAJOR_VERSION

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 11 of file Scanner.cpp.

◆ YY_FLEX_MINOR_VERSION

#define YY_FLEX_MINOR_VERSION   5

Definition at line 12 of file Scanner.cpp.

◆ YY_FLEX_SUBMINOR_VERSION

#define YY_FLEX_SUBMINOR_VERSION   37

Definition at line 13 of file Scanner.cpp.

◆ YY_FLUSH_BUFFER

#define YY_FLUSH_BUFFER   yy_flush_buffer(YY_CURRENT_BUFFER )

Definition at line 301 of file Scanner.cpp.

◆ YY_INPUT

#define YY_INPUT (   buf,
  result,
  maxSize 
)    parser->getInput(buf, result, maxSize)

Definition at line 531 of file Scanner.cpp.

◆ YY_INT_ALIGNED

#define YY_INT_ALIGNED   short int

Definition at line 6 of file Scanner.cpp.

◆ YY_LESS_LINENO

#define YY_LESS_LINENO (   n)

Definition at line 171 of file Scanner.cpp.

◆ YY_MORE_ADJ

#define YY_MORE_ADJ   0

Definition at line 466 of file Scanner.cpp.

◆ yy_new_buffer

#define yy_new_buffer   yy_create_buffer

Definition at line 311 of file Scanner.cpp.

◆ YY_NEW_FILE

#define YY_NEW_FILE   yyrestart(yyin )

Definition at line 140 of file Scanner.cpp.

◆ YY_NULL

#define YY_NULL   0

Definition at line 114 of file Scanner.cpp.

◆ YY_NUM_RULES

#define YY_NUM_RULES   8

Definition at line 368 of file Scanner.cpp.

◆ YY_READ_BUF_SIZE

#define YY_READ_BUF_SIZE   8192

Definition at line 625 of file Scanner.cpp.

◆ YY_RESTORE_YY_MORE_OFFSET

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 467 of file Scanner.cpp.

◆ YY_RULE_SETUP

#define YY_RULE_SETUP   YY_USER_ACTION

Definition at line 715 of file Scanner.cpp.

◆ YY_SC_TO_UI

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

Definition at line 121 of file Scanner.cpp.

◆ yy_set_bol

#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 323 of file Scanner.cpp.

◆ yy_set_interactive

#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 313 of file Scanner.cpp.

◆ YY_SKIP_YYWRAP

#define YY_SKIP_YYWRAP

Definition at line 338 of file Scanner.cpp.

◆ YY_START

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

Definition at line 133 of file Scanner.cpp.

◆ YY_START_STACK_INCR

#define YY_START_STACK_INCR   25

Definition at line 682 of file Scanner.cpp.

◆ YY_STATE_BUF_SIZE

#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))

Definition at line 151 of file Scanner.cpp.

◆ YY_STATE_EOF

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

Definition at line 137 of file Scanner.cpp.

◆ YY_STRUCT_YY_BUFFER_STATE

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 190 of file Scanner.cpp.

◆ YY_TYPEDEF_YY_BUFFER_STATE

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 154 of file Scanner.cpp.

◆ YY_TYPEDEF_YY_SIZE_T

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 159 of file Scanner.cpp.

◆ YY_USER_ACTION

#define YY_USER_ACTION

Definition at line 707 of file Scanner.cpp.

◆ YY_USER_INIT

#define YY_USER_INIT   initScanner();

Definition at line 542 of file Scanner.cpp.

◆ yyconst

#define yyconst

Definition at line 110 of file Scanner.cpp.

◆ yyless [1/2]

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up yytext. */ \
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; /* set up yytext again */ \
} \
while ( 0 )

Definition at line 1880 of file Scanner.cpp.

◆ yyless [2/2]

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up yytext. */ \
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 1880 of file Scanner.cpp.

◆ yymore

#define yymore ( )    yymore_used_but_not_detected

Definition at line 465 of file Scanner.cpp.

◆ YYSTATE

#define YYSTATE   YY_START

Definition at line 134 of file Scanner.cpp.

◆ YYTABLES_NAME

#define YYTABLES_NAME   "yytables"

Definition at line 2073 of file Scanner.cpp.

◆ yyterminate

#define yyterminate ( )    return YY_NULL

Definition at line 677 of file Scanner.cpp.

◆ yytext_ptr

#define yytext_ptr   yytext

Definition at line 351 of file Scanner.cpp.

◆ yywrap

#define yywrap ( )    1

Definition at line 337 of file Scanner.cpp.

Typedef Documentation

◆ flex_int16_t

typedef short int flex_int16_t

Definition at line 53 of file Scanner.cpp.

◆ flex_int32_t

typedef int flex_int32_t

Definition at line 54 of file Scanner.cpp.

◆ flex_int8_t

typedef signed char flex_int8_t

Definition at line 52 of file Scanner.cpp.

◆ flex_uint16_t

typedef unsigned short int flex_uint16_t

Definition at line 56 of file Scanner.cpp.

◆ flex_uint32_t

typedef unsigned int flex_uint32_t

Definition at line 57 of file Scanner.cpp.

◆ flex_uint8_t

typedef unsigned char flex_uint8_t

Definition at line 55 of file Scanner.cpp.

◆ YY_BUFFER_STATE

Definition at line 155 of file Scanner.cpp.

◆ YY_CHAR

typedef unsigned char YY_CHAR

Definition at line 340 of file Scanner.cpp.

◆ yy_size_t

typedef size_t yy_size_t

Definition at line 160 of file Scanner.cpp.

◆ yy_state_type

typedef int yy_state_type

Definition at line 344 of file Scanner.cpp.

Function Documentation

◆ if()

if ( yy_init)

Definition at line 731 of file Scanner.cpp.

◆ while()

while ( )

Definition at line 764 of file Scanner.cpp.

+ Here is the caller graph for this function:

◆ yy_create_buffer()

YY_BUFFER_STATE yy_create_buffer ( FILE *  file,
int  size 
)

Allocate and initialize an input buffer state.

Parameters
fileA readable stream.
sizeThe character buffer size in bytes. When in doubt, use YY_BUF_SIZE.
Returns
the allocated buffer state.

Definition at line 1545 of file Scanner.cpp.

+ Here is the call graph for this function:

◆ yy_delete_buffer()

void yy_delete_buffer ( YY_BUFFER_STATE  b)

Destroy the buffer.

Parameters
ba buffer created with yy_create_buffer()

Definition at line 1577 of file Scanner.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ yy_flush_buffer()

void yy_flush_buffer ( YY_BUFFER_STATE  b)

Discard all buffered characters.

On the next scan, YY_INPUT will be called.

Parameters
bthe buffer state to be flushed, usually YY_CURRENT_BUFFER.

Definition at line 1631 of file Scanner.cpp.

◆ yy_scan_buffer()

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
basethe character buffer
sizethe size in bytes of the character buffer
Returns
the newly allocated buffer state object.

Definition at line 1777 of file Scanner.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ yy_scan_bytes()

YY_BUFFER_STATE yy_scan_bytes ( yyconst char *  yybytes,
yy_size_t  _yybytes_len 
)

Setup the input buffer state to scan the given bytes.

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

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

Definition at line 1831 of file Scanner.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ yy_scan_string()

YY_BUFFER_STATE yy_scan_string ( yyconst char *  yystr)

Setup the input buffer state to scan a string.

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

Parameters
yystra 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 1818 of file Scanner.cpp.

+ Here is the call graph for this function:

◆ yy_switch_to_buffer()

void yy_switch_to_buffer ( YY_BUFFER_STATE  new_buffer)

Switch to a different input buffer.

Parameters
new_bufferThe new input buffer.

Definition at line 1498 of file Scanner.cpp.

+ Here is the caller graph for this function:

◆ yyalloc()

void * yyalloc ( yy_size_t  size)

Definition at line 2051 of file Scanner.cpp.

+ Here is the caller graph for this function:

◆ yyfree()

void yyfree ( void *  ptr)

Definition at line 2068 of file Scanner.cpp.

+ Here is the caller graph for this function:

◆ yyget_debug()

int yyget_debug ( void  )

Definition at line 1964 of file Scanner.cpp.

◆ yyget_extra()

YY_EXTRA_TYPE yyget_extra ( void  )

◆ yyget_in()

FILE * yyget_in ( void  )

Get the input stream.

Definition at line 1908 of file Scanner.cpp.

◆ yyget_leng()

yy_size_t yyget_leng ( void  )

Get the length of the current token.

Definition at line 1924 of file Scanner.cpp.

◆ yyget_lineno()

int yyget_lineno ( void  )

Get the current line number.

Definition at line 1899 of file Scanner.cpp.

◆ yyget_out()

FILE * yyget_out ( void  )

Get the output stream.

Definition at line 1916 of file Scanner.cpp.

◆ yyget_text()

char * yyget_text ( void  )

Get the current token.

Definition at line 1933 of file Scanner.cpp.

◆ yylex()

int yylex ( void  )

◆ yylex_destroy()

int yylex_destroy ( void  )

Definition at line 2003 of file Scanner.cpp.

+ Here is the call graph for this function:

◆ yypop_buffer_state()

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 1698 of file Scanner.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ yypush_buffer_state()

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_bufferThe new state.

Definition at line 1664 of file Scanner.cpp.

◆ yyrealloc()

void * yyrealloc ( void *  ptr,
yy_size_t  size 
)

Definition at line 2056 of file Scanner.cpp.

◆ yyrestart()

void yyrestart ( FILE *  input_file)

Immediately switch to a different input stream.

Parameters
input_fileA readable stream.
Note
This function does not reset the start condition to INITIAL .

Definition at line 1480 of file Scanner.cpp.

◆ yyset_debug()

void yyset_debug ( int  debug_flag)

Definition at line 1969 of file Scanner.cpp.

◆ yyset_extra()

void yyset_extra ( YY_EXTRA_TYPE  user_defined)

◆ yyset_in()

void yyset_in ( FILE *  in_str)

Set the input stream.

This does not discard the current input buffer.

Parameters
in_strA readable stream.
See also
yy_switch_to_buffer

Definition at line 1954 of file Scanner.cpp.

◆ yyset_lineno()

void yyset_lineno ( int  line_number)

Set the current line number.

Parameters
line_number

Definition at line 1942 of file Scanner.cpp.

◆ yyset_out()

void yyset_out ( FILE *  out_str)

Definition at line 1959 of file Scanner.cpp.

Variable Documentation

◆ yy_act

int yy_act

Definition at line 724 of file Scanner.cpp.

◆ yy_bp

char * yy_bp

Definition at line 723 of file Scanner.cpp.

◆ yy_cp

char* yy_cp

Definition at line 723 of file Scanner.cpp.

◆ YY_DECL

YY_DECL
Initial value:
{
yy_state_type yy_current_state

The main scanner function which does all the work.

Definition at line 721 of file Scanner.cpp.

◆ yy_flex_debug

int yy_flex_debug = 0

Definition at line 459 of file Scanner.cpp.

◆ yyin

FILE* yyin = (FILE*) 0

Definition at line 342 of file Scanner.cpp.

◆ yyleng

yy_size_t yyleng

Definition at line 277 of file Scanner.cpp.

◆ yylineno

int yylineno = 1

Definition at line 348 of file Scanner.cpp.

◆ yyout

FILE * yyout = (FILE*) 0

Definition at line 165 of file Scanner.cpp.

◆ yytext

char * yytext

Definition at line 468 of file Scanner.cpp.

yy_cp
char * yy_cp
Definition: Scanner.cpp:723
YY_CURRENT_BUFFER
#define YY_CURRENT_BUFFER
Definition: Scanner.cpp:265
yy_bp
char * yy_bp
Definition: Scanner.cpp:723
YY_BUF_SIZE
#define YY_BUF_SIZE
Definition: Scanner.cpp:146
YY_MORE_ADJ
#define YY_MORE_ADJ
Definition: Scanner.cpp:466
yy_state_type
int yy_state_type
Definition: Scanner.cpp:344
yyleng
yy_size_t yyleng
Definition: Scanner.cpp:277
yytext_ptr
#define yytext_ptr
Definition: Scanner.cpp:351
yyin
FILE * yyin
Definition: Scanner.cpp:342
yytext
char * yytext
Definition: Scanner.cpp:468