Back to index

wims  3.65+svn20090927
Classes | Defines | Typedefs | Functions | Variables
lex.yy.c File Reference
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include "unites.h"
#include <unistd.h>

Go to the source code of this file.

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   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   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_FLUSH_BUFFER   yy_flush_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_LVALUE->yy_at_bol)
#define yywrap(n)   1
#define YY_SKIP_YYWRAP
#define yytext_ptr   yytext
#define YY_DO_BEFORE_ACTION
#define YY_NUM_RULES   55
#define YY_END_OF_BUFFER   56
#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 YY_EXTRA_TYPE   void *
#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 )
#define YY_DECL_IS_OURS   1
#define YY_DECL   int yylex (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 yyrestart (FILE *input_file)
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer)
YY_BUFFER_STATE yy_create_buffer (FILE *file, int size)
void yy_delete_buffer (YY_BUFFER_STATE b)
void yy_flush_buffer (YY_BUFFER_STATE b)
 Discard all buffered characters.
void yypush_buffer_state (YY_BUFFER_STATE new_buffer)
 Pushes the new state onto the stack.
void yypop_buffer_state (void)
 Removes and deletes the top of the stack, if present.
static void yyensure_buffer_stack (void)
static void yy_load_buffer_state (void)
static void yy_init_buffer (YY_BUFFER_STATE b, FILE *file)
 The main scanner function which does all the work.
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.
YY_BUFFER_STATE yy_scan_string (yyconst char *yystr)
 Setup the input buffer state to scan a string.
YY_BUFFER_STATE yy_scan_bytes (yyconst char *yybytes, int _yybytes_len)
 Setup the input buffer state to scan the given bytes.
void * yyalloc (yy_size_t)
void * yyrealloc (void *, yy_size_t)
void yyfree (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 yylex_destroy (void)
int yyget_debug (void)
void yyset_debug (int debug_flag)
YY_EXTRA_TYPE yyget_extra (void)
void yyset_extra (YY_EXTRA_TYPE user_defined)
FILE * yyget_in (void)
 Get the input stream.
void yyset_in (FILE *in_str)
 Set the input stream.
FILE * yyget_out (void)
 Get the output stream.
void yyset_out (FILE *out_str)
int yyget_leng (void)
 Get the length of the current token.
char * yyget_text (void)
 Get the current token.
int yyget_lineno (void)
 Get the current line number.
void yyset_lineno (int line_number)
 Set the current line number.
static void yyunput (int c, char *buf_ptr)
static int input (void)
int yylex (void)
static void yy_fatal_error (yyconst char *msg)

Variables

int yyleng
FILE * yyin = (FILE *) 0
FILE * yyout = (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 yylineno = 1
char * yytext
static yyconst flex_int16_t yy_accept [113]
static yyconst flex_int32_t yy_ec [256]
static yyconst flex_int32_t yy_meta [57]
static yyconst flex_int16_t yy_base [113]
static yyconst flex_int16_t yy_def [113]
static yyconst flex_int16_t yy_nxt [235]
static yyconst flex_int16_t yy_chk [235]
static yy_state_type yy_last_accepting_state
static char * yy_last_accepting_cpos
int yy_flex_debug = 0

Class Documentation

struct yy_buffer_state

Definition at line 197 of file lex.yy.c.

Class Members
int yy_at_bol
int yy_bs_column The column count.
int yy_bs_lineno The line count.
char * yy_buf_pos
yy_size_t yy_buf_size
int yy_buffer_status
char * yy_ch_buf
int yy_fill_buffer
FILE * yy_input_file
int yy_is_interactive
int yy_is_our_buffer
int yy_n_chars
struct yy_trans_info

Definition at line 376 of file lex.yy.c.

Class Members
flex_int32_t yy_nxt
flex_int32_t yy_verify

Define Documentation

#define BEGIN   (yy_start) = 1 + 2 *

Definition at line 125 of file lex.yy.c.

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

Definition at line 655 of file lex.yy.c.

Definition at line 168 of file lex.yy.c.

Definition at line 169 of file lex.yy.c.

Definition at line 170 of file lex.yy.c.

Definition at line 13 of file lex.yy.c.

Definition at line 8 of file lex.yy.c.

Definition at line 29 of file lex.yy.c.

#define INITIAL   0

Definition at line 563 of file lex.yy.c.

#define INT16_MAX   (32767)

Definition at line 71 of file lex.yy.c.

#define INT16_MIN   (-32767-1)

Definition at line 62 of file lex.yy.c.

#define INT32_MAX   (2147483647)

Definition at line 74 of file lex.yy.c.

#define INT32_MIN   (-2147483647-1)

Definition at line 65 of file lex.yy.c.

#define INT8_MAX   (127)

Definition at line 68 of file lex.yy.c.

#define INT8_MIN   (-128)

Definition at line 59 of file lex.yy.c.

#define REJECT   reject_used_but_not_detected

Definition at line 543 of file lex.yy.c.

#define UINT16_MAX   (65535U)

Definition at line 80 of file lex.yy.c.

#define UINT32_MAX   (4294967295U)

Definition at line 83 of file lex.yy.c.

#define UINT8_MAX   (255U)

Definition at line 77 of file lex.yy.c.

#define unput (   c)    yyunput( c, (yytext_ptr) )

Definition at line 188 of file lex.yy.c.

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 339 of file lex.yy.c.

#define YY_BREAK   break;

Definition at line 734 of file lex.yy.c.

#define YY_BUF_SIZE   16384

Definition at line 151 of file lex.yy.c.

Definition at line 255 of file lex.yy.c.

Definition at line 243 of file lex.yy.c.

Definition at line 244 of file lex.yy.c.

Value:

Definition at line 271 of file lex.yy.c.

Definition at line 278 of file lex.yy.c.

#define YY_DECL   int yylex (void)

Definition at line 722 of file lex.yy.c.

Definition at line 718 of file lex.yy.c.

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

Definition at line 365 of file lex.yy.c.

Definition at line 373 of file lex.yy.c.

Definition at line 140 of file lex.yy.c.

Definition at line 1905 of file lex.yy.c.

#define YY_EXTRA_TYPE   void *

Definition at line 574 of file lex.yy.c.

#define YY_FATAL_ERROR (   msg)    yy_fatal_error( msg )

Definition at line 709 of file lex.yy.c.

Definition at line 9 of file lex.yy.c.

Definition at line 10 of file lex.yy.c.

Definition at line 11 of file lex.yy.c.

Definition at line 307 of file lex.yy.c.

#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 662 of file lex.yy.c.

#define YY_INT_ALIGNED   short int

Definition at line 4 of file lex.yy.c.

Definition at line 172 of file lex.yy.c.

Definition at line 545 of file lex.yy.c.

Definition at line 317 of file lex.yy.c.

Definition at line 138 of file lex.yy.c.

#define YY_NULL   0

Definition at line 112 of file lex.yy.c.

#define YY_NUM_RULES   55

Definition at line 372 of file lex.yy.c.

Definition at line 646 of file lex.yy.c.

Definition at line 546 of file lex.yy.c.

Definition at line 737 of file lex.yy.c.

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

Definition at line 119 of file lex.yy.c.

#define yy_set_bol (   at_bol)
Value:
{ \
       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; \
       }

Definition at line 329 of file lex.yy.c.

#define yy_set_interactive (   is_interactive)
Value:
{ \
       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; \
       }

Definition at line 319 of file lex.yy.c.

Definition at line 342 of file lex.yy.c.

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

Definition at line 131 of file lex.yy.c.

Definition at line 704 of file lex.yy.c.

Definition at line 157 of file lex.yy.c.

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

Definition at line 135 of file lex.yy.c.

Definition at line 196 of file lex.yy.c.

Definition at line 160 of file lex.yy.c.

Definition at line 191 of file lex.yy.c.

Definition at line 729 of file lex.yy.c.

Definition at line 108 of file lex.yy.c.

#define yyless (   n)
Value:
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 )

Definition at line 1917 of file lex.yy.c.

#define yyless (   n)
Value:
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 )

Definition at line 1917 of file lex.yy.c.

#define yymore ( )    yymore_used_but_not_detected

Definition at line 544 of file lex.yy.c.

Definition at line 132 of file lex.yy.c.

#define YYTABLES_NAME   "yytables"

Definition at line 2107 of file lex.yy.c.

#define yyterminate ( )    return YY_NULL

Definition at line 699 of file lex.yy.c.

Definition at line 355 of file lex.yy.c.

#define yywrap (   n)    1

Definition at line 341 of file lex.yy.c.


Typedef Documentation

typedef short int flex_int16_t

Definition at line 51 of file lex.yy.c.

typedef int flex_int32_t

Definition at line 52 of file lex.yy.c.

typedef signed char flex_int8_t

Definition at line 50 of file lex.yy.c.

typedef unsigned short int flex_uint16_t

Definition at line 54 of file lex.yy.c.

typedef unsigned int flex_uint32_t

Definition at line 55 of file lex.yy.c.

typedef unsigned char flex_uint8_t

Definition at line 53 of file lex.yy.c.

Definition at line 161 of file lex.yy.c.

typedef unsigned char YY_CHAR

Definition at line 344 of file lex.yy.c.

typedef size_t yy_size_t

Definition at line 192 of file lex.yy.c.

typedef int yy_state_type

Definition at line 348 of file lex.yy.c.


Function Documentation

static int input ( void  ) [static]
YY_BUFFER_STATE yy_create_buffer ( FILE *  file,
int  size 
)

Here is the caller graph for this function:

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

Definition at line 1908 of file lex.yy.c.

{
       (void) fprintf( stderr, "%s\n", msg );
       exit( YY_EXIT_FAILURE );
}

Discard all buffered characters.

On the next scan, YY_INPUT will be called.

Parameters:
bthe buffer state to be flushed, usually YY_CURRENT_BUFFER.

Definition at line 1697 of file lex.yy.c.

{
       if ( ! b )
              return;

       b->yy_n_chars = 0;

       /* We always need two end-of-buffer characters.  The first causes
        * a transition to the end-of-buffer state.  The second causes
        * a jam in that state.
        */
       b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
       b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;

       b->yy_buf_pos = &b->yy_ch_buf[0];

       b->yy_at_bol = 1;
       b->yy_buffer_status = YY_BUFFER_NEW;

       if ( b == YY_CURRENT_BUFFER )
              yy_load_buffer_state( );
}

Here is the call graph for this function:

Here is the caller graph for this function:

static int yy_get_next_buffer ( void  ) [static]
static yy_state_type yy_get_previous_state ( void  ) [static]
static void yy_init_buffer ( YY_BUFFER_STATE  b,
FILE *  file 
) [static]

The main scanner function which does all the work.

Definition at line 1669 of file lex.yy.c.

{
       int oerrno = errno;
    
       yy_flush_buffer(b );

       b->yy_input_file = file;
       b->yy_fill_buffer = 1;

    /* If b is the current buffer, then yy_init_buffer was _probably_
     * called from yyrestart() or through yy_get_next_buffer.
     * In that case, we don't want to reset the lineno or column.
     */
    if (b != YY_CURRENT_BUFFER){
        b->yy_bs_lineno = 1;
        b->yy_bs_column = 0;
    }

        b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
    
       errno = oerrno;
}

Here is the call graph for this function:

static int yy_init_globals ( void  ) [static]

Definition at line 2011 of file lex.yy.c.

{
        /* Initialization is the same as for the non-reentrant scanner.
     * This function is called from yylex_destroy(), so don't allocate here.
     */

    (yy_buffer_stack) = 0;
    (yy_buffer_stack_top) = 0;
    (yy_buffer_stack_max) = 0;
    (yy_c_buf_p) = (char *) 0;
    (yy_init) = 0;
    (yy_start) = 0;

/* Defined in main.c */
#ifdef YY_STDINIT
    yyin = stdin;
    yyout = stdout;
#else
    yyin = (FILE *) 0;
    yyout = (FILE *) 0;
#endif

    /* For future reference: Set errno on error, since we are called by
     * yylex_init()
     */
    return 0;
}

Here is the caller graph for this function:

static void yy_load_buffer_state ( void  ) [static]

Here is the caller graph for this function:

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.

Parameters:
basethe character buffer
sizethe size in bytes of the character buffer
Returns:
the newly allocated buffer state object.

Definition at line 1824 of file lex.yy.c.

{
       YY_BUFFER_STATE b;
    
       if ( size < 2 ||
            base[size-2] != YY_END_OF_BUFFER_CHAR ||
            base[size-1] != YY_END_OF_BUFFER_CHAR )
              /* They forgot to leave room for the EOB's. */
              return 0;

       b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state )  );
       if ( ! b )
              YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );

       b->yy_buf_size = size - 2;  /* "- 2" to take care of EOB's */
       b->yy_buf_pos = b->yy_ch_buf = base;
       b->yy_is_our_buffer = 0;
       b->yy_input_file = 0;
       b->yy_n_chars = b->yy_buf_size;
       b->yy_is_interactive = 0;
       b->yy_at_bol = 1;
       b->yy_fill_buffer = 0;
       b->yy_buffer_status = YY_BUFFER_NEW;

       yy_switch_to_buffer(b  );

       return b;
}

Here is the call graph for this function:

Here is the caller graph for this function:

YY_BUFFER_STATE yy_scan_bytes ( yyconst char *  yybytes,
int  _yybytes_len 
)

Setup the input buffer state to scan the given bytes.

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

Parameters:
yybytesthe byte buffer to scan
_yybytes_lenthe number of bytes in the buffer pointed to by bytes.
Returns:
the newly allocated buffer state object.

Definition at line 1874 of file lex.yy.c.

{
       YY_BUFFER_STATE b;
       char *buf;
       yy_size_t n;
       int i;
    
       /* Get memory for full buffer, including space for trailing EOB's. */
       n = _yybytes_len + 2;
       buf = (char *) yyalloc(n  );
       if ( ! buf )
              YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );

       for ( i = 0; i < _yybytes_len; ++i )
              buf[i] = yybytes[i];

       buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;

       b = yy_scan_buffer(buf,n );
       if ( ! b )
              YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );

       /* It's okay to grow etc. this buffer, and we should throw it
        * away when we're done.
        */
       b->yy_is_our_buffer = 1;

       return b;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Setup the input buffer state to scan a string.

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

Parameters:
yystra 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 yy_scan_bytes() instead.

Definition at line 1861 of file lex.yy.c.

{
    
       return yy_scan_bytes(yystr,strlen(yystr) );
}

Here is the call graph for this function:

void yy_switch_to_buffer ( YY_BUFFER_STATE  new_buffer)

Here is the caller graph for this function:

static yy_state_type yy_try_NUL_trans ( yy_state_type  current_state) [static]
void * yyalloc ( yy_size_t  size)

Definition at line 2085 of file lex.yy.c.

{
       return (void *) malloc( size );
}

Here is the caller graph for this function:

static void yyensure_buffer_stack ( void  ) [static]

Definition at line 1775 of file lex.yy.c.

{
       int num_to_alloc;
    
       if (!(yy_buffer_stack)) {

              /* First allocation is just for 2 elements, since we don't know if this
               * scanner will even need a stack. We use 2 instead of 1 to avoid an
               * immediate realloc on the next call.
         */
              num_to_alloc = 1;
              (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
                                                        (num_to_alloc * sizeof(struct yy_buffer_state*)
                                                        );
              if ( ! (yy_buffer_stack) )
                     YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
                                                          
              memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
                            
              (yy_buffer_stack_max) = num_to_alloc;
              (yy_buffer_stack_top) = 0;
              return;
       }

       if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){

              /* Increase the buffer to prepare for a possible push. */
              int grow_size = 8 /* arbitrary grow size */;

              num_to_alloc = (yy_buffer_stack_max) + grow_size;
              (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
                                                        ((yy_buffer_stack),
                                                        num_to_alloc * sizeof(struct yy_buffer_state*)
                                                        );
              if ( ! (yy_buffer_stack) )
                     YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );

              /* zero only the new slots.*/
              memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
              (yy_buffer_stack_max) = num_to_alloc;
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void yyfree ( void *  ptr)

Definition at line 2102 of file lex.yy.c.

{
       free( (char *) ptr );       /* see yyrealloc() for (char *) cast */
}

Here is the caller graph for this function:

int yyget_debug ( void  )

Definition at line 2001 of file lex.yy.c.

{
        return yy_flex_debug;
}
FILE * yyget_in ( void  )

Get the input stream.

Definition at line 1945 of file lex.yy.c.

{
        return yyin;
}
int yyget_leng ( void  )

Get the length of the current token.

Definition at line 1961 of file lex.yy.c.

{
        return yyleng;
}
int yyget_lineno ( void  )

Get the current line number.

Definition at line 1936 of file lex.yy.c.

{
        
    return yylineno;
}
FILE * yyget_out ( void  )

Get the output stream.

Definition at line 1953 of file lex.yy.c.

{
        return yyout;
}
char * yyget_text ( void  )

Get the current token.

Definition at line 1970 of file lex.yy.c.

{
        return yytext;
}
int yylex ( void  )
int yylex_destroy ( void  )

Definition at line 2040 of file lex.yy.c.

{
    
    /* Pop the buffer stack, destroying each element. */
       while(YY_CURRENT_BUFFER){
              yy_delete_buffer(YY_CURRENT_BUFFER  );
              YY_CURRENT_BUFFER_LVALUE = NULL;
              yypop_buffer_state();
       }

       /* Destroy the stack itself. */
       yyfree((yy_buffer_stack) );
       (yy_buffer_stack) = NULL;

    /* Reset the globals. This is important in a non-reentrant scanner so the next time
     * yylex() is called, initialization will occur. */
    yy_init_globals( );

    return 0;
}

Here is the call graph for this function:

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 1756 of file lex.yy.c.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters:
new_bufferThe new state.

Definition at line 1726 of file lex.yy.c.

{
       if (new_buffer == NULL)
              return;

       yyensure_buffer_stack();

       /* This block is copied from yy_switch_to_buffer. */
       if ( YY_CURRENT_BUFFER )
              {
              /* Flush out information for old buffer. */
              *(yy_c_buf_p) = (yy_hold_char);
              YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
              YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
              }

       /* Only push if top exists. Otherwise, replace top. */
       if (YY_CURRENT_BUFFER)
              (yy_buffer_stack_top)++;
       YY_CURRENT_BUFFER_LVALUE = new_buffer;

       /* copied from yy_switch_to_buffer. */
       yy_load_buffer_state( );
       (yy_did_buffer_switch_on_eof) = 1;
}

Here is the call graph for this function:

void * yyrealloc ( void *  ptr,
yy_size_t  size 
)

Definition at line 2090 of file lex.yy.c.

{
       /* The cast to (char *) in the following accommodates both
        * implementations that use char* generic pointers, and those
        * that use void* generic pointers.  It works with the latter
        * because both ANSI C and C++ allow castless assignment from
        * any pointer type to void*, and deal with argument conversions
        * as though doing an assignment.
        */
       return (void *) realloc( (char *) ptr, size );
}

Here is the caller graph for this function:

void yyrestart ( FILE *  input_file)
void yyset_debug ( int  debug_flag)

Definition at line 2006 of file lex.yy.c.

{
        yy_flex_debug = bdebug ;
}
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.

Parameters:
in_strA readable stream.
See also:
yy_switch_to_buffer

Definition at line 1991 of file lex.yy.c.

{
        yyin = in_str ;
}
void yyset_lineno ( int  line_number)

Set the current line number.

Parameters:
line_number

Definition at line 1979 of file lex.yy.c.

{
    
    yylineno = line_number;
}
void yyset_out ( FILE *  out_str)

Definition at line 1996 of file lex.yy.c.

{
        yyout = out_str ;
}
static void yyunput ( int  c,
char *  buf_ptr 
) [static]

Variable Documentation

Initial value:
    {   0,
        0,    0,   56,   53,   48,   54,   53,   39,   53,   53,
       36,   37,    1,   52,    8,   53,   17,   35,   21,   35,
       24,   15,    9,   43,   13,   53,   35,   20,   22,   18,
       16,   53,    5,   42,   35,   35,   53,    6,    2,   43,
        4,   53,   53,    7,   44,   47,   53,   38,   33,   34,
       48,    0,    0,   36,   37,   52,    0,    0,   49,   40,
        0,    1,   36,   37,    1,    0,    0,   52,   27,   28,
       12,    0,   14,   29,   23,    0,    0,   32,    0,   11,
       35,   46,   25,   26,    0,    0,    0,    0,   31,    0,
       50,   41,    9,   49,    0,    0,    1,    0,    0,    1,

       19,   45,    3,   10,   30,   47,   50,   50,   51,    0,
       51,    0
    }

Definition at line 381 of file lex.yy.c.

yyconst flex_int16_t yy_base[113] [static]
Initial value:
    {   0,
        0,    0,  177,  178,   55,  178,  165,  169,   50,  163,
      171,  170,   61,  169,  178,  126,  178,  178,  178,  118,
      116,  178,  178,  178,  178,  129,  134,  116,  178,  178,
      131,   67,  178,  131,  127,  129,  131,  178,  178,   30,
       40,  121,  126,  112,  178,  114,  143,   53,  178,  178,
       80,  142,  144,  149,  148,  147,   91,  137,   74,  178,
       89,   94,  145,  144,   79,  134,  105,  142,  178,  178,
      178,  102,  178,  178,  178,  112,  131,  130,   95,  178,
      178,  178,  178,  178,   97,   97,   91,   93,  178,   95,
      107,  178,  178,  123,  115,   83,  120,  127,  113,  110,

      178,  178,  178,  178,  178,  178,  104,  102,   99,   68,
       58,  178
    }

Definition at line 440 of file lex.yy.c.

Stack as an array.

Definition at line 263 of file lex.yy.c.

size_t yy_buffer_stack_max = 0 [static]

capacity of stack.

Definition at line 262 of file lex.yy.c.

size_t yy_buffer_stack_top = 0 [static]

index of top of stack.

Definition at line 261 of file lex.yy.c.

char* yy_c_buf_p = (char *) 0 [static]

Definition at line 286 of file lex.yy.c.

yyconst flex_int16_t yy_chk[235] [static]
Initial value:
    {   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,    5,    9,    5,  111,
        9,    5,   13,    5,    5,   48,    5,   48,   32,   13,
       40,   13,  110,   32,   32,   59,   13,   32,   41,   40,
       65,   51,   41,   51,   59,    5,   51,   96,   51,   51,
       61,   51,   57,   96,   65,   62,   13,   57,   57,   61,

      109,   57,   62,  108,   62,  107,   67,    5,   91,   62,
       51,   67,   67,   76,   65,   67,   95,   91,   76,   76,
      100,   97,   76,   99,   94,   95,   90,   88,   98,   62,
       97,   87,   51,   98,   98,   97,   86,   98,   85,   79,
       78,   77,   72,   68,   66,   64,   63,   58,   56,   55,
       54,   53,   52,   47,   46,   97,   44,   43,   42,   37,
       36,   35,   34,   31,   28,   27,   26,   21,   20,   16,
       14,   12,   11,   10,    8,    7,    3,  112,  112,  112,
      112,  112,  112,  112,  112,  112,  112,  112,  112,  112,
      112,  112,  112,  112,  112,  112,  112,  112,  112,  112,

      112,  112,  112,  112,  112,  112,  112,  112,  112,  112,
      112,  112,  112,  112,  112,  112,  112,  112,  112,  112,
      112,  112,  112,  112,  112,  112,  112,  112,  112,  112,
      112,  112,  112,  112
    }

Definition at line 504 of file lex.yy.c.

yyconst flex_int16_t yy_def[113] [static]
Initial value:
    {   0,
      112,    1,  112,  112,  112,  112,  112,  112,  112,  112,
      112,  112,  112,  112,  112,  112,  112,  112,  112,  112,
      112,  112,  112,  112,  112,  112,  112,  112,  112,  112,
      112,  112,  112,  112,  112,  112,  112,  112,  112,  112,
      112,  112,  112,  112,  112,  112,  112,  112,  112,  112,
      112,  112,  112,  112,  112,  112,  112,  112,  112,  112,
      112,  112,  112,  112,  112,  112,  112,  112,  112,  112,
      112,  112,  112,  112,  112,  112,  112,  112,  112,  112,
      112,  112,  112,  112,  112,  112,  112,  112,  112,  112,
      112,  112,  112,  112,  112,  112,  112,  112,  112,  112,

      112,  112,  112,  112,  112,  112,  112,  112,  112,  112,
      112,    0
    }

Definition at line 457 of file lex.yy.c.

Definition at line 293 of file lex.yy.c.

yyconst flex_int32_t yy_ec[256] [static]

Definition at line 398 of file lex.yy.c.

int yy_flex_debug = 0

Definition at line 538 of file lex.yy.c.

char yy_hold_char [static]

Definition at line 281 of file lex.yy.c.

int yy_init = 0 [static]

Definition at line 287 of file lex.yy.c.

char* yy_last_accepting_cpos [static]

Definition at line 535 of file lex.yy.c.

Definition at line 534 of file lex.yy.c.

Initial value:
    {   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
    }

Definition at line 430 of file lex.yy.c.

int yy_n_chars [static]

Definition at line 282 of file lex.yy.c.

yyconst flex_int16_t yy_nxt[235] [static]
Initial value:
    {   0,
        4,    5,    6,    7,    4,    8,    9,   10,   11,   12,
       13,   14,   15,   16,   17,   18,   19,   20,   21,   22,
       23,   24,   18,   25,   26,   27,   28,   29,   30,   31,
       32,   33,   34,   35,   36,   37,   38,   39,    4,   40,
       41,   18,   42,    4,   43,   44,   45,   46,    4,    4,
       18,   18,   47,   48,   49,   50,   51,   61,   52,  111,
       62,   53,   65,   54,   55,   92,   56,   93,   76,   66,
       83,   62,  109,   77,   77,   94,   67,   78,   85,   84,
       65,   51,   86,   52,   59,   57,   53,  109,   54,   55,
       95,   56,   76,  110,   67,   65,   67,   77,   77,   96,

      111,   78,   66,  107,   62,  107,   98,   58,  107,   67,
       57,   99,   99,   76,   67,  100,   95,  108,   77,   77,
      100,   65,   78,  100,   94,   96,  106,  105,   98,   67,
       97,  101,   58,   99,   99,   67,  104,  100,  103,  102,
       78,   78,  101,   68,   97,   64,   63,   91,   68,   64,
       63,   61,   59,   91,   90,   67,   89,   88,   87,   82,
       81,   80,   79,   75,   74,   73,   72,   71,   70,   69,
       68,   64,   63,   62,   60,   59,  112,    3,  112,  112,
      112,  112,  112,  112,  112,  112,  112,  112,  112,  112,
      112,  112,  112,  112,  112,  112,  112,  112,  112,  112,

      112,  112,  112,  112,  112,  112,  112,  112,  112,  112,
      112,  112,  112,  112,  112,  112,  112,  112,  112,  112,
      112,  112,  112,  112,  112,  112,  112,  112,  112,  112,
      112,  112,  112,  112
    }

Definition at line 474 of file lex.yy.c.

int yy_start = 0 [static]

Definition at line 288 of file lex.yy.c.

FILE * yyin = (FILE *) 0

Definition at line 346 of file lex.yy.c.

int yyleng

Definition at line 283 of file lex.yy.c.

int yylineno = 1

Definition at line 352 of file lex.yy.c.

FILE * yyout = (FILE *) 0

Definition at line 346 of file lex.yy.c.

char * yytext

Definition at line 547 of file lex.yy.c.