|
#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>
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_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.
Definition at line 633 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 546 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 464 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 187 of file Scanner.cpp.
#define YY_AT_BOL | ( | ) | (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
Definition at line 333 of file Scanner.cpp.
#define YY_BREAK break; |
Definition at line 712 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 249 of file Scanner.cpp.
#define YY_BUFFER_NEW 0 |
Definition at line 237 of file Scanner.cpp.
#define YY_BUFFER_NORMAL 1 |
Definition at line 238 of file Scanner.cpp.
#define YY_CURRENT_BUFFER |
Definition at line 265 of file Scanner.cpp.
#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
Definition at line 272 of file Scanner.cpp.
#define YY_DECL int yylex (void) |
Definition at line 700 of file Scanner.cpp.
#define YY_DECL_IS_OURS 1 |
Definition at line 696 of file Scanner.cpp.
#define YY_DO_BEFORE_ACTION |
Definition at line 361 of file Scanner.cpp.
#define YY_END_OF_BUFFER 9 |
Definition at line 369 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 1868 of file Scanner.cpp.
#define YY_EXTRA_TYPE void * |
Definition at line 557 of file Scanner.cpp.
#define YY_FATAL_ERROR | ( | msg | ) | yy_fatal_error( msg ) |
Definition at line 687 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 301 of file Scanner.cpp.
#define YY_INPUT | ( | buf, | |
result, | |||
maxSize | |||
) | parser->getInput(buf, result, maxSize) |
Definition at line 531 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 466 of file Scanner.cpp.
#define yy_new_buffer yy_create_buffer |
Definition at line 311 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 368 of file Scanner.cpp.
#define YY_READ_BUF_SIZE 8192 |
Definition at line 625 of file Scanner.cpp.
#define YY_RESTORE_YY_MORE_OFFSET |
Definition at line 467 of file Scanner.cpp.
#define YY_RULE_SETUP YY_USER_ACTION |
Definition at line 715 of file Scanner.cpp.
Definition at line 121 of file Scanner.cpp.
#define yy_set_bol | ( | at_bol | ) |
Definition at line 323 of file Scanner.cpp.
#define yy_set_interactive | ( | is_interactive | ) |
Definition at line 313 of file Scanner.cpp.
#define YY_SKIP_YYWRAP |
Definition at line 338 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 682 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 190 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 707 of file Scanner.cpp.
#define YY_USER_INIT initScanner(); |
Definition at line 542 of file Scanner.cpp.
#define yyconst |
Definition at line 110 of file Scanner.cpp.
#define yyless | ( | n | ) |
Definition at line 1880 of file Scanner.cpp.
#define yyless | ( | n | ) |
Definition at line 1880 of file Scanner.cpp.
#define yymore | ( | ) | yymore_used_but_not_detected |
Definition at line 465 of file Scanner.cpp.
#define YYSTATE YY_START |
Definition at line 134 of file Scanner.cpp.
#define YYTABLES_NAME "yytables" |
Definition at line 2073 of file Scanner.cpp.
#define yyterminate | ( | ) | return YY_NULL |
Definition at line 677 of file Scanner.cpp.
#define yytext_ptr yytext |
Definition at line 351 of file Scanner.cpp.
#define yywrap | ( | ) | 1 |
Definition at line 337 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 340 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 344 of file Scanner.cpp.
if | ( | ! | yy_init | ) |
Definition at line 731 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 1545 of file Scanner.cpp.
void yy_delete_buffer | ( | YY_BUFFER_STATE | b | ) |
Destroy the buffer.
b | a buffer created with yy_create_buffer() |
Definition at line 1577 of file Scanner.cpp.
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 1631 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 1777 of file Scanner.cpp.
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 1831 of file Scanner.cpp.
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 1818 of file Scanner.cpp.
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 1498 of file Scanner.cpp.
void yyfree | ( | void * | ptr | ) |
int yyget_debug | ( | void | ) |
Definition at line 1964 of file Scanner.cpp.
YY_EXTRA_TYPE yyget_extra | ( | void | ) |
FILE * yyget_in | ( | void | ) |
Get the input stream.
Definition at line 1908 of file Scanner.cpp.
yy_size_t yyget_leng | ( | void | ) |
Get the length of the current token.
Definition at line 1924 of file Scanner.cpp.
int yyget_lineno | ( | void | ) |
Get the current line number.
Definition at line 1899 of file Scanner.cpp.
FILE * yyget_out | ( | void | ) |
Get the output stream.
Definition at line 1916 of file Scanner.cpp.
char * yyget_text | ( | void | ) |
Get the current token.
Definition at line 1933 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 1698 of file Scanner.cpp.
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 1664 of file Scanner.cpp.
void * yyrealloc | ( | void * | ptr, |
yy_size_t | size | ||
) |
Definition at line 2056 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 1480 of file Scanner.cpp.
void yyset_debug | ( | int | debug_flag | ) |
Definition at line 1969 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 1954 of file Scanner.cpp.
void yyset_lineno | ( | int | line_number | ) |
void yyset_out | ( | FILE * | out_str | ) |
Definition at line 1959 of file Scanner.cpp.
int yy_act |
Definition at line 724 of file Scanner.cpp.
char * yy_bp |
Definition at line 723 of file Scanner.cpp.
char* yy_cp |
Definition at line 723 of file Scanner.cpp.
YY_DECL |
The main scanner function which does all the work.
Definition at line 721 of file Scanner.cpp.
int yy_flex_debug = 0 |
Definition at line 459 of file Scanner.cpp.
FILE* yyin = (FILE*) 0 |
Definition at line 342 of file Scanner.cpp.
yy_size_t yyleng |
Definition at line 277 of file Scanner.cpp.
int yylineno = 1 |
Definition at line 348 of file Scanner.cpp.
FILE * yyout = (FILE*) 0 |
Definition at line 165 of file Scanner.cpp.
char * yytext |
Definition at line 468 of file Scanner.cpp.