|
|
#include <IceUtil/ScannerConfig.h>#include <errno.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <Ice/Ice.h>#include <IceStorm/Grammar.h>#include <IceStorm/Parser.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 |
| #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 ((yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)] : NULL) |
| #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_state * | YY_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 |
| #define BEGIN (yy_start) = 1 + 2 * |
Definition at line 127 of file Scanner.cpp.
| #define ECHO |
Definition at line 587 of file Scanner.cpp.
| #define EOB_ACT_CONTINUE_SCAN 0 |
Definition at line 167 of file Scanner.cpp.
| #define EOB_ACT_END_OF_FILE 1 |
Definition at line 168 of file Scanner.cpp.
| #define EOB_ACT_LAST_MATCH 2 |
Definition at line 169 of file Scanner.cpp.
| #define FLEX_BETA |
Definition at line 15 of file Scanner.cpp.
| #define FLEX_SCANNER |
Definition at line 10 of file Scanner.cpp.
| #define FLEXINT_H |
Definition at line 31 of file Scanner.cpp.
| #define INITIAL 0 |
Definition at line 500 of file Scanner.cpp.
| #define INT16_MAX (32767) |
Definition at line 73 of file Scanner.cpp.
| #define INT16_MIN (-32767 - 1) |
Definition at line 64 of file Scanner.cpp.
| #define INT32_MAX (2147483647) |
Definition at line 76 of file Scanner.cpp.
| #define INT32_MIN (-2147483647 - 1) |
Definition at line 67 of file Scanner.cpp.
| #define INT8_MAX (127) |
Definition at line 70 of file Scanner.cpp.
| #define INT8_MIN (-128) |
Definition at line 61 of file Scanner.cpp.
| #define REJECT reject_used_but_not_detected |
Definition at line 417 of file Scanner.cpp.
| #define UINT16_MAX (65535U) |
Definition at line 82 of file Scanner.cpp.
| #define UINT32_MAX (4294967295U) |
Definition at line 85 of file Scanner.cpp.
| #define UINT8_MAX (255U) |
Definition at line 79 of file Scanner.cpp.
| #define unput | ( | c | ) | yyunput(c, (yytext_ptr)) |
Definition at line 185 of file Scanner.cpp.
| #define YY_AT_BOL | ( | ) | (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
Definition at line 329 of file Scanner.cpp.
| #define YY_BREAK break; |
Definition at line 671 of file Scanner.cpp.
| #define YY_BUF_SIZE 16384 |
Definition at line 146 of file Scanner.cpp.
| #define YY_BUFFER_EOF_PENDING 2 |
Definition at line 248 of file Scanner.cpp.
| #define YY_BUFFER_NEW 0 |
Definition at line 236 of file Scanner.cpp.
| #define YY_BUFFER_NORMAL 1 |
Definition at line 237 of file Scanner.cpp.
| #define YY_CURRENT_BUFFER ((yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)] : NULL) |
Definition at line 263 of file Scanner.cpp.
| #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
Definition at line 268 of file Scanner.cpp.
| #define YY_DECL int yylex(void) |
Definition at line 659 of file Scanner.cpp.
| #define YY_DECL_IS_OURS 1 |
Definition at line 655 of file Scanner.cpp.
| #define YY_DO_BEFORE_ACTION |
Definition at line 357 of file Scanner.cpp.
| #define YY_END_OF_BUFFER 9 |
Definition at line 365 of file Scanner.cpp.
| #define YY_END_OF_BUFFER_CHAR 0 |
Definition at line 142 of file Scanner.cpp.
| #define YY_EXIT_FAILURE 2 |
Definition at line 1828 of file Scanner.cpp.
| #define YY_EXTRA_TYPE void* |
Definition at line 511 of file Scanner.cpp.
| #define YY_FATAL_ERROR | ( | msg | ) | yy_fatal_error(msg) |
Definition at line 646 of file Scanner.cpp.
| #define YY_FLEX_MAJOR_VERSION 2 |
Definition at line 11 of file Scanner.cpp.
| #define YY_FLEX_MINOR_VERSION 5 |
Definition at line 12 of file Scanner.cpp.
| #define YY_FLEX_SUBMINOR_VERSION 37 |
Definition at line 13 of file Scanner.cpp.
| #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER) |
Definition at line 297 of file Scanner.cpp.
| #define YY_INPUT | ( | buf, | |
| result, | |||
| maxSize | |||
| ) | parser->getInput(buf, result, maxSize) |
Definition at line 484 of file Scanner.cpp.
| #define YY_INT_ALIGNED short int |
Definition at line 6 of file Scanner.cpp.
| #define YY_LESS_LINENO | ( | n | ) |
Definition at line 171 of file Scanner.cpp.
| #define YY_MORE_ADJ 0 |
Definition at line 419 of file Scanner.cpp.
| #define yy_new_buffer yy_create_buffer |
Definition at line 307 of file Scanner.cpp.
Definition at line 140 of file Scanner.cpp.
| #define YY_NULL 0 |
Definition at line 114 of file Scanner.cpp.
| #define YY_NUM_RULES 8 |
Definition at line 364 of file Scanner.cpp.
| #define YY_READ_BUF_SIZE 8192 |
Definition at line 579 of file Scanner.cpp.
| #define YY_RESTORE_YY_MORE_OFFSET |
Definition at line 420 of file Scanner.cpp.
| #define YY_RULE_SETUP YY_USER_ACTION |
Definition at line 674 of file Scanner.cpp.
Definition at line 121 of file Scanner.cpp.
| #define yy_set_bol | ( | at_bol | ) |
Definition at line 319 of file Scanner.cpp.
| #define yy_set_interactive | ( | is_interactive | ) |
Definition at line 309 of file Scanner.cpp.
| #define YY_SKIP_YYWRAP |
Definition at line 334 of file Scanner.cpp.
| #define YY_START (((yy_start)-1) / 2) |
Definition at line 133 of file Scanner.cpp.
| #define YY_START_STACK_INCR 25 |
Definition at line 641 of file Scanner.cpp.
| #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
Definition at line 151 of file Scanner.cpp.
| #define YY_STATE_EOF | ( | state | ) | (YY_END_OF_BUFFER + state + 1) |
Definition at line 137 of file Scanner.cpp.
| #define YY_STRUCT_YY_BUFFER_STATE |
Definition at line 188 of file Scanner.cpp.
| #define YY_TYPEDEF_YY_BUFFER_STATE |
Definition at line 154 of file Scanner.cpp.
| #define YY_TYPEDEF_YY_SIZE_T |
Definition at line 159 of file Scanner.cpp.
| #define YY_USER_ACTION |
Definition at line 666 of file Scanner.cpp.
| #define YY_USER_INIT initScanner(); |
Definition at line 496 of file Scanner.cpp.
| #define yyconst |
Definition at line 110 of file Scanner.cpp.
| #define yyless | ( | n | ) |
Definition at line 1841 of file Scanner.cpp.
| #define yyless | ( | n | ) |
Definition at line 1841 of file Scanner.cpp.
| #define yymore | ( | ) | yymore_used_but_not_detected |
Definition at line 418 of file Scanner.cpp.
| #define YYSTATE YY_START |
Definition at line 134 of file Scanner.cpp.
| #define YYTABLES_NAME "yytables" |
Definition at line 2050 of file Scanner.cpp.
Definition at line 636 of file Scanner.cpp.
| #define yytext_ptr yytext |
Definition at line 347 of file Scanner.cpp.
| #define yywrap | ( | ) | 1 |
Definition at line 333 of file Scanner.cpp.
| typedef short int flex_int16_t |
Definition at line 53 of file Scanner.cpp.
| typedef int flex_int32_t |
Definition at line 54 of file Scanner.cpp.
| typedef signed char flex_int8_t |
Definition at line 52 of file Scanner.cpp.
| typedef unsigned short int flex_uint16_t |
Definition at line 56 of file Scanner.cpp.
| typedef unsigned int flex_uint32_t |
Definition at line 57 of file Scanner.cpp.
| typedef unsigned char flex_uint8_t |
Definition at line 55 of file Scanner.cpp.
| typedef struct yy_buffer_state* YY_BUFFER_STATE |
Definition at line 155 of file Scanner.cpp.
| typedef unsigned char YY_CHAR |
Definition at line 336 of file Scanner.cpp.
| typedef size_t yy_size_t |
Definition at line 160 of file Scanner.cpp.
| typedef int yy_state_type |
Definition at line 340 of file Scanner.cpp.
| if | ( | ! | yy_init | ) |
Definition at line 689 of file Scanner.cpp.
| while | ( | 1 | ) |
| YY_BUFFER_STATE yy_create_buffer | ( | FILE * | file, |
| int | size | ||
| ) |
Allocate and initialize an input buffer state.
| file | A readable stream. |
| size | The character buffer size in bytes. When in doubt, use YY_BUF_SIZE. |
Definition at line 1498 of file Scanner.cpp.
Here is the call graph for this function:| void yy_delete_buffer | ( | YY_BUFFER_STATE | b | ) |
Destroy the buffer.
| b | a buffer created with yy_create_buffer() |
Definition at line 1531 of file Scanner.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void yy_flush_buffer | ( | YY_BUFFER_STATE | b | ) |
Discard all buffered characters.
On the next scan, YY_INPUT will be called.
| b | the buffer state to be flushed, usually YY_CURRENT_BUFFER. |
Definition at line 1587 of file Scanner.cpp.
| 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.
| base | the character buffer |
| size | the size in bytes of the character buffer |
Definition at line 1736 of file Scanner.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
| yybytes | the byte buffer to scan |
| _yybytes_len | the number of bytes in the buffer pointed to by bytes. |
Definition at line 1791 of file Scanner.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
| yystr | a NUL-terminated string to scan |
Definition at line 1777 of file Scanner.cpp.
Here is the call graph for this function:| void yy_switch_to_buffer | ( | YY_BUFFER_STATE | new_buffer | ) |
Switch to a different input buffer.
| new_buffer | The new input buffer. |
Definition at line 1449 of file Scanner.cpp.
Here is the caller graph for this function:| void yyfree | ( | void * | ptr | ) |
| int yyget_debug | ( | void | ) |
Definition at line 1933 of file Scanner.cpp.
| YY_EXTRA_TYPE yyget_extra | ( | void | ) |
| FILE * yyget_in | ( | void | ) |
Get the input stream.
Definition at line 1870 of file Scanner.cpp.
| yy_size_t yyget_leng | ( | void | ) |
Get the length of the current token.
Definition at line 1888 of file Scanner.cpp.
| int yyget_lineno | ( | void | ) |
Get the current line number.
Definition at line 1860 of file Scanner.cpp.
| FILE * yyget_out | ( | void | ) |
Get the output stream.
Definition at line 1879 of file Scanner.cpp.
| char * yyget_text | ( | void | ) |
Get the current token.
Definition at line 1898 of file Scanner.cpp.
| int yylex | ( | void | ) |
| int yylex_destroy | ( | void | ) |
| 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 1656 of file Scanner.cpp.
Here is the call graph for this function:
Here is the caller 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.
| new_buffer | The new state. |
Definition at line 1621 of file Scanner.cpp.
| void * yyrealloc | ( | void * | ptr, |
| yy_size_t | size | ||
| ) |
Definition at line 2032 of file Scanner.cpp.
| void yyrestart | ( | FILE * | input_file | ) |
Immediately switch to a different input stream.
| input_file | A readable stream. |
INITIAL . Definition at line 1431 of file Scanner.cpp.
| void yyset_debug | ( | int | debug_flag | ) |
Definition at line 1939 of file Scanner.cpp.
| void yyset_extra | ( | YY_EXTRA_TYPE | user_defined | ) |
| void yyset_in | ( | FILE * | in_str | ) |
Set the input stream.
This does not discard the current input buffer.
| in_str | A readable stream. |
Definition at line 1921 of file Scanner.cpp.
| void yyset_lineno | ( | int | line_number | ) |
| void yyset_out | ( | FILE * | out_str | ) |
Definition at line 1927 of file Scanner.cpp.
| int yy_act |
Definition at line 682 of file Scanner.cpp.
| char * yy_bp |
Definition at line 681 of file Scanner.cpp.
| char* yy_cp |
Definition at line 681 of file Scanner.cpp.
| YY_DECL |
The main scanner function which does all the work.
Definition at line 679 of file Scanner.cpp.
| int yy_flex_debug = 0 |
Definition at line 412 of file Scanner.cpp.
| FILE* yyin = (FILE*)0 |
Definition at line 338 of file Scanner.cpp.
| yy_size_t yyleng |
Definition at line 273 of file Scanner.cpp.
| int yylineno = 1 |
Definition at line 344 of file Scanner.cpp.
| FILE * yyout = (FILE*)0 |
Definition at line 165 of file Scanner.cpp.
| char * yytext |
Definition at line 421 of file Scanner.cpp.