Classes | Defines | Typedefs | Functions | Variables

data.yy.cpp File Reference

#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include "nodes.h"
#include "data.tab.h"
#include <unistd.h>

Classes

struct  yy_buffer_state
struct  yy_trans_info

Defines

#define YY_INT_ALIGNED   short int
#define yy_create_buffer   data_create_buffer
#define yy_delete_buffer   data_delete_buffer
#define yy_flex_debug   data_flex_debug
#define yy_init_buffer   data_init_buffer
#define yy_flush_buffer   data_flush_buffer
#define yy_load_buffer_state   data_load_buffer_state
#define yy_switch_to_buffer   data_switch_to_buffer
#define yyin   datain
#define yyleng   dataleng
#define yylex   datalex
#define yylineno   datalineno
#define yyout   dataout
#define yyrestart   datarestart
#define yytext   datatext
#define yywrap   datawrap
#define yyalloc   dataalloc
#define yyrealloc   datarealloc
#define yyfree   datafree
#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 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   datarestart(datain )
#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_FLUSH_BUFFER   data_flush_buffer(YY_CURRENT_BUFFER )
#define yy_new_buffer   data_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 datawrap(n)   1
#define YY_SKIP_YYWRAP
#define yytext_ptr   datatext
#define YY_DO_BEFORE_ACTION
#define YY_NUM_RULES   139
#define YY_END_OF_BUFFER   140
#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 myreturn(id)   return(id)
#define INITIAL   0
#define accept_model_type   1
#define YY_EXTRA_TYPE   void *
#define YY_READ_BUF_SIZE   8192
#define ECHO   do { if (fwrite( datatext, dataleng, 1, dataout )) {} } 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 )
#define YY_DECL_IS_OURS   1
#define YY_DECL   int datalex (void)
#define YY_USER_ACTION
#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 struct yy_buffer_stateYY_BUFFER_STATE
typedef size_t yy_size_t
typedef unsigned char YY_CHAR
typedef int yy_state_type

Functions

void datarestart (FILE *input_file)
void data_switch_to_buffer (YY_BUFFER_STATE new_buffer)
YY_BUFFER_STATE data_create_buffer (FILE *file, int size)
void data_delete_buffer (YY_BUFFER_STATE b)
void data_flush_buffer (YY_BUFFER_STATE b)
 Discard all buffered characters.
void datapush_buffer_state (YY_BUFFER_STATE new_buffer)
 Pushes the new state onto the stack.
void datapop_buffer_state (void)
 Removes and deletes the top of the stack, if present.
static void dataensure_buffer_stack (void)
static void data_load_buffer_state (void)
static void data_init_buffer (YY_BUFFER_STATE b, FILE *file)
 The main scanner function which does all the work.
YY_BUFFER_STATE data_scan_buffer (char *base, yy_size_t size)
 Setup the input buffer state to scan directly from a user-specified character buffer.
YY_BUFFER_STATE data_scan_string (yyconst char *yystr)
 Setup the input buffer state to scan a string.
YY_BUFFER_STATE data_scan_bytes (yyconst char *yybytes, int _yybytes_len)
 Setup the input buffer state to scan the given bytes.
void * dataalloc (yy_size_t)
void * datarealloc (void *, yy_size_t)
void datafree (void *)
static yy_state_type yy_get_previous_state (void)
static yy_state_type yy_try_NUL_trans (yy_state_type current_state)
static int yy_get_next_buffer (void)
static void yy_fatal_error (yyconst char msg[])
static int yy_init_globals (void)
int datalex_destroy (void)
int dataget_debug (void)
void dataset_debug (int debug_flag)
YY_EXTRA_TYPE dataget_extra (void)
void dataset_extra (YY_EXTRA_TYPE user_defined)
FILE * dataget_in (void)
 Get the input stream.
void dataset_in (FILE *in_str)
 Set the input stream.
FILE * dataget_out (void)
 Get the output stream.
void dataset_out (FILE *out_str)
int dataget_leng (void)
 Get the length of the current token.
char * dataget_text (void)
 Get the current token.
int dataget_lineno (void)
 Get the current line number.
void dataset_lineno (int line_number)
 Set the current line number.
static void yyunput (int c, char *buf_ptr)
static int input (void)
int datalex (void)
static void yy_fatal_error (yyconst char *msg)

Variables

int dataleng
FILE * datain = (FILE *) 0
FILE * dataout = (FILE *) 0
static size_t yy_buffer_stack_top = 0
 index of top of stack.
static size_t yy_buffer_stack_max = 0
 capacity of stack.
static YY_BUFFER_STATEyy_buffer_stack = 0
 Stack as an array.
static char yy_hold_char
static int yy_n_chars
static char * yy_c_buf_p = (char *) 0
static int yy_init = 0
static int yy_start = 0
static int yy_did_buffer_switch_on_eof
int datalineno = 1
char * datatext
static yyconst flex_int16_t yy_accept [510]
static yyconst flex_int32_t yy_ec [256]
static yyconst flex_int32_t yy_meta [75]
static yyconst flex_int16_t yy_base [515]
static yyconst flex_int16_t yy_def [515]
static yyconst flex_int16_t yy_nxt [630]
static yyconst flex_int16_t yy_chk [630]
static yyconst flex_int32_t yy_rule_can_match_eol [140]
static yy_state_type yy_last_accepting_state
static char * yy_last_accepting_cpos
int data_flex_debug = 0

Define Documentation

#define accept_model_type   1
#define BEGIN   (yy_start) = 1 + 2 *
#define datawrap (   n  )     1
#define ECHO   do { if (fwrite( datatext, dataleng, 1, dataout )) {} } 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 myreturn (   id  )     return(id)
#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_create_buffer   data_create_buffer
#define YY_CURRENT_BUFFER
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
#define YY_DECL   int datalex (void)
#define YY_DECL_IS_OURS   1
#define yy_delete_buffer   data_delete_buffer
#define YY_DO_BEFORE_ACTION
Value:
(yytext_ptr) = yy_bp; \
        dataleng = (size_t) (yy_cp - yy_bp); \
        (yy_hold_char) = *yy_cp; \
        *yy_cp = '\0'; \
        (yy_c_buf_p) = yy_cp;
#define YY_END_OF_BUFFER   140
#define YY_END_OF_BUFFER_CHAR   0

Referenced by data_scan_buffer().

#define YY_EXIT_FAILURE   2

Referenced by yy_fatal_error().

#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   35
#define yy_flush_buffer   data_flush_buffer
#define YY_FLUSH_BUFFER   data_flush_buffer(YY_CURRENT_BUFFER )
#define yy_init_buffer   data_init_buffer
#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( datain )) != EOF && c != '\n'; ++n ) \
                        buf[n] = (char) c; \
                if ( c == '\n' ) \
                        buf[n++] = (char) c; \
                if ( c == EOF && ferror( datain ) ) \
                        YY_FATAL_ERROR( "input in flex scanner failed" ); \
                result = n; \
                } \
        else \
                { \
                errno=0; \
                while ( (result = fread(buf, 1, max_size, datain))==0 && ferror(datain)) \
                        { \
                        if( errno != EINTR) \
                                { \
                                YY_FATAL_ERROR( "input in flex scanner failed" ); \
                                break; \
                                } \
                        errno=0; \
                        clearerr(datain); \
                        } \
                }\
\
#define YY_INT_ALIGNED   short int
#define YY_LESS_LINENO (   n  ) 
Value:
do { \
                int yyl;\
                for ( yyl = n; yyl < dataleng; ++yyl )\
                    if ( datatext[yyl] == '\n' )\
                        --datalineno;\
            }while(0)
#define yy_load_buffer_state   data_load_buffer_state
#define YY_MORE_ADJ   0
#define yy_new_buffer   data_create_buffer
#define YY_NEW_FILE   datarestart(datain )
#define YY_NULL   0
#define YY_NUM_RULES   139
#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  ) 
Value:
{ \
        if ( ! YY_CURRENT_BUFFER ){ \
        dataensure_buffer_stack (); \
                YY_CURRENT_BUFFER_LVALUE =    \
            data_create_buffer(datain,YY_BUF_SIZE ); \
        } \
        YY_CURRENT_BUFFER_LVALUE->yy_is_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_switch_to_buffer   data_switch_to_buffer
#define YY_TYPEDEF_YY_BUFFER_STATE
#define YY_TYPEDEF_YY_SIZE_T
#define YY_USER_ACTION
#define yyalloc   dataalloc
#define yyconst
#define yyfree   datafree
FILE * yyin   datain
int yyleng   dataleng
#define yyless (   n  ) 
Value:
do \
                { \
                /* Undo effects of setting up datatext. */ \
        int yyless_macro_arg = (n); \
        YY_LESS_LINENO(yyless_macro_arg);\
                datatext[dataleng] = (yy_hold_char); \
                (yy_c_buf_p) = datatext + yyless_macro_arg; \
                (yy_hold_char) = *(yy_c_buf_p); \
                *(yy_c_buf_p) = '\0'; \
                dataleng = yyless_macro_arg; \
                } \
        while ( 0 )
#define yyless (   n  ) 
Value:
do \
                { \
                /* Undo effects of setting up datatext. */ \
        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 datatext again */ \
                } \
        while ( 0 )
#define yylex   datalex
int yylineno   datalineno

Referenced by yyerror().

#define yymore (  )     yymore_used_but_not_detected
FILE * yyout   dataout
#define yyrealloc   datarealloc
#define yyrestart   datarestart
#define YYSTATE   YY_START
#define YYTABLES_NAME   "yytables"
#define yyterminate (  )     return YY_NULL
char * yytext   datatext
#define yytext_ptr   datatext
#define yywrap   datawrap

Typedef Documentation

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 unsigned char YY_CHAR
typedef size_t yy_size_t
typedef int yy_state_type

Function Documentation

YY_BUFFER_STATE data_create_buffer ( FILE *  file,
int  size 
)
void data_delete_buffer ( YY_BUFFER_STATE  b  ) 
void data_flush_buffer ( YY_BUFFER_STATE  b  ) 

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.

References data_load_buffer_state(), yy_buffer_state::yy_at_bol, yy_buffer_state::yy_buf_pos, yy_buffer_state::yy_buffer_status, yy_buffer_state::yy_ch_buf, YY_CURRENT_BUFFER, and yy_buffer_state::yy_n_chars.

Referenced by data_init_buffer().

static void data_init_buffer ( YY_BUFFER_STATE  b,
FILE *  file 
) [static]
static void data_load_buffer_state ( void   )  [static]
YY_BUFFER_STATE data_scan_buffer ( char *  base,
yy_size_t  size 
)

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
Returns:
the newly allocated buffer state object.

References data_switch_to_buffer(), dataalloc(), yy_buffer_state::yy_at_bol, yy_buffer_state::yy_buf_pos, yy_buffer_state::yy_buf_size, 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 data_scan_bytes().

YY_BUFFER_STATE data_scan_bytes ( yyconst char *  yybytes,
int  _yybytes_len 
)

Setup the input buffer state to scan the given bytes.

The next call to datalex() 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.
Returns:
the newly allocated buffer state object.

References data_scan_buffer(), dataalloc(), YY_FATAL_ERROR, and yy_buffer_state::yy_is_our_buffer.

Referenced by data_scan_string().

YY_BUFFER_STATE data_scan_string ( yyconst char *  yystr  ) 

Setup the input buffer state to scan a string.

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

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

References data_scan_bytes().

void data_switch_to_buffer ( YY_BUFFER_STATE  new_buffer  ) 

Referenced by data_scan_buffer().

void * dataalloc ( yy_size_t  size  ) 
static void dataensure_buffer_stack ( void   )  [static]
void datafree ( void *  ptr  ) 

Referenced by datalex_destroy().

int dataget_debug ( void   ) 
YY_EXTRA_TYPE dataget_extra ( void   ) 
FILE * dataget_in ( void   ) 

Get the input stream.

References datain.

int dataget_leng ( void   ) 

Get the length of the current token.

References dataleng.

int dataget_lineno ( void   ) 

Get the current line number.

FILE * dataget_out ( void   ) 

Get the output stream.

References dataout.

char * dataget_text ( void   ) 

Get the current token.

int datalex ( void   ) 
int datalex_destroy ( void   ) 
void datapop_buffer_state ( void   ) 

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

The next element becomes the new top.

References data_delete_buffer(), data_load_buffer_state(), yy_buffer_stack_top, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, and yy_did_buffer_switch_on_eof.

Referenced by datalex_destroy().

void datapush_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.

Parameters:
new_buffer The new state.

References data_load_buffer_state(), dataensure_buffer_stack(), yy_buffer_stack_top, yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, yy_hold_char, and yy_n_chars.

void * datarealloc ( void *  ptr,
yy_size_t  size 
)

Referenced by dataensure_buffer_stack().

void datarestart ( FILE *  input_file  ) 
void dataset_debug ( int  debug_flag  ) 
void dataset_extra ( YY_EXTRA_TYPE  user_defined  ) 
void dataset_in ( FILE *  in_str  ) 

Set the input stream.

This does not discard the current input buffer.

Parameters:
in_str A readable stream.
See also:
data_switch_to_buffer

References datain.

void dataset_lineno ( int  line_number  ) 

Set the current line number.

Parameters:
line_number 
void dataset_out ( FILE *  out_str  ) 

References dataout.

static int input ( void   )  [static]
static void yy_fatal_error ( yyconst char *  msg  )  [static]

References YY_EXIT_FAILURE.

static void yy_fatal_error ( yyconst char  msg[]  )  [static]
static int yy_get_next_buffer ( void   )  [static]
static yy_state_type yy_get_previous_state ( void   )  [static]
static int yy_init_globals ( void   )  [static]
static yy_state_type yy_try_NUL_trans ( yy_state_type  current_state  )  [static]
static void yyunput ( int  c,
char *  buf_ptr 
) [static]

Variable Documentation

int data_flex_debug = 0
FILE* datain = (FILE *) 0
int dataleng

Referenced by dataget_leng().

int datalineno = 1
FILE * dataout = (FILE *) 0
char * datatext
yyconst flex_int16_t yy_accept[510] [static]
yyconst flex_int16_t yy_base[515] [static]

Stack as an array.

size_t yy_buffer_stack_max = 0 [static]

capacity of stack.

Referenced by dataensure_buffer_stack(), and yy_init_globals().

size_t yy_buffer_stack_top = 0 [static]
char* yy_c_buf_p = (char *) 0 [static]
yyconst flex_int16_t yy_chk[630] [static]
yyconst flex_int16_t yy_def[515] [static]
yyconst flex_int32_t yy_ec[256] [static]
char yy_hold_char [static]

Referenced by datapush_buffer_state().

int yy_init = 0 [static]

Referenced by yy_init_globals().

char* yy_last_accepting_cpos [static]
yyconst flex_int32_t yy_meta[75] [static]
Initial value:
    {   0,
        1,    1,    2,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    3,    1,    4,    4,    1,
        1,    1,    1,    1,    4,    4,    4,    4,    4,    4,
        4,    4,    4,    4,    4,    4,    4,    4,    4,    4,
        4,    1,    1,    1,    4,    4,    4,    4,    4,    4,
        4,    4,    4,    4,    4,    4,    4,    4,    4,    4,
        4,    4,    4,    4,    4,    4,    4,    4,    4,    4,
        4,    1,    1,    1
    }
int yy_n_chars [static]

Referenced by datapush_buffer_state().

yyconst flex_int16_t yy_nxt[630] [static]
yyconst flex_int32_t yy_rule_can_match_eol[140] [static]
Initial value:
    {   0,
1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
        }
int yy_start = 0 [static]

Referenced by yy_init_globals().