#include <iostream>#include <errno.h>#include <cstdlib>#include <cstring>#include "windows/FlexLexer.h"#include <string>#include "openeaagles/basic/support.h"#include "openeaagles/basic/Object.h"#include "openeaagles/basic/String.h"#include "openeaagles/basic/Identifier.h"#include "openeaagles/basic/Integer.h"#include "openeaagles/basic/Float.h"#include "openeaagles/basic/Boolean.h"#include "openeaagles/basic/Pair.h"#include "openeaagles/basic/PairStream.h"#include "openeaagles/basic/List.h"#include "Lexical.h"#include "Parser.hpp"#include <unistd.h>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 33 |
| #define | FLEX_BETA |
| #define | FLEXINT_H |
| #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 | YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
| #define | YY_TYPEDEF_YY_BUFFER_STATE |
| #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_TYPEDEF_YY_SIZE_T |
| #define | YY_STRUCT_YY_BUFFER_STATE |
| #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_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_DECL int Eaagles::Basic::Lexical::yylex() |
| #define | YY_DO_BEFORE_ACTION |
| #define | YY_NUM_RULES 22 |
| #define | YY_END_OF_BUFFER 23 |
| #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 | YY_BREAK |
| #define | INITIAL 0 |
| #define | YY_EXTRA_TYPE void * |
| #define | YY_READ_BUF_SIZE 8192 |
| #define | ECHO LexerOutput( yytext, yyleng ) |
| #define | YY_INPUT(buf, result, max_size) |
| #define | yyterminate() return YY_NULL |
| #define | YY_START_STACK_INCR 25 |
| #define | YY_FATAL_ERROR(msg) LexerError( msg ) |
| #define | YY_USER_ACTION |
| #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 struct yy_buffer_state * | YY_BUFFER_STATE |
| typedef unsigned int | yy_size_t |
| typedef char | YY_CHAR |
Functions | |
| void * | yyalloc (yy_size_t) |
| void * | yyrealloc (void *, yy_size_t) |
| void | yyfree (void *) |
| int | yywrap () |
| if (!(yy_init)) | |
| while (1) | |
| int | isatty (int) |
Variables | |
| int | yyleng |
| static yyconst flex_int16_t | yy_nxt [][128] |
| static yyconst flex_int16_t | yy_accept [93] |
| static yyconst yy_state_type | yy_NUL_trans [93] |
| YY_DECL register yy_state_type | yy_current_state |
| register char * | yy_cp |
| register char * | yy_bp |
| register int | yy_act |
| #define BEGIN (yy_start) = 1 + 2 * |
Referenced by yyFlexLexer::yy_pop_state(), and yyFlexLexer::yy_push_state().
| #define ECHO LexerOutput( yytext, yyleng ) |
| #define EOB_ACT_CONTINUE_SCAN 0 |
Referenced by while(), and yyFlexLexer::yyinput().
| #define EOB_ACT_END_OF_FILE 1 |
Referenced by while(), and yyFlexLexer::yyinput().
| #define EOB_ACT_LAST_MATCH 2 |
Referenced by while(), and yyFlexLexer::yyinput().
| #define FLEX_BETA |
| #define FLEX_SCANNER |
| #define FLEXINT_H |
| #define INITIAL 0 |
Referenced by while().
| #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 |
Referenced by while().
| #define YY_BUF_SIZE 16384 |
Referenced by if().
| #define YY_BUFFER_EOF_PENDING 2 |
Referenced by yyFlexLexer::yy_get_next_buffer().
| #define YY_BUFFER_NEW 0 |
Referenced by while().
| #define YY_BUFFER_NORMAL 1 |
Referenced by while().
| #define YY_CURRENT_BUFFER |
( (yy_buffer_stack) \
? (yy_buffer_stack)[(yy_buffer_stack_top)] \
: NULL)
Referenced by if(), yyFlexLexer::yypop_buffer_state(), and yyFlexLexer::~yyFlexLexer().
| #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
| #define YY_DECL int Eaagles::Basic::Lexical::yylex() |
| #define YY_DO_BEFORE_ACTION |
| #define YY_END_OF_BUFFER 23 |
Referenced by while().
| #define YY_END_OF_BUFFER_CHAR 0 |
Referenced by yyFlexLexer::yy_get_next_buffer().
| #define YY_EXIT_FAILURE 2 |
| #define YY_EXTRA_TYPE void * |
| #define YY_FATAL_ERROR | ( | msg | ) | LexerError( msg ) |
Referenced by while(), yyFlexLexer::yy_get_next_buffer(), yyFlexLexer::yy_pop_state(), and yyFlexLexer::yy_push_state().
| #define YY_FLEX_MAJOR_VERSION 2 |
| #define YY_FLEX_MINOR_VERSION 5 |
| #define YY_FLEX_SUBMINOR_VERSION 33 |
| #define YY_INPUT | ( | buf, | ||
| result, | ||||
| max_size | ||||
| ) |
\
if ( (result = LexerInput( (char *) buf, max_size )) < 0 ) \
YY_FATAL_ERROR( "input in flex scanner failed" );
Referenced by yyFlexLexer::yy_get_next_buffer().
| #define YY_INT_ALIGNED short int |
| #define YY_LESS_LINENO | ( | n | ) |
| #define YY_MORE_ADJ 0 |
Referenced by while(), and yyFlexLexer::yy_get_next_buffer().
| #define yy_new_buffer yy_create_buffer |
| #define YY_NEW_FILE yyrestart( yyin ) |
| #define YY_NULL 0 |
| #define YY_NUM_RULES 22 |
| #define YY_READ_BUF_SIZE 8192 |
Referenced by yyFlexLexer::yy_get_next_buffer().
| #define YY_RESTORE_YY_MORE_OFFSET |
Referenced by while().
| #define YY_RULE_SETUP YY_USER_ACTION |
Referenced by while().
| #define YY_SC_TO_UI | ( | c | ) | ((unsigned int) (unsigned char) c) |
Referenced by while(), and yyFlexLexer::yy_get_previous_state().
| #define yy_set_bol | ( | at_bol | ) |
{ \
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; \
}
| #define yy_set_interactive | ( | is_interactive | ) |
{ \
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; \
}
| #define YY_START (((yy_start) - 1) / 2) |
Referenced by while().
| #define YY_START_STACK_INCR 25 |
Referenced by yyFlexLexer::yy_push_state().
| #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
| #define YY_STATE_EOF | ( | state | ) | (YY_END_OF_BUFFER + state + 1) |
Referenced by while().
| #define YY_STRUCT_YY_BUFFER_STATE |
| #define YY_TYPEDEF_YY_BUFFER_STATE |
| #define YY_TYPEDEF_YY_SIZE_T |
| #define YY_USER_ACTION |
| #define yyconst |
| #define yyless | ( | n | ) |
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 )
| #define yyless | ( | n | ) |
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 )
| #define yymore | ( | ) | yymore_used_but_not_detected |
| #define YYSTATE YY_START |
| #define YYTABLES_NAME "yytables" |
| #define yyterminate | ( | ) | return YY_NULL |
Referenced by while().
| #define yytext_ptr yytext |
| 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 struct yy_buffer_state* YY_BUFFER_STATE |
| typedef char YY_CHAR |
| typedef unsigned int yy_size_t |
| if | ( | ! | yy_init | ) |
References YY_BUF_SIZE, yy_create_buffer, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_load_buffer_state, yyin, and yyout.
| int isatty | ( | int | ) |
| while | ( | 1 | ) |
References YYSTYPE::bval, YYSTYPE::cvalp, YYSTYPE::dval, EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, INITIAL, Eaagles::lcStrcpy(), YYSTYPE::lval, yy_accept, YY_BREAK, YY_BUFFER_NEW, YY_BUFFER_NORMAL, YY_CURRENT_BUFFER_LVALUE, YY_END_OF_BUFFER, YY_FATAL_ERROR, YY_MORE_ADJ, yy_nxt, YY_RESTORE_YY_MORE_OFFSET, YY_RULE_SETUP, YY_SC_TO_UI, YY_START, YY_STATE_EOF, yyin, yylval, yyterminate, yytext, yytext_ptr, and yywrap.
Referenced by yyFlexLexer::yy_push_state(), and yyFlexLexer::yyensure_buffer_stack().
| void yyfree | ( | void * | ptr | ) |
Referenced by yyFlexLexer::~yyFlexLexer().
| void * yyrealloc | ( | void * | ptr, | |
| yy_size_t | size | |||
| ) |
| int yywrap | ( | ) |
References yywrap.
yyconst flex_int16_t yy_accept[93] [static] |
{ 0,
0, 0, 23, 21, 5, 4, 20, 21, 20, 6,
20, 21, 20, 13, 13, 20, 20, 20, 21, 20,
20, 20, 19, 0, 17, 0, 0, 20, 0, 13,
15, 20, 16, 12, 20, 13, 20, 0, 20, 19,
18, 0, 20, 20, 3, 20, 20, 0, 20, 0,
15, 0, 2, 20, 19, 15, 0, 16, 12, 20,
14, 11, 18, 20, 20, 20, 20, 0, 20, 0,
15, 0, 15, 0, 16, 14, 11, 20, 8, 20,
7, 0, 20, 0, 15, 10, 9, 0, 0, 0,
0, 1
}
Referenced by while(), yyFlexLexer::yy_get_previous_state(), and yyFlexLexer::yy_try_NUL_trans().
| register int yy_act |
| register char * yy_bp |
| register char* yy_cp |
| YY_DECL register yy_state_type yy_current_state |
The main scanner function which does all the work.
yyconst yy_state_type yy_NUL_trans[93] [static] |
{ 0,
4, 4, 0, 0, 0, 0, 0, 24, 0, 0,
0, 0, 0, 0, 0, 38, 0, 0, 0, 0,
0, 0, 0, 24, 0, 24, 0, 0, 0, 0,
0, 52, 0, 0, 0, 0, 0, 38, 38, 38,
38, 38, 0, 0, 0, 0, 0, 0, 0, 0,
0, 52, 0, 52, 52, 0, 0, 0, 0, 0,
0, 0, 38, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 88, 0, 0, 0, 0, 0, 88, 91, 88,
91, 0
}
Referenced by yyFlexLexer::yy_get_previous_state(), and yyFlexLexer::yy_try_NUL_trans().
yyconst flex_int16_t yy_nxt[][128] [static] |
Referenced by while(), and yyFlexLexer::yy_get_previous_state().
| int yyleng |
1.7.1