#include <FlexLexer.h>
#include <stdlib.h>
#include "ycp/y2log.h"
#include "ycp/Import.h"
#include "parser.h"
#include "ycp/Scanner.h"
#include "ycp/Type.h"
#include "ycp/StaticDeclaration.h"
#include "ycp/SymbolTable.h"
#include "ycp/SymbolEntry.h"
#include "ycp/YBlock.h"
Classes | |
struct | yy_buffer_state |
Defines | |
#define | FLEX_SCANNER |
#define | YY_FLEX_MAJOR_VERSION 2 |
#define | YY_FLEX_MINOR_VERSION 5 |
#define | yyconst |
#define | YY_PROTO(proto) () |
#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 | 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 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->yy_at_bol) |
#define | yywrap() 1 |
#define | YY_SKIP_YYWRAP |
#define | yytext_ptr yytext |
#define | YY_INTERACTIVE |
#define | YY_DECL int Scanner::yylex() |
#define | YY_DO_BEFORE_ACTION |
#define | YY_NUM_RULES 102 |
#define | YY_END_OF_BUFFER 103 |
#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 | INITIAL 0 |
#define | LINE_VAR m_lineNumber |
#define | INC_LINE ++LINE_VAR |
#define | debug_scanner nix |
#define | RESULT(type, token) setScannedToken(token_value, type); scanner_token = yytext; return token |
#define | bybl 1 |
#define | str 2 |
#define | comment 3 |
#define | namespace 4 |
#define | YY_NO_PUSH_STATE 1 |
#define | YY_NO_POP_STATE 1 |
#define | YY_NO_TOP_STATE 1 |
#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_BREAK break; |
#define | YY_RULE_SETUP |
#define | YY_EXIT_FAILURE 2 |
#define | yyless(n) |
Typedefs | |
typedef yy_buffer_state * | YY_BUFFER_STATE |
typedef unsigned int | yy_size_t |
typedef unsigned char | YY_CHAR |
Functions | |
void *yy_flex_alloc | YY_PROTO ((yy_size_t)) |
void *yy_flex_realloc | YY_PROTO ((void *, yy_size_t)) |
void yy_flex_free | YY_PROTO ((void *)) |
void | nix (...) |
unsigned | fromhex (char hex) |
void * | yy_flex_alloc (size) yy_size_t size |
Variables | |
int | yyleng |
yyconst short int | yy_accept [331] |
yyconst int | yy_ec [256] |
yyconst int | yy_meta [65] |
yyconst short int | yy_base [361] |
yyconst short int | yy_def [361] |
yyconst short int | yy_nxt [916] |
yyconst short int | yy_chk [916] |
StaticDeclaration | static_declarations |
SymbolTable * | builtinTable = NULL |
SymbolTable * | namespaceTable = NULL |
char * | namespace_prefix = 0 |
char * | scanner_token |
tokenValue | token_value |
yy_size_t | size |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Value: yytext_ptr = yy_bp; \ yyleng = (int) (yy_cp - yy_bp); \ yy_hold_char = *yy_cp; \ *yy_cp = '\0'; \ yy_c_buf_p = yy_cp; |
|
|
|
|
|
|
|
|
|
|
|
|
|
Value: if ( (result = LexerInput( (char *) buf, max_size )) < 0 ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Value: |
|
|
|
Value: { \
if ( ! yy_current_buffer ) \
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
yy_current_buffer->yy_at_bol = at_bol; \
}
|
|
Value: { \
if ( ! yy_current_buffer ) \
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
yy_current_buffer->yy_is_interactive = is_interactive; \
}
|
|
|
|
|
|
|
|
|
|
|
|
Value: |
|
Value: do \ { \ /* Undo effects of setting up yytext. */ \ *yy_cp = yy_hold_char; \ YY_RESTORE_YY_MORE_OFFSET \ yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \ YY_DO_BEFORE_ACTION; /* set up yytext again */ \ } \ while ( 0 ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Initial value: { 0, 1, 1, 2, 1, 1, 1, 3, 1, 1, 1, 1, 4, 1, 1, 1, 1, 5, 5, 1, 6, 6, 6, 7, 1, 1, 1, 1, 1, 8, 8, 9, 1, 10, 1, 1, 9, 11, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 12, 1, 1, 1 } |
|
|
|
|