/home/coin/SVN-release/OS-2.3.2/OS/src/OSParsers/OSParseosil.cpp File Reference

#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <iostream>
#include "OSDataStructures.h"
#include "OSMathUtil.h"
#include "OSConfig.h"
#include <sstream>
#include "OSiLParserData.h"
#include "OSErrorClass.h"
#include "OSParseosil.tab.hpp"
#include "OSInstance.h"
#include <unistd.h>

Include dependency graph for OSParseosil.cpp:

Go to the source code of this file.

Classes

struct  yy_buffer_state
struct  yy_trans_info
struct  yyguts_t

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   35
#define FLEX_BETA
#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 yyin   yyg->yyin_r
#define yyout   yyg->yyout_r
#define yyextra   yyg->yyextra_r
#define yyleng   yyg->yyleng_r
#define yytext   yyg->yytext_r
#define yylineno   (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
#define yycolumn   (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
#define yy_flex_debug   yyg->yy_flex_debug_r
#define BEGIN   yyg->yy_start = 1 + 2 *
#define YY_START   ((yyg->yy_start - 1) / 2)
#define YYSTATE   YY_START
#define YY_STATE_EOF(state)   (YY_END_OF_BUFFER + state + 1)
#define YY_NEW_FILE   osilrestart(yyin ,yyscanner )
#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 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, yyg->yytext_ptr , yyscanner )
#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   yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
#define YY_FLUSH_BUFFER   osil_flush_buffer(YY_CURRENT_BUFFER ,yyscanner)
#define yy_new_buffer   osil_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 osilwrap(n)   1
#define YY_SKIP_YYWRAP
#define yytext_ptr   yytext_r
#define YY_DO_BEFORE_ACTION
#define YY_NUM_RULES   117
#define YY_END_OF_BUFFER   118
#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_PRINT   ;
#define YY_EXTRA_TYPE   OSiLParserData*
#define INITIAL   0
#define osilattributetext   1
#define doublequoteattributetext   2
#define singlequoteattributetext   3
#define startelement   4
#define elementtext   5
#define comment   6
#define xmldeclaration   7
#define yylval   yyg->yylval_r
#define yylloc   yyg->yylloc_r
#define YY_READ_BUF_SIZE   8192
#define ECHO   do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
#define YY_INPUT(buf, result, max_size)
#define yyterminate()   return YY_NULL
#define YY_START_STACK_INCR   25
#define YY_FATAL_ERROR(msg)   yy_fatal_error( msg , yyscanner)
#define YY_DECL_IS_OURS   1
#define YY_DECL
#define YY_BREAK   break;
#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 void * yyscan_t
typedef yy_buffer_stateYY_BUFFER_STATE
typedef size_t yy_size_t
typedef unsigned char YY_CHAR
typedef int yy_state_type

Functions

void osilrestart (FILE *input_file, yyscan_t yyscanner)
void osil_switch_to_buffer (YY_BUFFER_STATE new_buffer, yyscan_t yyscanner)
YY_BUFFER_STATE osil_create_buffer (FILE *file, int size, yyscan_t yyscanner)
void osil_delete_buffer (YY_BUFFER_STATE b, yyscan_t yyscanner)
void osil_flush_buffer (YY_BUFFER_STATE b, yyscan_t yyscanner)
 Discard all buffered characters.
void osilpush_buffer_state (YY_BUFFER_STATE new_buffer, yyscan_t yyscanner)
 Pushes the new state onto the stack.
void osilpop_buffer_state (yyscan_t yyscanner)
 Removes and deletes the top of the stack, if present.
static void osilensure_buffer_stack (yyscan_t yyscanner)
static void osil_load_buffer_state (yyscan_t yyscanner)
static void osil_init_buffer (YY_BUFFER_STATE b, FILE *file, yyscan_t yyscanner)
 The main scanner function which does all the work.
YY_BUFFER_STATE osil_scan_buffer (char *base, yy_size_t size, yyscan_t yyscanner)
 Setup the input buffer state to scan directly from a user-specified character buffer.
YY_BUFFER_STATE osil_scan_string (yyconst char *yystr, yyscan_t yyscanner)
 Setup the input buffer state to scan a string.
YY_BUFFER_STATE osil_scan_bytes (yyconst char *yybytes, int _yybytes_len, yyscan_t yyscanner)
 Setup the input buffer state to scan the given bytes.
void * osilalloc (yy_size_t, yyscan_t yyscanner)
void * osilrealloc (void *, yy_size_t, yyscan_t yyscanner)
void osilfree (void *, yyscan_t yyscanner)
static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
static yy_state_type yy_try_NUL_trans (yy_state_type current_state, yyscan_t yyscanner)
static int yy_get_next_buffer (yyscan_t yyscanner)
static void yy_fatal_error (yyconst char msg[], yyscan_t yyscanner)
static int yy_init_globals (yyscan_t yyscanner)
int osillex_init (yyscan_t *scanner)
int osillex_init_extra (YY_EXTRA_TYPE user_defined, yyscan_t *scanner)
int osillex_destroy (yyscan_t yyscanner)
int osilget_debug (yyscan_t yyscanner)
void osilset_debug (int debug_flag, yyscan_t yyscanner)
YY_EXTRA_TYPE osilget_extra (yyscan_t yyscanner)
 Get the user-defined data for this scanner.
void osilset_extra (YY_EXTRA_TYPE user_defined, yyscan_t yyscanner)
 Set the user-defined data.
FILE * osilget_in (yyscan_t yyscanner)
 Get the input stream.
void osilset_in (FILE *in_str, yyscan_t yyscanner)
 Set the input stream.
FILE * osilget_out (yyscan_t yyscanner)
 Get the output stream.
void osilset_out (FILE *out_str, yyscan_t yyscanner)
int osilget_leng (yyscan_t yyscanner)
 Get the length of the current token.
char * osilget_text (yyscan_t yyscanner)
 Get the current token.
int osilget_lineno (yyscan_t yyscanner)
 Get the current line number.
void osilset_lineno (int line_number, yyscan_t yyscanner)
 Set the current line number.
YYSTYPEosilget_lval (yyscan_t yyscanner)
void osilset_lval (YYSTYPE *yylval_param, yyscan_t yyscanner)
YYLTYPEosilget_lloc (yyscan_t yyscanner)
void osilset_lloc (YYLTYPE *yylloc_param, yyscan_t yyscanner)
static int input (yyscan_t yyscanner)
int osillex (YYSTYPE *yylval_param, YYLTYPE *yylloc_param, yyscan_t yyscanner)
static void yy_fatal_error (yyconst char *msg, yyscan_t yyscanner)
int osilget_column (yyscan_t yyscanner)
 Get the current column number.
void osilset_column (int column_no, yyscan_t yyscanner)
 Set the current column.

Variables

static yyconst flex_int16_t yy_accept [790]
static yyconst flex_int32_t yy_ec [256]
static yyconst flex_int32_t yy_meta [56]
static yyconst flex_int16_t yy_base [798]
static yyconst flex_int16_t yy_def [798]
static yyconst flex_int16_t yy_nxt [1756]
static yyconst flex_int16_t yy_chk [1756]
static yyconst flex_int32_t yy_rule_can_match_eol [118]


Define Documentation

#define YY_INT_ALIGNED   short int

Definition at line 5 of file OSParseosil.cpp.

#define FLEX_SCANNER

Definition at line 9 of file OSParseosil.cpp.

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 10 of file OSParseosil.cpp.

#define YY_FLEX_MINOR_VERSION   5

Definition at line 11 of file OSParseosil.cpp.

#define YY_FLEX_SUBMINOR_VERSION   35

Definition at line 12 of file OSParseosil.cpp.

#define FLEX_BETA

Definition at line 14 of file OSParseosil.cpp.

#define INT8_MIN   (-128)

Definition at line 60 of file OSParseosil.cpp.

#define INT16_MIN   (-32767-1)

Definition at line 63 of file OSParseosil.cpp.

#define INT32_MIN   (-2147483647-1)

Definition at line 66 of file OSParseosil.cpp.

#define INT8_MAX   (127)

Definition at line 69 of file OSParseosil.cpp.

#define INT16_MAX   (32767)

Definition at line 72 of file OSParseosil.cpp.

#define INT32_MAX   (2147483647)

Definition at line 75 of file OSParseosil.cpp.

#define UINT8_MAX   (255U)

Definition at line 78 of file OSParseosil.cpp.

#define UINT16_MAX   (65535U)

Definition at line 81 of file OSParseosil.cpp.

#define UINT32_MAX   (4294967295U)

Definition at line 84 of file OSParseosil.cpp.

#define yyconst

Definition at line 109 of file OSParseosil.cpp.

#define YY_NULL   0

Definition at line 113 of file OSParseosil.cpp.

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

Definition at line 120 of file OSParseosil.cpp.

#define yyin   yyg->yyin_r

Definition at line 130 of file OSParseosil.cpp.

Referenced by osilget_in(), osilset_in(), osolget_in(), osolset_in(), osrlget_in(), osrlset_in(), osssget_in(), osssset_in(), and yy_init_globals().

#define yyout   yyg->yyout_r

Definition at line 131 of file OSParseosil.cpp.

Referenced by osilget_out(), osilset_out(), osolget_out(), osolset_out(), osrlget_out(), osrlset_out(), osssget_out(), osssset_out(), and yy_init_globals().

#define yyextra   yyg->yyextra_r

Definition at line 132 of file OSParseosil.cpp.

Referenced by osilget_extra(), osilset_extra(), osolget_extra(), osolset_extra(), osrlget_extra(), osrlset_extra(), osssget_extra(), and osssset_extra().

#define yyleng   yyg->yyleng_r

Definition at line 133 of file OSParseosil.cpp.

Referenced by osilget_leng(), osolget_leng(), osrlget_leng(), and osssget_leng().

#define yytext   yyg->yytext_r

Definition at line 134 of file OSParseosil.cpp.

Referenced by osilget_text(), osolget_text(), osrlget_text(), and osssget_text().

#define yylineno   (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)

Definition at line 135 of file OSParseosil.cpp.

Referenced by osilget_lineno(), osilset_lineno(), osolget_lineno(), osolset_lineno(), osrlget_lineno(), osrlset_lineno(), osssget_lineno(), and osssset_lineno().

#define yycolumn   (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)

Definition at line 136 of file OSParseosil.cpp.

Referenced by osilget_column(), osilset_column(), osolget_column(), osolset_column(), osrlget_column(), osrlset_column(), osssget_column(), and osssset_column().

#define yy_flex_debug   yyg->yy_flex_debug_r

Definition at line 137 of file OSParseosil.cpp.

Referenced by osilget_debug(), osilset_debug(), osolget_debug(), osolset_debug(), osrlget_debug(), osrlset_debug(), osssget_debug(), and osssset_debug().

#define BEGIN   yyg->yy_start = 1 + 2 *

Definition at line 143 of file OSParseosil.cpp.

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

Definition at line 149 of file OSParseosil.cpp.

#define YYSTATE   YY_START

Definition at line 150 of file OSParseosil.cpp.

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

Definition at line 153 of file OSParseosil.cpp.

#define YY_NEW_FILE   osilrestart(yyin ,yyscanner )

Definition at line 156 of file OSParseosil.cpp.

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 158 of file OSParseosil.cpp.

Referenced by osil_flush_buffer(), osil_scan_buffer(), osil_scan_bytes(), osol_flush_buffer(), osol_scan_buffer(), osol_scan_bytes(), osrl_flush_buffer(), osrl_scan_buffer(), osrl_scan_bytes(), osss_flush_buffer(), osss_scan_buffer(), and osss_scan_bytes().

#define YY_BUF_SIZE   16384

Definition at line 169 of file OSParseosil.cpp.

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

Definition at line 175 of file OSParseosil.cpp.

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 182 of file OSParseosil.cpp.

#define EOB_ACT_END_OF_FILE   1

Definition at line 183 of file OSParseosil.cpp.

#define EOB_ACT_LAST_MATCH   2

Definition at line 184 of file OSParseosil.cpp.

#define YY_LESS_LINENO (  ) 

Value:

do { \
                int yyl;\
                for ( yyl = n; yyl < yyleng; ++yyl )\
                    if ( yytext[yyl] == '\n' )\
                        --yylineno;\
            }while(0)

Definition at line 193 of file OSParseosil.cpp.

#define yyless (  ) 

Value:

do \
                { \
                /* Undo effects of setting up yytext. */ \
        int yyless_macro_arg = (n); \
        YY_LESS_LINENO(yyless_macro_arg);\
                *yy_cp = yyg->yy_hold_char; \
                YY_RESTORE_YY_MORE_OFFSET \
                yyg->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 3067 of file OSParseosil.cpp.

#define unput (  )     yyunput( c, yyg->yytext_ptr , yyscanner )

Definition at line 215 of file OSParseosil.cpp.

#define YY_BUFFER_NEW   0

Definition at line 270 of file OSParseosil.cpp.

Referenced by osil_flush_buffer(), osil_scan_buffer(), osol_flush_buffer(), osol_scan_buffer(), osrl_flush_buffer(), osrl_scan_buffer(), osss_flush_buffer(), and osss_scan_buffer().

#define YY_BUFFER_NORMAL   1

Definition at line 271 of file OSParseosil.cpp.

#define YY_BUFFER_EOF_PENDING   2

Definition at line 282 of file OSParseosil.cpp.

#define YY_CURRENT_BUFFER

Value:

( yyg->yy_buffer_stack \
                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
                          : NULL)

Definition at line 293 of file OSParseosil.cpp.

Referenced by osil_flush_buffer(), osil_init_buffer(), osilget_column(), osilget_lineno(), osillex_destroy(), osilpop_buffer_state(), osilpush_buffer_state(), osilset_column(), osilset_lineno(), osol_flush_buffer(), osol_init_buffer(), osolget_column(), osolget_lineno(), osollex_destroy(), osolpop_buffer_state(), osolpush_buffer_state(), osolset_column(), osolset_lineno(), osrl_flush_buffer(), osrl_init_buffer(), osrlget_column(), osrlget_lineno(), osrllex_destroy(), osrlpop_buffer_state(), osrlpush_buffer_state(), osrlset_column(), osrlset_lineno(), osss_flush_buffer(), osss_init_buffer(), osssget_column(), osssget_lineno(), ossslex_destroy(), ossspop_buffer_state(), ossspush_buffer_state(), osssset_column(), and osssset_lineno().

#define YY_CURRENT_BUFFER_LVALUE   yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]

Definition at line 300 of file OSParseosil.cpp.

Referenced by osillex_destroy(), osilpop_buffer_state(), osilpush_buffer_state(), osollex_destroy(), osolpop_buffer_state(), osolpush_buffer_state(), osrllex_destroy(), osrlpop_buffer_state(), osrlpush_buffer_state(), ossslex_destroy(), ossspop_buffer_state(), and ossspush_buffer_state().

#define YY_FLUSH_BUFFER   osil_flush_buffer(YY_CURRENT_BUFFER ,yyscanner)

Definition at line 314 of file OSParseosil.cpp.

#define yy_new_buffer   osil_create_buffer

Definition at line 324 of file OSParseosil.cpp.

#define yy_set_interactive ( is_interactive   ) 

Value:

{ \
        if ( ! YY_CURRENT_BUFFER ){ \
        osilensure_buffer_stack (yyscanner); \
                YY_CURRENT_BUFFER_LVALUE =    \
            osil_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
        } \
        YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
        }

Definition at line 326 of file OSParseosil.cpp.

#define yy_set_bol ( at_bol   ) 

Value:

{ \
        if ( ! YY_CURRENT_BUFFER ){\
        osilensure_buffer_stack (yyscanner); \
                YY_CURRENT_BUFFER_LVALUE =    \
            osil_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
        } \
        YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
        }

Definition at line 336 of file OSParseosil.cpp.

 
#define YY_AT_BOL (  )     (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 346 of file OSParseosil.cpp.

#define osilwrap (  )     1

Definition at line 350 of file OSParseosil.cpp.

#define YY_SKIP_YYWRAP

Definition at line 351 of file OSParseosil.cpp.

#define yytext_ptr   yytext_r

Definition at line 357 of file OSParseosil.cpp.

#define YY_DO_BEFORE_ACTION

Value:

yyg->yytext_ptr = yy_bp; \
        yyleng = (size_t) (yy_cp - yy_bp); \
        yyg->yy_hold_char = *yy_cp; \
        *yy_cp = '\0'; \
        yyg->yy_c_buf_p = yy_cp;

Definition at line 367 of file OSParseosil.cpp.

#define YY_NUM_RULES   117

Definition at line 374 of file OSParseosil.cpp.

#define YY_END_OF_BUFFER   118

Definition at line 375 of file OSParseosil.cpp.

#define REJECT   reject_used_but_not_detected

Definition at line 1106 of file OSParseosil.cpp.

 
#define yymore (  )     yymore_used_but_not_detected

Definition at line 1107 of file OSParseosil.cpp.

#define YY_MORE_ADJ   0

Definition at line 1108 of file OSParseosil.cpp.

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 1109 of file OSParseosil.cpp.

#define YY_PRINT   ;

Definition at line 1175 of file OSParseosil.cpp.

#define YY_EXTRA_TYPE   OSiLParserData*

Definition at line 1200 of file OSParseosil.cpp.

#define INITIAL   0

Definition at line 1203 of file OSParseosil.cpp.

#define osilattributetext   1

Definition at line 1204 of file OSParseosil.cpp.

#define doublequoteattributetext   2

Definition at line 1205 of file OSParseosil.cpp.

#define singlequoteattributetext   3

Definition at line 1206 of file OSParseosil.cpp.

#define startelement   4

Definition at line 1207 of file OSParseosil.cpp.

#define elementtext   5

Definition at line 1208 of file OSParseosil.cpp.

#define comment   6

Definition at line 1209 of file OSParseosil.cpp.

#define xmldeclaration   7

Definition at line 1210 of file OSParseosil.cpp.

#define yylval   yyg->yylval_r

Definition at line 1266 of file OSParseosil.cpp.

Referenced by osilget_lval(), osilset_lval(), osolget_lval(), osolset_lval(), osrlget_lval(), and osrlset_lval().

#define yylloc   yyg->yylloc_r

Definition at line 1268 of file OSParseosil.cpp.

Referenced by osilget_lloc(), osilset_lloc(), osolget_lloc(), osolset_lloc(), osrlget_lloc(), and osrlset_lloc().

#define YY_READ_BUF_SIZE   8192

Definition at line 1347 of file OSParseosil.cpp.

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

Definition at line 1356 of file OSParseosil.cpp.

#define YY_INPUT ( buf,
result,
max_size   ) 

Value:

if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
                { \
                int c = '*'; \
                size_t n; \
                for ( n = 0; n < max_size && \
                             (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
                        buf[n] = (char) c; \
                if ( c == '\n' ) \
                        buf[n++] = (char) c; \
                if ( c == EOF && ferror( yyin ) ) \
                        YY_FATAL_ERROR( "input in flex scanner failed" ); \
                result = n; \
                } \
        else \
                { \
                errno=0; \
                while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
                        { \
                        if( errno != EINTR) \
                                { \
                                YY_FATAL_ERROR( "input in flex scanner failed" ); \
                                break; \
                                } \
                        errno=0; \
                        clearerr(yyin); \
                        } \
                }\
\

Definition at line 1363 of file OSParseosil.cpp.

 
#define yyterminate (  )     return YY_NULL

Definition at line 1400 of file OSParseosil.cpp.

#define YY_START_STACK_INCR   25

Definition at line 1405 of file OSParseosil.cpp.

#define YY_FATAL_ERROR ( msg   )     yy_fatal_error( msg , yyscanner)

Definition at line 1410 of file OSParseosil.cpp.

Referenced by osil_scan_buffer(), osil_scan_bytes(), osilensure_buffer_stack(), osol_scan_buffer(), osol_scan_bytes(), osolensure_buffer_stack(), osrl_scan_buffer(), osrl_scan_bytes(), osrlensure_buffer_stack(), osss_scan_buffer(), osss_scan_bytes(), and osssensure_buffer_stack().

#define YY_DECL_IS_OURS   1

Definition at line 1419 of file OSParseosil.cpp.

#define YY_DECL

Value:

int osillex \
               (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner)

Definition at line 1424 of file OSParseosil.cpp.

#define YY_BREAK   break;

Definition at line 1437 of file OSParseosil.cpp.

#define YY_RULE_SETUP   YY_USER_ACTION

Definition at line 1440 of file OSParseosil.cpp.

#define YY_EXIT_FAILURE   2

Definition at line 3055 of file OSParseosil.cpp.

Referenced by yy_fatal_error().

#define yyless (  ) 

Value:

do \
                { \
                /* Undo effects of setting up yytext. */ \
        int yyless_macro_arg = (n); \
        YY_LESS_LINENO(yyless_macro_arg);\
                yytext[yyleng] = yyg->yy_hold_char; \
                yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
                yyg->yy_hold_char = *yyg->yy_c_buf_p; \
                *yyg->yy_c_buf_p = '\0'; \
                yyleng = yyless_macro_arg; \
                } \
        while ( 0 )

Definition at line 3067 of file OSParseosil.cpp.

#define YYTABLES_NAME   "yytables"

Definition at line 3424 of file OSParseosil.cpp.


Typedef Documentation

typedef signed char flex_int8_t

Definition at line 51 of file OSParseosil.cpp.

typedef short int flex_int16_t

Definition at line 52 of file OSParseosil.cpp.

typedef int flex_int32_t

Definition at line 53 of file OSParseosil.cpp.

typedef unsigned char flex_uint8_t

Definition at line 54 of file OSParseosil.cpp.

typedef unsigned short int flex_uint16_t

Definition at line 55 of file OSParseosil.cpp.

typedef unsigned int flex_uint32_t

Definition at line 56 of file OSParseosil.cpp.

typedef void* yyscan_t

Definition at line 125 of file OSParseosil.cpp.

typedef struct yy_buffer_state* YY_BUFFER_STATE

Definition at line 179 of file OSParseosil.cpp.

typedef size_t yy_size_t

Definition at line 219 of file OSParseosil.cpp.

typedef unsigned char YY_CHAR

Definition at line 353 of file OSParseosil.cpp.

typedef int yy_state_type

Definition at line 355 of file OSParseosil.cpp.


Function Documentation

void osilrestart ( FILE *  input_file,
yyscan_t  yyscanner 
)

void osil_switch_to_buffer ( YY_BUFFER_STATE  new_buffer,
yyscan_t  yyscanner 
)

Referenced by osil_scan_buffer().

YY_BUFFER_STATE osil_create_buffer ( FILE *  file,
int  size,
yyscan_t  yyscanner 
)

void osil_delete_buffer ( YY_BUFFER_STATE  b,
yyscan_t  yyscanner 
)

Referenced by osillex_destroy(), and osilpop_buffer_state().

void osil_flush_buffer ( YY_BUFFER_STATE  b,
yyscan_t  yyscanner 
)

Discard all buffered characters.

On the next scan, YY_INPUT will be called.

Parameters:
b the buffer state to be flushed, usually YY_CURRENT_BUFFER.
yyscanner The scanner object.

Definition at line 2843 of file OSParseosil.cpp.

References osil_load_buffer_state(), yy_buffer_state::yy_at_bol, yy_buffer_state::yy_buf_pos, YY_BUFFER_NEW, yy_buffer_state::yy_buffer_status, yy_buffer_state::yy_ch_buf, YY_CURRENT_BUFFER, YY_END_OF_BUFFER_CHAR, and yy_buffer_state::yy_n_chars.

Referenced by osil_init_buffer().

void osilpush_buffer_state ( YY_BUFFER_STATE  new_buffer,
yyscan_t  yyscanner 
)

Pushes the new state onto the stack.

The new state becomes the current state. This function will allocate the stack if necessary.

Parameters:
new_buffer The new state.
yyscanner The scanner object.

Definition at line 2873 of file OSParseosil.cpp.

References osil_load_buffer_state(), osilensure_buffer_stack(), yyguts_t::yy_buffer_stack_top, yyguts_t::yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yyguts_t::yy_did_buffer_switch_on_eof, yyguts_t::yy_hold_char, and yyguts_t::yy_n_chars.

void osilpop_buffer_state ( yyscan_t  yyscanner  ) 

Removes and deletes the top of the stack, if present.

The next element becomes the new top.

Parameters:
yyscanner The scanner object.

Definition at line 2904 of file OSParseosil.cpp.

References osil_delete_buffer(), osil_load_buffer_state(), yyguts_t::yy_buffer_stack_top, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, and yyguts_t::yy_did_buffer_switch_on_eof.

Referenced by osillex_destroy().

static void osilensure_buffer_stack ( yyscan_t  yyscanner  )  [static]

Definition at line 2924 of file OSParseosil.cpp.

References osilalloc(), osilrealloc(), yyguts_t::yy_buffer_stack, yyguts_t::yy_buffer_stack_max, yyguts_t::yy_buffer_stack_top, and YY_FATAL_ERROR.

Referenced by osilpush_buffer_state().

static void osil_load_buffer_state ( yyscan_t  yyscanner  )  [static]

Referenced by osil_flush_buffer(), osilpop_buffer_state(), and osilpush_buffer_state().

static void osil_init_buffer ( YY_BUFFER_STATE  b,
FILE *  file,
yyscan_t  yyscanner 
) [static]

The main scanner function which does all the work.

Definition at line 2814 of file OSParseosil.cpp.

References osil_flush_buffer(), and YY_CURRENT_BUFFER.

YY_BUFFER_STATE osil_scan_buffer ( char *  base,
yy_size_t  size,
yyscan_t  yyscanner 
)

Setup the input buffer state to scan directly from a user-specified character buffer.

Parameters:
base the character buffer
size the size in bytes of the character buffer
yyscanner The scanner object.
Returns:
the newly allocated buffer state object.

Definition at line 2974 of file OSParseosil.cpp.

References osil_switch_to_buffer(), osilalloc(), yy_buffer_state::yy_at_bol, yy_buffer_state::yy_buf_pos, yy_buffer_state::yy_buf_size, YY_BUFFER_NEW, yy_buffer_state::yy_buffer_status, yy_buffer_state::yy_ch_buf, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_buffer_state::yy_fill_buffer, yy_buffer_state::yy_input_file, yy_buffer_state::yy_is_interactive, yy_buffer_state::yy_is_our_buffer, and yy_buffer_state::yy_n_chars.

Referenced by osil_scan_bytes().

YY_BUFFER_STATE osil_scan_string ( yyconst char *  yystr,
yyscan_t  yyscanner 
)

Setup the input buffer state to scan a string.

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

Parameters:
yystr a NUL-terminated string to scan
yyscanner The scanner object.
Returns:
the newly allocated buffer state object.
Note:
If you want to scan bytes that may contain NUL values, then use osil_scan_bytes() instead.

Definition at line 3011 of file OSParseosil.cpp.

References osil_scan_bytes().

YY_BUFFER_STATE osil_scan_bytes ( yyconst char *  yybytes,
int  _yybytes_len,
yyscan_t  yyscanner 
)

Setup the input buffer state to scan the given bytes.

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

Parameters:
yybytes the byte buffer to scan
_yybytes_len the number of bytes in the buffer pointed to by bytes.
yyscanner The scanner object.
Returns:
the newly allocated buffer state object.

Definition at line 3024 of file OSParseosil.cpp.

References osil_scan_buffer(), osilalloc(), YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, and yy_buffer_state::yy_is_our_buffer.

Referenced by osil_scan_string().

void * osilalloc ( yy_size_t  ,
yyscan_t  yyscanner 
)

Definition at line 3402 of file OSParseosil.cpp.

Referenced by osil_scan_buffer(), osil_scan_bytes(), osilensure_buffer_stack(), osillex_init(), and osillex_init_extra().

void * osilrealloc ( void *  ,
yy_size_t  ,
yyscan_t  yyscanner 
)

Definition at line 3407 of file OSParseosil.cpp.

Referenced by osilensure_buffer_stack().

void osilfree ( void *  ,
yyscan_t  yyscanner 
)

Definition at line 3419 of file OSParseosil.cpp.

Referenced by osillex_destroy().

static yy_state_type yy_get_previous_state ( yyscan_t  yyscanner  )  [static]

static yy_state_type yy_try_NUL_trans ( yy_state_type  current_state,
yyscan_t  yyscanner 
) [static]

static int yy_get_next_buffer ( yyscan_t  yyscanner  )  [static]

static void yy_fatal_error ( yyconst char  msg[],
yyscan_t  yyscanner 
) [static]

Referenced by osilset_column(), osilset_lineno(), osolset_column(), osolset_lineno(), osrlset_column(), osrlset_lineno(), osssset_column(), and osssset_lineno().

static int yy_init_globals ( yyscan_t  yyscanner  )  [static]

Definition at line 3315 of file OSParseosil.cpp.

References yyguts_t::yy_buffer_stack, yyguts_t::yy_buffer_stack_max, yyguts_t::yy_buffer_stack_top, yyguts_t::yy_c_buf_p, yyguts_t::yy_init, yyguts_t::yy_start, yyguts_t::yy_start_stack, yyguts_t::yy_start_stack_depth, yyguts_t::yy_start_stack_ptr, yyin, and yyout.

Referenced by osillex_destroy(), osillex_init(), osillex_init_extra(), osollex_destroy(), osollex_init(), osollex_init_extra(), osrllex_destroy(), osrllex_init(), osrllex_init_extra(), ossslex_destroy(), ossslex_init(), and ossslex_init_extra().

int osillex_init ( yyscan_t scanner  ) 

int osillex_init_extra ( YY_EXTRA_TYPE  user_defined,
yyscan_t scanner 
)

Definition at line 3287 of file OSParseosil.cpp.

References osilalloc(), osilset_extra(), and yy_init_globals().

int osillex_destroy ( yyscan_t  yyscanner  ) 

int osilget_debug ( yyscan_t  yyscanner  ) 

Definition at line 3213 of file OSParseosil.cpp.

References yy_flex_debug.

void osilset_debug ( int  debug_flag,
yyscan_t  yyscanner 
)

Definition at line 3219 of file OSParseosil.cpp.

References yy_flex_debug.

YY_EXTRA_TYPE osilget_extra ( yyscan_t  yyscanner  ) 

Get the user-defined data for this scanner.

Parameters:
yyscanner The scanner object.

Definition at line 3086 of file OSParseosil.cpp.

References yyextra.

void osilset_extra ( YY_EXTRA_TYPE  user_defined,
yyscan_t  yyscanner 
)

Set the user-defined data.

This data is never touched by the scanner.

Parameters:
user_defined The data to be associated with this scanner.
yyscanner The scanner object.

Definition at line 3159 of file OSParseosil.cpp.

References yyextra.

FILE * osilget_in ( yyscan_t  yyscanner  ) 

Get the input stream.

Parameters:
yyscanner The scanner object.

Definition at line 3121 of file OSParseosil.cpp.

References yyin.

void osilset_in ( FILE *  in_str,
yyscan_t  yyscanner 
)

Set the input stream.

This does not discard the current input buffer.

Parameters:
in_str A readable stream.
yyscanner The scanner object.
See also:
osil_switch_to_buffer

Definition at line 3201 of file OSParseosil.cpp.

References yyin.

FILE * osilget_out ( yyscan_t  yyscanner  ) 

Get the output stream.

Parameters:
yyscanner The scanner object.

Definition at line 3130 of file OSParseosil.cpp.

References yyout.

void osilset_out ( FILE *  out_str,
yyscan_t  yyscanner 
)

Definition at line 3207 of file OSParseosil.cpp.

References yyout.

int osilget_leng ( yyscan_t  yyscanner  ) 

Get the length of the current token.

Parameters:
yyscanner The scanner object.

Definition at line 3139 of file OSParseosil.cpp.

References yyleng.

char * osilget_text ( yyscan_t  yyscanner  ) 

Get the current token.

Parameters:
yyscanner The scanner object.

Definition at line 3149 of file OSParseosil.cpp.

References yytext.

int osilget_lineno ( yyscan_t  yyscanner  ) 

Get the current line number.

Parameters:
yyscanner The scanner object.

Definition at line 3095 of file OSParseosil.cpp.

References YY_CURRENT_BUFFER, and yylineno.

void osilset_lineno ( int  line_number,
yyscan_t  yyscanner 
)

Set the current line number.

Parameters:
line_number 
yyscanner The scanner object.

Definition at line 3169 of file OSParseosil.cpp.

References YY_CURRENT_BUFFER, yy_fatal_error(), and yylineno.

YYSTYPE * osilget_lval ( yyscan_t  yyscanner  ) 

Definition at line 3227 of file OSParseosil.cpp.

References yylval.

void osilset_lval ( YYSTYPE yylval_param,
yyscan_t  yyscanner 
)

Definition at line 3233 of file OSParseosil.cpp.

References yylval.

YYLTYPE * osilget_lloc ( yyscan_t  yyscanner  ) 

Definition at line 3239 of file OSParseosil.cpp.

References yylloc.

void osilset_lloc ( YYLTYPE yylloc_param,
yyscan_t  yyscanner 
)

Definition at line 3245 of file OSParseosil.cpp.

References yylloc.

static int input ( yyscan_t  yyscanner  )  [static]

int osillex ( YYSTYPE yylval_param,
YYLTYPE yylloc_param,
yyscan_t  yyscanner 
)

static void yy_fatal_error ( yyconst char *  msg,
yyscan_t  yyscanner 
) [static]

Definition at line 3058 of file OSParseosil.cpp.

References YY_EXIT_FAILURE.

int osilget_column ( yyscan_t  yyscanner  ) 

Get the current column number.

Parameters:
yyscanner The scanner object.

Definition at line 3108 of file OSParseosil.cpp.

References YY_CURRENT_BUFFER, and yycolumn.

void osilset_column ( int  column_no,
yyscan_t  yyscanner 
)

Set the current column.

Parameters:
line_number 
yyscanner The scanner object.

Definition at line 3184 of file OSParseosil.cpp.

References YY_CURRENT_BUFFER, yy_fatal_error(), and yycolumn.


Variable Documentation

yyconst flex_int16_t yy_accept[790] [static]

Definition at line 383 of file OSParseosil.cpp.

yyconst flex_int32_t yy_ec[256] [static]

Definition at line 473 of file OSParseosil.cpp.

yyconst flex_int32_t yy_meta[56] [static]

Initial value:

    {   0,
        1,    1,    1,    1,    1,    2,    3,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1
    }

Definition at line 505 of file OSParseosil.cpp.

yyconst flex_int16_t yy_base[798] [static]

Definition at line 515 of file OSParseosil.cpp.

yyconst flex_int16_t yy_def[798] [static]

Definition at line 607 of file OSParseosil.cpp.

yyconst flex_int16_t yy_nxt[1756] [static]

Definition at line 699 of file OSParseosil.cpp.

yyconst flex_int16_t yy_chk[1756] [static]

Definition at line 896 of file OSParseosil.cpp.

yyconst flex_int32_t yy_rule_can_match_eol[118] [static]

Initial value:

    {   0,
1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
    1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0,     }

Definition at line 1094 of file OSParseosil.cpp.


Generated on Fri Jan 7 03:25:39 2011 by  doxygen 1.4.7