Home | History | Annotate | Line # | Download | only in binutils
syslex.c revision 1.7
      1  1.1  christos 
      2  1.1  christos #line 3 "syslex.c"
      3  1.1  christos 
      4  1.1  christos #define  YY_INT_ALIGNED short int
      5  1.1  christos 
      6  1.1  christos /* A lexical scanner generated by flex */
      7  1.1  christos 
      8  1.1  christos #define FLEX_SCANNER
      9  1.1  christos #define YY_FLEX_MAJOR_VERSION 2
     10  1.6  christos #define YY_FLEX_MINOR_VERSION 6
     11  1.6  christos #define YY_FLEX_SUBMINOR_VERSION 1
     12  1.1  christos #if YY_FLEX_SUBMINOR_VERSION > 0
     13  1.1  christos #define FLEX_BETA
     14  1.1  christos #endif
     15  1.1  christos 
     16  1.1  christos /* First, we deal with  platform-specific or compiler-specific issues. */
     17  1.1  christos 
     18  1.1  christos /* begin standard C headers. */
     19  1.1  christos #include <stdio.h>
     20  1.1  christos #include <string.h>
     21  1.1  christos #include <errno.h>
     22  1.1  christos #include <stdlib.h>
     23  1.1  christos 
     24  1.1  christos /* end standard C headers. */
     25  1.1  christos 
     26  1.1  christos /* flex integer type definitions */
     27  1.1  christos 
     28  1.1  christos #ifndef FLEXINT_H
     29  1.1  christos #define FLEXINT_H
     30  1.1  christos 
     31  1.1  christos /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
     32  1.1  christos 
     33  1.1  christos #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
     34  1.1  christos 
     35  1.1  christos /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
     36  1.1  christos  * if you want the limit (max/min) macros for int types.
     37  1.1  christos  */
     38  1.1  christos #ifndef __STDC_LIMIT_MACROS
     39  1.1  christos #define __STDC_LIMIT_MACROS 1
     40  1.1  christos #endif
     41  1.1  christos 
     42  1.1  christos #include <inttypes.h>
     43  1.1  christos typedef int8_t flex_int8_t;
     44  1.1  christos typedef uint8_t flex_uint8_t;
     45  1.1  christos typedef int16_t flex_int16_t;
     46  1.1  christos typedef uint16_t flex_uint16_t;
     47  1.1  christos typedef int32_t flex_int32_t;
     48  1.1  christos typedef uint32_t flex_uint32_t;
     49  1.1  christos #else
     50  1.1  christos typedef signed char flex_int8_t;
     51  1.1  christos typedef short int flex_int16_t;
     52  1.1  christos typedef int flex_int32_t;
     53  1.1  christos typedef unsigned char flex_uint8_t;
     54  1.1  christos typedef unsigned short int flex_uint16_t;
     55  1.1  christos typedef unsigned int flex_uint32_t;
     56  1.1  christos 
     57  1.1  christos /* Limits of integral types. */
     58  1.1  christos #ifndef INT8_MIN
     59  1.1  christos #define INT8_MIN               (-128)
     60  1.1  christos #endif
     61  1.1  christos #ifndef INT16_MIN
     62  1.1  christos #define INT16_MIN              (-32767-1)
     63  1.1  christos #endif
     64  1.1  christos #ifndef INT32_MIN
     65  1.1  christos #define INT32_MIN              (-2147483647-1)
     66  1.1  christos #endif
     67  1.1  christos #ifndef INT8_MAX
     68  1.1  christos #define INT8_MAX               (127)
     69  1.1  christos #endif
     70  1.1  christos #ifndef INT16_MAX
     71  1.1  christos #define INT16_MAX              (32767)
     72  1.1  christos #endif
     73  1.1  christos #ifndef INT32_MAX
     74  1.1  christos #define INT32_MAX              (2147483647)
     75  1.1  christos #endif
     76  1.1  christos #ifndef UINT8_MAX
     77  1.1  christos #define UINT8_MAX              (255U)
     78  1.1  christos #endif
     79  1.1  christos #ifndef UINT16_MAX
     80  1.1  christos #define UINT16_MAX             (65535U)
     81  1.1  christos #endif
     82  1.1  christos #ifndef UINT32_MAX
     83  1.1  christos #define UINT32_MAX             (4294967295U)
     84  1.1  christos #endif
     85  1.1  christos 
     86  1.6  christos #endif /* ! C99 */
     87  1.6  christos 
     88  1.1  christos #endif /* ! FLEXINT_H */
     89  1.1  christos 
     90  1.6  christos /* TODO: this is always defined, so inline it */
     91  1.6  christos #define yyconst const
     92  1.1  christos 
     93  1.6  christos #if defined(__GNUC__) && __GNUC__ >= 3
     94  1.6  christos #define yynoreturn __attribute__((__noreturn__))
     95  1.1  christos #else
     96  1.6  christos #define yynoreturn
     97  1.1  christos #endif
     98  1.1  christos 
     99  1.1  christos /* Returned upon end-of-file. */
    100  1.1  christos #define YY_NULL 0
    101  1.1  christos 
    102  1.1  christos /* Promotes a possibly negative, possibly signed char to an unsigned
    103  1.1  christos  * integer for use as an array index.  If the signed char is negative,
    104  1.1  christos  * we want to instead treat it as an 8-bit unsigned char, hence the
    105  1.1  christos  * double cast.
    106  1.1  christos  */
    107  1.1  christos #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
    108  1.1  christos 
    109  1.1  christos /* Enter a start condition.  This macro really ought to take a parameter,
    110  1.1  christos  * but we do it the disgusting crufty way forced on us by the ()-less
    111  1.1  christos  * definition of BEGIN.
    112  1.1  christos  */
    113  1.1  christos #define BEGIN (yy_start) = 1 + 2 *
    114  1.1  christos 
    115  1.1  christos /* Translate the current start state into a value that can be later handed
    116  1.1  christos  * to BEGIN to return to the state.  The YYSTATE alias is for lex
    117  1.1  christos  * compatibility.
    118  1.1  christos  */
    119  1.1  christos #define YY_START (((yy_start) - 1) / 2)
    120  1.1  christos #define YYSTATE YY_START
    121  1.1  christos 
    122  1.1  christos /* Action number for EOF rule of a given start state. */
    123  1.1  christos #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
    124  1.1  christos 
    125  1.1  christos /* Special action meaning "start processing a new file". */
    126  1.1  christos #define YY_NEW_FILE yyrestart(yyin  )
    127  1.1  christos 
    128  1.1  christos #define YY_END_OF_BUFFER_CHAR 0
    129  1.1  christos 
    130  1.1  christos /* Size of default input buffer. */
    131  1.1  christos #ifndef YY_BUF_SIZE
    132  1.6  christos #ifdef __ia64__
    133  1.6  christos /* On IA-64, the buffer size is 16k, not 8k.
    134  1.6  christos  * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
    135  1.6  christos  * Ditto for the __ia64__ case accordingly.
    136  1.6  christos  */
    137  1.6  christos #define YY_BUF_SIZE 32768
    138  1.6  christos #else
    139  1.1  christos #define YY_BUF_SIZE 16384
    140  1.6  christos #endif /* __ia64__ */
    141  1.1  christos #endif
    142  1.1  christos 
    143  1.1  christos /* The state buf must be large enough to hold one state per character in the main buffer.
    144  1.1  christos  */
    145  1.1  christos #define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
    146  1.1  christos 
    147  1.1  christos #ifndef YY_TYPEDEF_YY_BUFFER_STATE
    148  1.1  christos #define YY_TYPEDEF_YY_BUFFER_STATE
    149  1.1  christos typedef struct yy_buffer_state *YY_BUFFER_STATE;
    150  1.1  christos #endif
    151  1.1  christos 
    152  1.3  christos #ifndef YY_TYPEDEF_YY_SIZE_T
    153  1.3  christos #define YY_TYPEDEF_YY_SIZE_T
    154  1.3  christos typedef size_t yy_size_t;
    155  1.3  christos #endif
    156  1.3  christos 
    157  1.6  christos extern int yyleng;
    158  1.1  christos 
    159  1.1  christos extern FILE *yyin, *yyout;
    160  1.1  christos 
    161  1.1  christos #define EOB_ACT_CONTINUE_SCAN 0
    162  1.1  christos #define EOB_ACT_END_OF_FILE 1
    163  1.1  christos #define EOB_ACT_LAST_MATCH 2
    164  1.1  christos 
    165  1.1  christos     #define YY_LESS_LINENO(n)
    166  1.6  christos     #define YY_LINENO_REWIND_TO(ptr)
    167  1.1  christos 
    168  1.1  christos /* Return all but the first "n" matched characters back to the input stream. */
    169  1.1  christos #define yyless(n) \
    170  1.1  christos 	do \
    171  1.1  christos 		{ \
    172  1.1  christos 		/* Undo effects of setting up yytext. */ \
    173  1.6  christos         yy_size_t yyless_macro_arg = (n); \
    174  1.1  christos         YY_LESS_LINENO(yyless_macro_arg);\
    175  1.1  christos 		*yy_cp = (yy_hold_char); \
    176  1.1  christos 		YY_RESTORE_YY_MORE_OFFSET \
    177  1.1  christos 		(yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
    178  1.1  christos 		YY_DO_BEFORE_ACTION; /* set up yytext again */ \
    179  1.1  christos 		} \
    180  1.1  christos 	while ( 0 )
    181  1.1  christos 
    182  1.1  christos #define unput(c) yyunput( c, (yytext_ptr)  )
    183  1.1  christos 
    184  1.1  christos #ifndef YY_STRUCT_YY_BUFFER_STATE
    185  1.1  christos #define YY_STRUCT_YY_BUFFER_STATE
    186  1.1  christos struct yy_buffer_state
    187  1.1  christos 	{
    188  1.1  christos 	FILE *yy_input_file;
    189  1.1  christos 
    190  1.1  christos 	char *yy_ch_buf;		/* input buffer */
    191  1.1  christos 	char *yy_buf_pos;		/* current position in input buffer */
    192  1.1  christos 
    193  1.1  christos 	/* Size of input buffer in bytes, not including room for EOB
    194  1.1  christos 	 * characters.
    195  1.1  christos 	 */
    196  1.6  christos 	int yy_buf_size;
    197  1.1  christos 
    198  1.1  christos 	/* Number of characters read into yy_ch_buf, not including EOB
    199  1.1  christos 	 * characters.
    200  1.1  christos 	 */
    201  1.6  christos 	int yy_n_chars;
    202  1.1  christos 
    203  1.1  christos 	/* Whether we "own" the buffer - i.e., we know we created it,
    204  1.1  christos 	 * and can realloc() it to grow it, and should free() it to
    205  1.1  christos 	 * delete it.
    206  1.1  christos 	 */
    207  1.1  christos 	int yy_is_our_buffer;
    208  1.1  christos 
    209  1.1  christos 	/* Whether this is an "interactive" input source; if so, and
    210  1.1  christos 	 * if we're using stdio for input, then we want to use getc()
    211  1.1  christos 	 * instead of fread(), to make sure we stop fetching input after
    212  1.1  christos 	 * each newline.
    213  1.1  christos 	 */
    214  1.1  christos 	int yy_is_interactive;
    215  1.1  christos 
    216  1.1  christos 	/* Whether we're considered to be at the beginning of a line.
    217  1.1  christos 	 * If so, '^' rules will be active on the next match, otherwise
    218  1.1  christos 	 * not.
    219  1.1  christos 	 */
    220  1.1  christos 	int yy_at_bol;
    221  1.1  christos 
    222  1.1  christos     int yy_bs_lineno; /**< The line count. */
    223  1.1  christos     int yy_bs_column; /**< The column count. */
    224  1.1  christos 
    225  1.1  christos 	/* Whether to try to fill the input buffer when we reach the
    226  1.1  christos 	 * end of it.
    227  1.1  christos 	 */
    228  1.1  christos 	int yy_fill_buffer;
    229  1.1  christos 
    230  1.1  christos 	int yy_buffer_status;
    231  1.1  christos 
    232  1.1  christos #define YY_BUFFER_NEW 0
    233  1.1  christos #define YY_BUFFER_NORMAL 1
    234  1.1  christos 	/* When an EOF's been seen but there's still some text to process
    235  1.1  christos 	 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
    236  1.1  christos 	 * shouldn't try reading from the input source any more.  We might
    237  1.1  christos 	 * still have a bunch of tokens to match, though, because of
    238  1.1  christos 	 * possible backing-up.
    239  1.1  christos 	 *
    240  1.1  christos 	 * When we actually see the EOF, we change the status to "new"
    241  1.1  christos 	 * (via yyrestart()), so that the user can continue scanning by
    242  1.1  christos 	 * just pointing yyin at a new input file.
    243  1.1  christos 	 */
    244  1.1  christos #define YY_BUFFER_EOF_PENDING 2
    245  1.1  christos 
    246  1.1  christos 	};
    247  1.1  christos #endif /* !YY_STRUCT_YY_BUFFER_STATE */
    248  1.1  christos 
    249  1.1  christos /* Stack of input buffers. */
    250  1.1  christos static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
    251  1.1  christos static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
    252  1.6  christos static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */
    253  1.1  christos 
    254  1.1  christos /* We provide macros for accessing buffer states in case in the
    255  1.1  christos  * future we want to put the buffer states in a more general
    256  1.1  christos  * "scanner state".
    257  1.1  christos  *
    258  1.1  christos  * Returns the top of the stack, or NULL.
    259  1.1  christos  */
    260  1.1  christos #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
    261  1.1  christos                           ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
    262  1.1  christos                           : NULL)
    263  1.1  christos 
    264  1.1  christos /* Same as previous macro, but useful when we know that the buffer stack is not
    265  1.1  christos  * NULL or when we need an lvalue. For internal use only.
    266  1.1  christos  */
    267  1.1  christos #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
    268  1.1  christos 
    269  1.1  christos /* yy_hold_char holds the character lost when yytext is formed. */
    270  1.1  christos static char yy_hold_char;
    271  1.6  christos static int yy_n_chars;		/* number of characters read into yy_ch_buf */
    272  1.6  christos int yyleng;
    273  1.1  christos 
    274  1.1  christos /* Points to current character in buffer. */
    275  1.6  christos static char *yy_c_buf_p = NULL;
    276  1.1  christos static int yy_init = 0;		/* whether we need to initialize */
    277  1.1  christos static int yy_start = 0;	/* start state number */
    278  1.1  christos 
    279  1.1  christos /* Flag which is used to allow yywrap()'s to do buffer switches
    280  1.1  christos  * instead of setting up a fresh yyin.  A bit of a hack ...
    281  1.1  christos  */
    282  1.1  christos static int yy_did_buffer_switch_on_eof;
    283  1.1  christos 
    284  1.1  christos void yyrestart (FILE *input_file  );
    285  1.1  christos void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer  );
    286  1.1  christos YY_BUFFER_STATE yy_create_buffer (FILE *file,int size  );
    287  1.1  christos void yy_delete_buffer (YY_BUFFER_STATE b  );
    288  1.1  christos void yy_flush_buffer (YY_BUFFER_STATE b  );
    289  1.1  christos void yypush_buffer_state (YY_BUFFER_STATE new_buffer  );
    290  1.1  christos void yypop_buffer_state (void );
    291  1.1  christos 
    292  1.1  christos static void yyensure_buffer_stack (void );
    293  1.1  christos static void yy_load_buffer_state (void );
    294  1.1  christos static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file  );
    295  1.1  christos 
    296  1.1  christos #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
    297  1.1  christos 
    298  1.1  christos YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size  );
    299  1.1  christos YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str  );
    300  1.6  christos YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len  );
    301  1.1  christos 
    302  1.1  christos void *yyalloc (yy_size_t  );
    303  1.1  christos void *yyrealloc (void *,yy_size_t  );
    304  1.1  christos void yyfree (void *  );
    305  1.1  christos 
    306  1.1  christos #define yy_new_buffer yy_create_buffer
    307  1.1  christos 
    308  1.1  christos #define yy_set_interactive(is_interactive) \
    309  1.1  christos 	{ \
    310  1.1  christos 	if ( ! YY_CURRENT_BUFFER ){ \
    311  1.1  christos         yyensure_buffer_stack (); \
    312  1.1  christos 		YY_CURRENT_BUFFER_LVALUE =    \
    313  1.1  christos             yy_create_buffer(yyin,YY_BUF_SIZE ); \
    314  1.1  christos 	} \
    315  1.1  christos 	YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
    316  1.1  christos 	}
    317  1.1  christos 
    318  1.1  christos #define yy_set_bol(at_bol) \
    319  1.1  christos 	{ \
    320  1.1  christos 	if ( ! YY_CURRENT_BUFFER ){\
    321  1.1  christos         yyensure_buffer_stack (); \
    322  1.1  christos 		YY_CURRENT_BUFFER_LVALUE =    \
    323  1.1  christos             yy_create_buffer(yyin,YY_BUF_SIZE ); \
    324  1.1  christos 	} \
    325  1.1  christos 	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
    326  1.1  christos 	}
    327  1.1  christos 
    328  1.1  christos #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
    329  1.1  christos 
    330  1.6  christos #define yywrap() (/*CONSTCOND*/1)
    331  1.6  christos #define YY_SKIP_YYWRAP
    332  1.6  christos 
    333  1.1  christos typedef unsigned char YY_CHAR;
    334  1.1  christos 
    335  1.6  christos FILE *yyin = NULL, *yyout = NULL;
    336  1.1  christos 
    337  1.1  christos typedef int yy_state_type;
    338  1.1  christos 
    339  1.1  christos extern int yylineno;
    340  1.1  christos 
    341  1.1  christos int yylineno = 1;
    342  1.1  christos 
    343  1.1  christos extern char *yytext;
    344  1.6  christos #ifdef yytext_ptr
    345  1.6  christos #undef yytext_ptr
    346  1.6  christos #endif
    347  1.1  christos #define yytext_ptr yytext
    348  1.1  christos 
    349  1.1  christos static yy_state_type yy_get_previous_state (void );
    350  1.1  christos static yy_state_type yy_try_NUL_trans (yy_state_type current_state  );
    351  1.1  christos static int yy_get_next_buffer (void );
    352  1.6  christos static void yynoreturn yy_fatal_error (yyconst char* msg  );
    353  1.1  christos 
    354  1.1  christos /* Done after the current pattern has been matched and before the
    355  1.1  christos  * corresponding action - sets up yytext.
    356  1.1  christos  */
    357  1.1  christos #define YY_DO_BEFORE_ACTION \
    358  1.1  christos 	(yytext_ptr) = yy_bp; \
    359  1.6  christos 	yyleng = (int) (yy_cp - yy_bp); \
    360  1.1  christos 	(yy_hold_char) = *yy_cp; \
    361  1.1  christos 	*yy_cp = '\0'; \
    362  1.1  christos 	(yy_c_buf_p) = yy_cp;
    363  1.1  christos 
    364  1.1  christos #define YY_NUM_RULES 25
    365  1.1  christos #define YY_END_OF_BUFFER 26
    366  1.1  christos /* This struct is not used in this scanner,
    367  1.1  christos    but its presence is necessary. */
    368  1.1  christos struct yy_trans_info
    369  1.1  christos 	{
    370  1.1  christos 	flex_int32_t yy_verify;
    371  1.1  christos 	flex_int32_t yy_nxt;
    372  1.1  christos 	};
    373  1.1  christos static yyconst flex_int16_t yy_accept[81] =
    374  1.1  christos     {   0,
    375  1.1  christos         0,    0,   26,   25,    7,    8,    5,   25,    1,    2,
    376  1.1  christos        11,   11,    6,    3,    4,   25,   25,   25,   25,   25,
    377  1.1  christos        25,   25,    0,    9,   11,    0,    6,    0,    0,    0,
    378  1.1  christos         0,    0,    0,    0,    0,    0,    0,   10,    0,    0,
    379  1.1  christos        13,    0,    0,    0,    0,   16,    0,    0,    0,    0,
    380  1.1  christos         0,   12,   15,    0,   23,    0,    0,    0,    0,    0,
    381  1.1  christos         0,   14,   18,    0,    0,    0,    0,    0,   17,    0,
    382  1.1  christos        24,    0,    0,    0,   20,   22,    0,   21,   19,    0
    383  1.1  christos     } ;
    384  1.1  christos 
    385  1.6  christos static yyconst YY_CHAR yy_ec[256] =
    386  1.1  christos     {   0,
    387  1.1  christos         1,    1,    1,    1,    1,    1,    1,    1,    2,    3,
    388  1.1  christos         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
    389  1.1  christos         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
    390  1.1  christos         1,    4,    1,    5,    1,    1,    1,    1,    1,    6,
    391  1.1  christos         7,    1,    1,    1,    1,    1,    1,    8,    9,    9,
    392  1.1  christos         9,    9,    9,    9,    9,    9,    9,    1,   10,    1,
    393  1.1  christos         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
    394  1.1  christos         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
    395  1.1  christos         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
    396  1.1  christos        11,    1,   12,    1,    1,    1,   13,   14,   15,   16,
    397  1.1  christos 
    398  1.1  christos        17,   18,   19,   20,   21,    1,    1,   22,    1,   23,
    399  1.1  christos        24,   25,    1,   26,   27,   28,   29,   30,    1,   31,
    400  1.1  christos        32,   33,    1,    1,    1,    1,    1,    1,    1,    1,
    401  1.1  christos         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
    402  1.1  christos         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
    403  1.1  christos         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
    404  1.1  christos         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
    405  1.1  christos         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
    406  1.1  christos         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
    407  1.1  christos         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
    408  1.1  christos 
    409  1.1  christos         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
    410  1.1  christos         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
    411  1.1  christos         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
    412  1.1  christos         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
    413  1.1  christos         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
    414  1.1  christos         1,    1,    1,    1,    1
    415  1.1  christos     } ;
    416  1.1  christos 
    417  1.6  christos static yyconst YY_CHAR yy_meta[34] =
    418  1.1  christos     {   0,
    419  1.1  christos         1,    1,    2,    1,    1,    1,    1,    3,    3,    1,
    420  1.1  christos         1,    1,    3,    3,    3,    3,    3,    3,    1,    1,
    421  1.1  christos         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
    422  1.1  christos         1,    1,    1
    423  1.1  christos     } ;
    424  1.1  christos 
    425  1.6  christos static yyconst flex_uint16_t yy_base[84] =
    426  1.1  christos     {   0,
    427  1.1  christos         0,    0,  100,  101,  101,  101,  101,   94,  101,  101,
    428  1.1  christos        26,   28,    0,  101,  101,   82,   26,   18,   74,   79,
    429  1.1  christos        78,   81,   88,  101,   32,    0,    0,   76,   65,   62,
    430  1.1  christos        61,   75,   20,   59,   61,   66,   58,    0,   57,   56,
    431  1.1  christos        54,   63,   53,   62,   54,  101,   59,   48,   53,   46,
    432  1.1  christos        59,  101,   44,   43,  101,   41,   55,   46,   53,   44,
    433  1.1  christos        31,  101,  101,   39,   27,   21,   39,   19,  101,   35,
    434  1.1  christos       101,   33,   26,   29,  101,  101,   28,  101,  101,  101,
    435  1.1  christos        58,   61,   41
    436  1.1  christos     } ;
    437  1.1  christos 
    438  1.1  christos static yyconst flex_int16_t yy_def[84] =
    439  1.1  christos     {   0,
    440  1.1  christos        80,    1,   80,   80,   80,   80,   80,   81,   80,   80,
    441  1.1  christos        80,   80,   82,   80,   80,   80,   80,   80,   80,   80,
    442  1.1  christos        80,   80,   81,   80,   80,   83,   82,   80,   80,   80,
    443  1.1  christos        80,   80,   80,   80,   80,   80,   80,   83,   80,   80,
    444  1.1  christos        80,   80,   80,   80,   80,   80,   80,   80,   80,   80,
    445  1.1  christos        80,   80,   80,   80,   80,   80,   80,   80,   80,   80,
    446  1.1  christos        80,   80,   80,   80,   80,   80,   80,   80,   80,   80,
    447  1.1  christos        80,   80,   80,   80,   80,   80,   80,   80,   80,    0,
    448  1.1  christos        80,   80,   80
    449  1.1  christos     } ;
    450  1.1  christos 
    451  1.6  christos static yyconst flex_uint16_t yy_nxt[135] =
    452  1.1  christos     {   0,
    453  1.1  christos         4,    5,    6,    7,    8,    9,   10,   11,   12,   13,
    454  1.1  christos        14,   15,   16,   17,   18,    4,    4,    4,    4,    4,
    455  1.1  christos        19,    4,    4,    4,    4,   20,   21,    4,    4,   22,
    456  1.1  christos         4,    4,    4,   25,   25,   25,   25,   32,   29,   25,
    457  1.1  christos        25,   33,   44,   38,   79,   78,   30,   77,   45,   76,
    458  1.1  christos        75,   74,   73,   72,   71,   70,   26,   31,   23,   23,
    459  1.1  christos        23,   27,   69,   27,   68,   67,   66,   65,   64,   63,
    460  1.1  christos        62,   61,   60,   59,   58,   57,   56,   55,   54,   53,
    461  1.1  christos        52,   51,   50,   49,   48,   47,   46,   43,   42,   41,
    462  1.1  christos        40,   39,   24,   37,   36,   35,   34,   28,   24,   80,
    463  1.1  christos 
    464  1.1  christos         3,   80,   80,   80,   80,   80,   80,   80,   80,   80,
    465  1.1  christos        80,   80,   80,   80,   80,   80,   80,   80,   80,   80,
    466  1.1  christos        80,   80,   80,   80,   80,   80,   80,   80,   80,   80,
    467  1.1  christos        80,   80,   80,   80
    468  1.1  christos     } ;
    469  1.1  christos 
    470  1.1  christos static yyconst flex_int16_t yy_chk[135] =
    471  1.1  christos     {   0,
    472  1.1  christos         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
    473  1.1  christos         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
    474  1.1  christos         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
    475  1.1  christos         1,    1,    1,   11,   11,   12,   12,   18,   17,   25,
    476  1.1  christos        25,   18,   33,   83,   77,   74,   17,   73,   33,   72,
    477  1.1  christos        70,   68,   67,   66,   65,   64,   11,   17,   81,   81,
    478  1.1  christos        81,   82,   61,   82,   60,   59,   58,   57,   56,   54,
    479  1.1  christos        53,   51,   50,   49,   48,   47,   45,   44,   43,   42,
    480  1.1  christos        41,   40,   39,   37,   36,   35,   34,   32,   31,   30,
    481  1.1  christos        29,   28,   23,   22,   21,   20,   19,   16,    8,    3,
    482  1.1  christos 
    483  1.1  christos        80,   80,   80,   80,   80,   80,   80,   80,   80,   80,
    484  1.1  christos        80,   80,   80,   80,   80,   80,   80,   80,   80,   80,
    485  1.1  christos        80,   80,   80,   80,   80,   80,   80,   80,   80,   80,
    486  1.1  christos        80,   80,   80,   80
    487  1.1  christos     } ;
    488  1.1  christos 
    489  1.1  christos static yy_state_type yy_last_accepting_state;
    490  1.1  christos static char *yy_last_accepting_cpos;
    491  1.1  christos 
    492  1.1  christos extern int yy_flex_debug;
    493  1.1  christos int yy_flex_debug = 0;
    494  1.1  christos 
    495  1.1  christos /* The intent behind this definition is that it'll catch
    496  1.1  christos  * any uses of REJECT which flex missed.
    497  1.1  christos  */
    498  1.1  christos #define REJECT reject_used_but_not_detected
    499  1.1  christos #define yymore() yymore_used_but_not_detected
    500  1.1  christos #define YY_MORE_ADJ 0
    501  1.1  christos #define YY_RESTORE_YY_MORE_OFFSET
    502  1.1  christos char *yytext;
    503  1.1  christos #line 1 "syslex.l"
    504  1.1  christos #define YY_NO_INPUT 1
    505  1.1  christos #line 4 "syslex.l"
    506  1.7  christos /* Copyright (C) 2001-2020 Free Software Foundation, Inc.
    507  1.1  christos 
    508  1.1  christos    This file is part of GNU Binutils.
    509  1.1  christos 
    510  1.1  christos    This program is free software; you can redistribute it and/or modify
    511  1.1  christos    it under the terms of the GNU General Public License as published by
    512  1.1  christos    the Free Software Foundation; either version 3, or (at your option)
    513  1.1  christos    any later version.
    514  1.1  christos 
    515  1.1  christos    This program is distributed in the hope that it will be useful,
    516  1.1  christos    but WITHOUT ANY WARRANTY; without even the implied warranty of
    517  1.1  christos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    518  1.1  christos    GNU General Public License for more details.
    519  1.1  christos 
    520  1.1  christos    You should have received a copy of the GNU General Public License
    521  1.1  christos    along with GLD; see the file COPYING.  If not, write to the Free
    522  1.1  christos    Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
    523  1.1  christos    02110-1301, USA.  */
    524  1.1  christos 
    525  1.1  christos /* Note: config.h is #included via syslex_wrap.c.  */
    526  1.1  christos 
    527  1.1  christos #ifdef HAVE_STRING_H
    528  1.1  christos #include <string.h>
    529  1.1  christos #else
    530  1.1  christos #ifdef HAVE_STRINGS_H
    531  1.1  christos #include <strings.h>
    532  1.1  christos #endif
    533  1.1  christos #endif
    534  1.1  christos 
    535  1.1  christos #include "sysinfo.h"
    536  1.1  christos 
    537  1.1  christos #ifndef YY_NO_UNPUT
    538  1.1  christos #define YY_NO_UNPUT
    539  1.1  christos #endif
    540  1.1  christos 
    541  1.1  christos extern int yylex (void);
    542  1.6  christos #line 543 "syslex.c"
    543  1.1  christos 
    544  1.1  christos #define INITIAL 0
    545  1.1  christos 
    546  1.1  christos #ifndef YY_NO_UNISTD_H
    547  1.1  christos /* Special case for "unistd.h", since it is non-ANSI. We include it way
    548  1.1  christos  * down here because we want the user's section 1 to have been scanned first.
    549  1.1  christos  * The user has a chance to override it with an option.
    550  1.1  christos  */
    551  1.1  christos #include <unistd.h>
    552  1.1  christos #endif
    553  1.1  christos 
    554  1.1  christos #ifndef YY_EXTRA_TYPE
    555  1.1  christos #define YY_EXTRA_TYPE void *
    556  1.1  christos #endif
    557  1.1  christos 
    558  1.1  christos static int yy_init_globals (void );
    559  1.1  christos 
    560  1.1  christos /* Accessor methods to globals.
    561  1.1  christos    These are made visible to non-reentrant scanners for convenience. */
    562  1.1  christos 
    563  1.1  christos int yylex_destroy (void );
    564  1.1  christos 
    565  1.1  christos int yyget_debug (void );
    566  1.1  christos 
    567  1.1  christos void yyset_debug (int debug_flag  );
    568  1.1  christos 
    569  1.1  christos YY_EXTRA_TYPE yyget_extra (void );
    570  1.1  christos 
    571  1.1  christos void yyset_extra (YY_EXTRA_TYPE user_defined  );
    572  1.1  christos 
    573  1.1  christos FILE *yyget_in (void );
    574  1.1  christos 
    575  1.6  christos void yyset_in  (FILE * _in_str  );
    576  1.1  christos 
    577  1.1  christos FILE *yyget_out (void );
    578  1.1  christos 
    579  1.6  christos void yyset_out  (FILE * _out_str  );
    580  1.1  christos 
    581  1.6  christos 			int yyget_leng (void );
    582  1.1  christos 
    583  1.1  christos char *yyget_text (void );
    584  1.1  christos 
    585  1.1  christos int yyget_lineno (void );
    586  1.1  christos 
    587  1.6  christos void yyset_lineno (int _line_number  );
    588  1.1  christos 
    589  1.1  christos /* Macros after this point can all be overridden by user definitions in
    590  1.1  christos  * section 1.
    591  1.1  christos  */
    592  1.1  christos 
    593  1.1  christos #ifndef YY_SKIP_YYWRAP
    594  1.1  christos #ifdef __cplusplus
    595  1.1  christos extern "C" int yywrap (void );
    596  1.1  christos #else
    597  1.1  christos extern int yywrap (void );
    598  1.1  christos #endif
    599  1.1  christos #endif
    600  1.1  christos 
    601  1.6  christos #ifndef YY_NO_UNPUT
    602  1.6  christos 
    603  1.6  christos #endif
    604  1.6  christos 
    605  1.1  christos #ifndef yytext_ptr
    606  1.1  christos static void yy_flex_strncpy (char *,yyconst char *,int );
    607  1.1  christos #endif
    608  1.1  christos 
    609  1.1  christos #ifdef YY_NEED_STRLEN
    610  1.1  christos static int yy_flex_strlen (yyconst char * );
    611  1.1  christos #endif
    612  1.1  christos 
    613  1.1  christos #ifndef YY_NO_INPUT
    614  1.1  christos 
    615  1.1  christos #ifdef __cplusplus
    616  1.1  christos static int yyinput (void );
    617  1.1  christos #else
    618  1.1  christos static int input (void );
    619  1.1  christos #endif
    620  1.1  christos 
    621  1.1  christos #endif
    622  1.1  christos 
    623  1.1  christos /* Amount of stuff to slurp up with each read. */
    624  1.1  christos #ifndef YY_READ_BUF_SIZE
    625  1.6  christos #ifdef __ia64__
    626  1.6  christos /* On IA-64, the buffer size is 16k, not 8k */
    627  1.6  christos #define YY_READ_BUF_SIZE 16384
    628  1.6  christos #else
    629  1.1  christos #define YY_READ_BUF_SIZE 8192
    630  1.6  christos #endif /* __ia64__ */
    631  1.1  christos #endif
    632  1.1  christos 
    633  1.1  christos /* Copy whatever the last rule matched to the standard output. */
    634  1.1  christos #ifndef ECHO
    635  1.1  christos /* This used to be an fputs(), but since the string might contain NUL's,
    636  1.1  christos  * we now use fwrite().
    637  1.1  christos  */
    638  1.6  christos #define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
    639  1.1  christos #endif
    640  1.1  christos 
    641  1.1  christos /* Gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
    642  1.1  christos  * is returned in "result".
    643  1.1  christos  */
    644  1.1  christos #ifndef YY_INPUT
    645  1.1  christos #define YY_INPUT(buf,result,max_size) \
    646  1.1  christos 	if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
    647  1.1  christos 		{ \
    648  1.1  christos 		int c = '*'; \
    649  1.6  christos 		int n; \
    650  1.1  christos 		for ( n = 0; n < max_size && \
    651  1.1  christos 			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
    652  1.1  christos 			buf[n] = (char) c; \
    653  1.1  christos 		if ( c == '\n' ) \
    654  1.1  christos 			buf[n++] = (char) c; \
    655  1.1  christos 		if ( c == EOF && ferror( yyin ) ) \
    656  1.1  christos 			YY_FATAL_ERROR( "input in flex scanner failed" ); \
    657  1.1  christos 		result = n; \
    658  1.1  christos 		} \
    659  1.1  christos 	else \
    660  1.1  christos 		{ \
    661  1.1  christos 		errno=0; \
    662  1.6  christos 		while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
    663  1.1  christos 			{ \
    664  1.1  christos 			if( errno != EINTR) \
    665  1.1  christos 				{ \
    666  1.1  christos 				YY_FATAL_ERROR( "input in flex scanner failed" ); \
    667  1.1  christos 				break; \
    668  1.1  christos 				} \
    669  1.1  christos 			errno=0; \
    670  1.1  christos 			clearerr(yyin); \
    671  1.1  christos 			} \
    672  1.1  christos 		}\
    673  1.1  christos \
    674  1.1  christos 
    675  1.1  christos #endif
    676  1.1  christos 
    677  1.1  christos /* No semi-colon after return; correct usage is to write "yyterminate();" -
    678  1.1  christos  * we don't want an extra ';' after the "return" because that will cause
    679  1.1  christos  * some compilers to complain about unreachable statements.
    680  1.1  christos  */
    681  1.1  christos #ifndef yyterminate
    682  1.1  christos #define yyterminate() return YY_NULL
    683  1.1  christos #endif
    684  1.1  christos 
    685  1.1  christos /* Number of entries by which start-condition stack grows. */
    686  1.1  christos #ifndef YY_START_STACK_INCR
    687  1.1  christos #define YY_START_STACK_INCR 25
    688  1.1  christos #endif
    689  1.1  christos 
    690  1.1  christos /* Report a fatal error. */
    691  1.1  christos #ifndef YY_FATAL_ERROR
    692  1.1  christos #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
    693  1.1  christos #endif
    694  1.1  christos 
    695  1.1  christos /* end tables serialization structures and prototypes */
    696  1.1  christos 
    697  1.1  christos /* Default declaration of generated scanner - a define so the user can
    698  1.1  christos  * easily add parameters.
    699  1.1  christos  */
    700  1.1  christos #ifndef YY_DECL
    701  1.1  christos #define YY_DECL_IS_OURS 1
    702  1.1  christos 
    703  1.1  christos extern int yylex (void);
    704  1.1  christos 
    705  1.1  christos #define YY_DECL int yylex (void)
    706  1.1  christos #endif /* !YY_DECL */
    707  1.1  christos 
    708  1.1  christos /* Code executed at the beginning of each rule, after yytext and yyleng
    709  1.1  christos  * have been set up.
    710  1.1  christos  */
    711  1.1  christos #ifndef YY_USER_ACTION
    712  1.1  christos #define YY_USER_ACTION
    713  1.1  christos #endif
    714  1.1  christos 
    715  1.1  christos /* Code executed at the end of each rule. */
    716  1.1  christos #ifndef YY_BREAK
    717  1.6  christos #define YY_BREAK /*LINTED*/break;
    718  1.1  christos #endif
    719  1.1  christos 
    720  1.1  christos #define YY_RULE_SETUP \
    721  1.1  christos 	YY_USER_ACTION
    722  1.1  christos 
    723  1.1  christos /** The main scanner function which does all the work.
    724  1.1  christos  */
    725  1.1  christos YY_DECL
    726  1.1  christos {
    727  1.6  christos 	yy_state_type yy_current_state;
    728  1.6  christos 	char *yy_cp, *yy_bp;
    729  1.6  christos 	int yy_act;
    730  1.1  christos 
    731  1.1  christos 	if ( !(yy_init) )
    732  1.1  christos 		{
    733  1.1  christos 		(yy_init) = 1;
    734  1.1  christos 
    735  1.1  christos #ifdef YY_USER_INIT
    736  1.1  christos 		YY_USER_INIT;
    737  1.1  christos #endif
    738  1.1  christos 
    739  1.1  christos 		if ( ! (yy_start) )
    740  1.1  christos 			(yy_start) = 1;	/* first start state */
    741  1.1  christos 
    742  1.1  christos 		if ( ! yyin )
    743  1.1  christos 			yyin = stdin;
    744  1.1  christos 
    745  1.1  christos 		if ( ! yyout )
    746  1.1  christos 			yyout = stdout;
    747  1.1  christos 
    748  1.1  christos 		if ( ! YY_CURRENT_BUFFER ) {
    749  1.1  christos 			yyensure_buffer_stack ();
    750  1.1  christos 			YY_CURRENT_BUFFER_LVALUE =
    751  1.1  christos 				yy_create_buffer(yyin,YY_BUF_SIZE );
    752  1.1  christos 		}
    753  1.1  christos 
    754  1.1  christos 		yy_load_buffer_state( );
    755  1.1  christos 		}
    756  1.1  christos 
    757  1.6  christos 	{
    758  1.6  christos #line 41 "syslex.l"
    759  1.6  christos 
    760  1.6  christos #line 761 "syslex.c"
    761  1.6  christos 
    762  1.6  christos 	while ( /*CONSTCOND*/1 )		/* loops until end-of-file is reached */
    763  1.1  christos 		{
    764  1.1  christos 		yy_cp = (yy_c_buf_p);
    765  1.1  christos 
    766  1.1  christos 		/* Support of yytext. */
    767  1.1  christos 		*yy_cp = (yy_hold_char);
    768  1.1  christos 
    769  1.1  christos 		/* yy_bp points to the position in yy_ch_buf of the start of
    770  1.1  christos 		 * the current run.
    771  1.1  christos 		 */
    772  1.1  christos 		yy_bp = yy_cp;
    773  1.1  christos 
    774  1.1  christos 		yy_current_state = (yy_start);
    775  1.1  christos yy_match:
    776  1.1  christos 		do
    777  1.1  christos 			{
    778  1.6  christos 			YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
    779  1.1  christos 			if ( yy_accept[yy_current_state] )
    780  1.1  christos 				{
    781  1.1  christos 				(yy_last_accepting_state) = yy_current_state;
    782  1.1  christos 				(yy_last_accepting_cpos) = yy_cp;
    783  1.1  christos 				}
    784  1.1  christos 			while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
    785  1.1  christos 				{
    786  1.1  christos 				yy_current_state = (int) yy_def[yy_current_state];
    787  1.1  christos 				if ( yy_current_state >= 81 )
    788  1.1  christos 					yy_c = yy_meta[(unsigned int) yy_c];
    789  1.1  christos 				}
    790  1.6  christos 			yy_current_state = yy_nxt[yy_base[yy_current_state] + (flex_int16_t) yy_c];
    791  1.1  christos 			++yy_cp;
    792  1.1  christos 			}
    793  1.1  christos 		while ( yy_base[yy_current_state] != 101 );
    794  1.1  christos 
    795  1.1  christos yy_find_action:
    796  1.1  christos 		yy_act = yy_accept[yy_current_state];
    797  1.1  christos 		if ( yy_act == 0 )
    798  1.1  christos 			{ /* have to back up */
    799  1.1  christos 			yy_cp = (yy_last_accepting_cpos);
    800  1.1  christos 			yy_current_state = (yy_last_accepting_state);
    801  1.1  christos 			yy_act = yy_accept[yy_current_state];
    802  1.1  christos 			}
    803  1.1  christos 
    804  1.1  christos 		YY_DO_BEFORE_ACTION;
    805  1.1  christos 
    806  1.1  christos do_action:	/* This label is used only to access EOF actions. */
    807  1.1  christos 
    808  1.1  christos 		switch ( yy_act )
    809  1.1  christos 	{ /* beginning of action switch */
    810  1.1  christos 			case 0: /* must back up */
    811  1.1  christos 			/* undo the effects of YY_DO_BEFORE_ACTION */
    812  1.1  christos 			*yy_cp = (yy_hold_char);
    813  1.1  christos 			yy_cp = (yy_last_accepting_cpos);
    814  1.1  christos 			yy_current_state = (yy_last_accepting_state);
    815  1.1  christos 			goto yy_find_action;
    816  1.1  christos 
    817  1.1  christos case 1:
    818  1.1  christos YY_RULE_SETUP
    819  1.6  christos #line 42 "syslex.l"
    820  1.1  christos { return '(';}
    821  1.1  christos 	YY_BREAK
    822  1.1  christos case 2:
    823  1.1  christos YY_RULE_SETUP
    824  1.6  christos #line 43 "syslex.l"
    825  1.1  christos { return ')';}
    826  1.1  christos 	YY_BREAK
    827  1.1  christos case 3:
    828  1.1  christos YY_RULE_SETUP
    829  1.6  christos #line 44 "syslex.l"
    830  1.1  christos { return '[';}
    831  1.1  christos 	YY_BREAK
    832  1.1  christos case 4:
    833  1.1  christos YY_RULE_SETUP
    834  1.6  christos #line 45 "syslex.l"
    835  1.1  christos { return ']';}
    836  1.1  christos 	YY_BREAK
    837  1.1  christos case 5:
    838  1.1  christos YY_RULE_SETUP
    839  1.6  christos #line 46 "syslex.l"
    840  1.1  christos { ; }
    841  1.1  christos 	YY_BREAK
    842  1.1  christos case 6:
    843  1.1  christos YY_RULE_SETUP
    844  1.6  christos #line 47 "syslex.l"
    845  1.3  christos { ; }
    846  1.1  christos 	YY_BREAK
    847  1.1  christos case 7:
    848  1.1  christos YY_RULE_SETUP
    849  1.6  christos #line 48 "syslex.l"
    850  1.1  christos { ; }
    851  1.1  christos 	YY_BREAK
    852  1.1  christos case 8:
    853  1.1  christos /* rule 8 can match eol */
    854  1.1  christos YY_RULE_SETUP
    855  1.6  christos #line 49 "syslex.l"
    856  1.1  christos { ; }
    857  1.1  christos 	YY_BREAK
    858  1.1  christos case 9:
    859  1.1  christos /* rule 9 can match eol */
    860  1.1  christos YY_RULE_SETUP
    861  1.6  christos #line 50 "syslex.l"
    862  1.1  christos {
    863  1.1  christos 	yylval.s = malloc (yyleng - 1);
    864  1.1  christos 	memcpy (yylval.s, yytext + 1, yyleng - 2);
    865  1.1  christos 	yylval.s[yyleng - 2] = '\0';
    866  1.1  christos         return NAME;
    867  1.1  christos 	}
    868  1.1  christos 	YY_BREAK
    869  1.1  christos case 10:
    870  1.1  christos YY_RULE_SETUP
    871  1.6  christos #line 57 "syslex.l"
    872  1.1  christos {
    873  1.1  christos         yylval.i = strtol(yytext,0,16);
    874  1.1  christos 	return  NUMBER;
    875  1.1  christos 	}
    876  1.1  christos 	YY_BREAK
    877  1.1  christos case 11:
    878  1.1  christos YY_RULE_SETUP
    879  1.6  christos #line 62 "syslex.l"
    880  1.1  christos {
    881  1.1  christos         yylval.i = atoi(yytext);
    882  1.1  christos 	return  NUMBER;
    883  1.1  christos 	}
    884  1.1  christos 	YY_BREAK
    885  1.1  christos case 12:
    886  1.1  christos YY_RULE_SETUP
    887  1.6  christos #line 68 "syslex.l"
    888  1.1  christos { yylval.i =1 ;return UNIT;}
    889  1.1  christos 	YY_BREAK
    890  1.1  christos case 13:
    891  1.1  christos YY_RULE_SETUP
    892  1.6  christos #line 69 "syslex.l"
    893  1.1  christos { yylval.i = 1; return UNIT;}
    894  1.1  christos 	YY_BREAK
    895  1.1  christos case 14:
    896  1.1  christos YY_RULE_SETUP
    897  1.6  christos #line 70 "syslex.l"
    898  1.1  christos { yylval.i= 8; return UNIT;}
    899  1.1  christos 	YY_BREAK
    900  1.1  christos case 15:
    901  1.1  christos YY_RULE_SETUP
    902  1.6  christos #line 71 "syslex.l"
    903  1.1  christos { yylval.i = 8; return UNIT;}
    904  1.1  christos 	YY_BREAK
    905  1.1  christos case 16:
    906  1.1  christos YY_RULE_SETUP
    907  1.6  christos #line 73 "syslex.l"
    908  1.1  christos { yylval.s = "INT"; return TYPE;}
    909  1.1  christos 	YY_BREAK
    910  1.1  christos case 17:
    911  1.1  christos YY_RULE_SETUP
    912  1.6  christos #line 74 "syslex.l"
    913  1.1  christos { yylval.s = "BARRAY"; return TYPE;}
    914  1.1  christos 	YY_BREAK
    915  1.1  christos case 18:
    916  1.1  christos YY_RULE_SETUP
    917  1.6  christos #line 75 "syslex.l"
    918  1.1  christos { yylval.s = "CHARS"; return TYPE;}
    919  1.1  christos 	YY_BREAK
    920  1.1  christos case 19:
    921  1.1  christos YY_RULE_SETUP
    922  1.6  christos #line 76 "syslex.l"
    923  1.1  christos { yylval.i = 0; return NUMBER;}
    924  1.1  christos 	YY_BREAK
    925  1.1  christos case 20:
    926  1.1  christos YY_RULE_SETUP
    927  1.6  christos #line 77 "syslex.l"
    928  1.1  christos { yylval.i = -4; return NUMBER;}
    929  1.1  christos 	YY_BREAK
    930  1.1  christos case 21:
    931  1.1  christos YY_RULE_SETUP
    932  1.6  christos #line 78 "syslex.l"
    933  1.1  christos { yylval.i = -2; return NUMBER; }
    934  1.1  christos 	YY_BREAK
    935  1.1  christos case 22:
    936  1.1  christos YY_RULE_SETUP
    937  1.6  christos #line 79 "syslex.l"
    938  1.1  christos { yylval.i = -1; return NUMBER; }
    939  1.1  christos 	YY_BREAK
    940  1.1  christos case 23:
    941  1.1  christos YY_RULE_SETUP
    942  1.6  christos #line 80 "syslex.l"
    943  1.1  christos { return COND;}
    944  1.1  christos 	YY_BREAK
    945  1.1  christos case 24:
    946  1.1  christos YY_RULE_SETUP
    947  1.6  christos #line 81 "syslex.l"
    948  1.1  christos { return REPEAT;}
    949  1.1  christos 	YY_BREAK
    950  1.1  christos case 25:
    951  1.1  christos YY_RULE_SETUP
    952  1.6  christos #line 82 "syslex.l"
    953  1.1  christos ECHO;
    954  1.1  christos 	YY_BREAK
    955  1.6  christos #line 956 "syslex.c"
    956  1.1  christos case YY_STATE_EOF(INITIAL):
    957  1.1  christos 	yyterminate();
    958  1.1  christos 
    959  1.1  christos 	case YY_END_OF_BUFFER:
    960  1.1  christos 		{
    961  1.1  christos 		/* Amount of text matched not including the EOB char. */
    962  1.1  christos 		int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
    963  1.1  christos 
    964  1.1  christos 		/* Undo the effects of YY_DO_BEFORE_ACTION. */
    965  1.1  christos 		*yy_cp = (yy_hold_char);
    966  1.1  christos 		YY_RESTORE_YY_MORE_OFFSET
    967  1.1  christos 
    968  1.1  christos 		if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
    969  1.1  christos 			{
    970  1.1  christos 			/* We're scanning a new file or input source.  It's
    971  1.1  christos 			 * possible that this happened because the user
    972  1.1  christos 			 * just pointed yyin at a new source and called
    973  1.1  christos 			 * yylex().  If so, then we have to assure
    974  1.1  christos 			 * consistency between YY_CURRENT_BUFFER and our
    975  1.1  christos 			 * globals.  Here is the right place to do so, because
    976  1.1  christos 			 * this is the first action (other than possibly a
    977  1.1  christos 			 * back-up) that will match for the new input source.
    978  1.1  christos 			 */
    979  1.1  christos 			(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
    980  1.1  christos 			YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
    981  1.1  christos 			YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
    982  1.1  christos 			}
    983  1.1  christos 
    984  1.1  christos 		/* Note that here we test for yy_c_buf_p "<=" to the position
    985  1.1  christos 		 * of the first EOB in the buffer, since yy_c_buf_p will
    986  1.1  christos 		 * already have been incremented past the NUL character
    987  1.1  christos 		 * (since all states make transitions on EOB to the
    988  1.1  christos 		 * end-of-buffer state).  Contrast this with the test
    989  1.1  christos 		 * in input().
    990  1.1  christos 		 */
    991  1.1  christos 		if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
    992  1.1  christos 			{ /* This was really a NUL. */
    993  1.1  christos 			yy_state_type yy_next_state;
    994  1.1  christos 
    995  1.1  christos 			(yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
    996  1.1  christos 
    997  1.1  christos 			yy_current_state = yy_get_previous_state(  );
    998  1.1  christos 
    999  1.1  christos 			/* Okay, we're now positioned to make the NUL
   1000  1.1  christos 			 * transition.  We couldn't have
   1001  1.1  christos 			 * yy_get_previous_state() go ahead and do it
   1002  1.1  christos 			 * for us because it doesn't know how to deal
   1003  1.1  christos 			 * with the possibility of jamming (and we don't
   1004  1.1  christos 			 * want to build jamming into it because then it
   1005  1.1  christos 			 * will run more slowly).
   1006  1.1  christos 			 */
   1007  1.1  christos 
   1008  1.1  christos 			yy_next_state = yy_try_NUL_trans( yy_current_state );
   1009  1.1  christos 
   1010  1.1  christos 			yy_bp = (yytext_ptr) + YY_MORE_ADJ;
   1011  1.1  christos 
   1012  1.1  christos 			if ( yy_next_state )
   1013  1.1  christos 				{
   1014  1.1  christos 				/* Consume the NUL. */
   1015  1.1  christos 				yy_cp = ++(yy_c_buf_p);
   1016  1.1  christos 				yy_current_state = yy_next_state;
   1017  1.1  christos 				goto yy_match;
   1018  1.1  christos 				}
   1019  1.1  christos 
   1020  1.1  christos 			else
   1021  1.1  christos 				{
   1022  1.1  christos 				yy_cp = (yy_c_buf_p);
   1023  1.1  christos 				goto yy_find_action;
   1024  1.1  christos 				}
   1025  1.1  christos 			}
   1026  1.1  christos 
   1027  1.1  christos 		else switch ( yy_get_next_buffer(  ) )
   1028  1.1  christos 			{
   1029  1.1  christos 			case EOB_ACT_END_OF_FILE:
   1030  1.1  christos 				{
   1031  1.1  christos 				(yy_did_buffer_switch_on_eof) = 0;
   1032  1.1  christos 
   1033  1.1  christos 				if ( yywrap( ) )
   1034  1.1  christos 					{
   1035  1.1  christos 					/* Note: because we've taken care in
   1036  1.1  christos 					 * yy_get_next_buffer() to have set up
   1037  1.1  christos 					 * yytext, we can now set up
   1038  1.1  christos 					 * yy_c_buf_p so that if some total
   1039  1.1  christos 					 * hoser (like flex itself) wants to
   1040  1.1  christos 					 * call the scanner after we return the
   1041  1.1  christos 					 * YY_NULL, it'll still work - another
   1042  1.1  christos 					 * YY_NULL will get returned.
   1043  1.1  christos 					 */
   1044  1.1  christos 					(yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
   1045  1.1  christos 
   1046  1.1  christos 					yy_act = YY_STATE_EOF(YY_START);
   1047  1.1  christos 					goto do_action;
   1048  1.1  christos 					}
   1049  1.1  christos 
   1050  1.1  christos 				else
   1051  1.1  christos 					{
   1052  1.1  christos 					if ( ! (yy_did_buffer_switch_on_eof) )
   1053  1.1  christos 						YY_NEW_FILE;
   1054  1.1  christos 					}
   1055  1.1  christos 				break;
   1056  1.1  christos 				}
   1057  1.1  christos 
   1058  1.1  christos 			case EOB_ACT_CONTINUE_SCAN:
   1059  1.1  christos 				(yy_c_buf_p) =
   1060  1.1  christos 					(yytext_ptr) + yy_amount_of_matched_text;
   1061  1.1  christos 
   1062  1.1  christos 				yy_current_state = yy_get_previous_state(  );
   1063  1.1  christos 
   1064  1.1  christos 				yy_cp = (yy_c_buf_p);
   1065  1.1  christos 				yy_bp = (yytext_ptr) + YY_MORE_ADJ;
   1066  1.1  christos 				goto yy_match;
   1067  1.1  christos 
   1068  1.1  christos 			case EOB_ACT_LAST_MATCH:
   1069  1.1  christos 				(yy_c_buf_p) =
   1070  1.1  christos 				&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
   1071  1.1  christos 
   1072  1.1  christos 				yy_current_state = yy_get_previous_state(  );
   1073  1.1  christos 
   1074  1.1  christos 				yy_cp = (yy_c_buf_p);
   1075  1.1  christos 				yy_bp = (yytext_ptr) + YY_MORE_ADJ;
   1076  1.1  christos 				goto yy_find_action;
   1077  1.1  christos 			}
   1078  1.1  christos 		break;
   1079  1.1  christos 		}
   1080  1.1  christos 
   1081  1.1  christos 	default:
   1082  1.1  christos 		YY_FATAL_ERROR(
   1083  1.1  christos 			"fatal flex scanner internal error--no action found" );
   1084  1.1  christos 	} /* end of action switch */
   1085  1.1  christos 		} /* end of scanning one token */
   1086  1.6  christos 	} /* end of user's declarations */
   1087  1.1  christos } /* end of yylex */
   1088  1.1  christos 
   1089  1.1  christos /* yy_get_next_buffer - try to read in a new buffer
   1090  1.1  christos  *
   1091  1.1  christos  * Returns a code representing an action:
   1092  1.1  christos  *	EOB_ACT_LAST_MATCH -
   1093  1.1  christos  *	EOB_ACT_CONTINUE_SCAN - continue scanning from current position
   1094  1.1  christos  *	EOB_ACT_END_OF_FILE - end of file
   1095  1.1  christos  */
   1096  1.1  christos static int yy_get_next_buffer (void)
   1097  1.1  christos {
   1098  1.6  christos     	char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
   1099  1.6  christos 	char *source = (yytext_ptr);
   1100  1.6  christos 	yy_size_t number_to_move, i;
   1101  1.1  christos 	int ret_val;
   1102  1.1  christos 
   1103  1.1  christos 	if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
   1104  1.1  christos 		YY_FATAL_ERROR(
   1105  1.1  christos 		"fatal flex scanner internal error--end of buffer missed" );
   1106  1.1  christos 
   1107  1.1  christos 	if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
   1108  1.1  christos 		{ /* Don't try to fill the buffer, so this is an EOF. */
   1109  1.1  christos 		if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
   1110  1.1  christos 			{
   1111  1.1  christos 			/* We matched a single character, the EOB, so
   1112  1.1  christos 			 * treat this as a final EOF.
   1113  1.1  christos 			 */
   1114  1.1  christos 			return EOB_ACT_END_OF_FILE;
   1115  1.1  christos 			}
   1116  1.1  christos 
   1117  1.1  christos 		else
   1118  1.1  christos 			{
   1119  1.1  christos 			/* We matched some text prior to the EOB, first
   1120  1.1  christos 			 * process it.
   1121  1.1  christos 			 */
   1122  1.1  christos 			return EOB_ACT_LAST_MATCH;
   1123  1.1  christos 			}
   1124  1.1  christos 		}
   1125  1.1  christos 
   1126  1.1  christos 	/* Try to read more data. */
   1127  1.1  christos 
   1128  1.1  christos 	/* First move last chars to start of buffer. */
   1129  1.6  christos 	number_to_move = (yy_size_t) ((yy_c_buf_p) - (yytext_ptr)) - 1;
   1130  1.1  christos 
   1131  1.1  christos 	for ( i = 0; i < number_to_move; ++i )
   1132  1.1  christos 		*(dest++) = *(source++);
   1133  1.1  christos 
   1134  1.1  christos 	if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
   1135  1.1  christos 		/* don't do the read, it's not guaranteed to return an EOF,
   1136  1.1  christos 		 * just force an EOF
   1137  1.1  christos 		 */
   1138  1.1  christos 		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
   1139  1.1  christos 
   1140  1.1  christos 	else
   1141  1.1  christos 		{
   1142  1.6  christos 			int num_to_read =
   1143  1.1  christos 			YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
   1144  1.1  christos 
   1145  1.1  christos 		while ( num_to_read <= 0 )
   1146  1.1  christos 			{ /* Not enough room in the buffer - grow it. */
   1147  1.1  christos 
   1148  1.1  christos 			/* just a shorter name for the current buffer */
   1149  1.6  christos 			YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
   1150  1.1  christos 
   1151  1.1  christos 			int yy_c_buf_p_offset =
   1152  1.1  christos 				(int) ((yy_c_buf_p) - b->yy_ch_buf);
   1153  1.1  christos 
   1154  1.1  christos 			if ( b->yy_is_our_buffer )
   1155  1.1  christos 				{
   1156  1.6  christos 				int new_size = b->yy_buf_size * 2;
   1157  1.1  christos 
   1158  1.1  christos 				if ( new_size <= 0 )
   1159  1.1  christos 					b->yy_buf_size += b->yy_buf_size / 8;
   1160  1.1  christos 				else
   1161  1.1  christos 					b->yy_buf_size *= 2;
   1162  1.1  christos 
   1163  1.1  christos 				b->yy_ch_buf = (char *)
   1164  1.1  christos 					/* Include room in for 2 EOB chars. */
   1165  1.6  christos 					yyrealloc((void *) b->yy_ch_buf,(yy_size_t) (b->yy_buf_size + 2)  );
   1166  1.1  christos 				}
   1167  1.1  christos 			else
   1168  1.1  christos 				/* Can't grow it, we don't own it. */
   1169  1.6  christos 				b->yy_ch_buf = NULL;
   1170  1.1  christos 
   1171  1.1  christos 			if ( ! b->yy_ch_buf )
   1172  1.1  christos 				YY_FATAL_ERROR(
   1173  1.1  christos 				"fatal error - scanner input buffer overflow" );
   1174  1.1  christos 
   1175  1.1  christos 			(yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
   1176  1.1  christos 
   1177  1.1  christos 			num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
   1178  1.1  christos 						number_to_move - 1;
   1179  1.1  christos 
   1180  1.1  christos 			}
   1181  1.1  christos 
   1182  1.1  christos 		if ( num_to_read > YY_READ_BUF_SIZE )
   1183  1.1  christos 			num_to_read = YY_READ_BUF_SIZE;
   1184  1.1  christos 
   1185  1.1  christos 		/* Read in more data. */
   1186  1.1  christos 		YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
   1187  1.3  christos 			(yy_n_chars), num_to_read );
   1188  1.1  christos 
   1189  1.1  christos 		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
   1190  1.1  christos 		}
   1191  1.1  christos 
   1192  1.1  christos 	if ( (yy_n_chars) == 0 )
   1193  1.1  christos 		{
   1194  1.1  christos 		if ( number_to_move == YY_MORE_ADJ )
   1195  1.1  christos 			{
   1196  1.1  christos 			ret_val = EOB_ACT_END_OF_FILE;
   1197  1.1  christos 			yyrestart(yyin  );
   1198  1.1  christos 			}
   1199  1.1  christos 
   1200  1.1  christos 		else
   1201  1.1  christos 			{
   1202  1.1  christos 			ret_val = EOB_ACT_LAST_MATCH;
   1203  1.1  christos 			YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
   1204  1.1  christos 				YY_BUFFER_EOF_PENDING;
   1205  1.1  christos 			}
   1206  1.1  christos 		}
   1207  1.1  christos 
   1208  1.1  christos 	else
   1209  1.1  christos 		ret_val = EOB_ACT_CONTINUE_SCAN;
   1210  1.1  christos 
   1211  1.6  christos 	if ((int) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
   1212  1.1  christos 		/* Extend the array by 50%, plus the number we really need. */
   1213  1.6  christos 		int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
   1214  1.6  christos 		YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,(yy_size_t) new_size  );
   1215  1.1  christos 		if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
   1216  1.1  christos 			YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
   1217  1.1  christos 	}
   1218  1.1  christos 
   1219  1.1  christos 	(yy_n_chars) += number_to_move;
   1220  1.1  christos 	YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
   1221  1.1  christos 	YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
   1222  1.1  christos 
   1223  1.1  christos 	(yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
   1224  1.1  christos 
   1225  1.1  christos 	return ret_val;
   1226  1.1  christos }
   1227  1.1  christos 
   1228  1.1  christos /* yy_get_previous_state - get the state just before the EOB char was reached */
   1229  1.1  christos 
   1230  1.1  christos     static yy_state_type yy_get_previous_state (void)
   1231  1.1  christos {
   1232  1.6  christos 	yy_state_type yy_current_state;
   1233  1.6  christos 	char *yy_cp;
   1234  1.1  christos 
   1235  1.1  christos 	yy_current_state = (yy_start);
   1236  1.1  christos 
   1237  1.1  christos 	for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
   1238  1.1  christos 		{
   1239  1.6  christos 		YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
   1240  1.1  christos 		if ( yy_accept[yy_current_state] )
   1241  1.1  christos 			{
   1242  1.1  christos 			(yy_last_accepting_state) = yy_current_state;
   1243  1.1  christos 			(yy_last_accepting_cpos) = yy_cp;
   1244  1.1  christos 			}
   1245  1.1  christos 		while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
   1246  1.1  christos 			{
   1247  1.1  christos 			yy_current_state = (int) yy_def[yy_current_state];
   1248  1.1  christos 			if ( yy_current_state >= 81 )
   1249  1.1  christos 				yy_c = yy_meta[(unsigned int) yy_c];
   1250  1.1  christos 			}
   1251  1.6  christos 		yy_current_state = yy_nxt[yy_base[yy_current_state] + (flex_int16_t) yy_c];
   1252  1.1  christos 		}
   1253  1.1  christos 
   1254  1.1  christos 	return yy_current_state;
   1255  1.1  christos }
   1256  1.1  christos 
   1257  1.1  christos /* yy_try_NUL_trans - try to make a transition on the NUL character
   1258  1.1  christos  *
   1259  1.1  christos  * synopsis
   1260  1.1  christos  *	next_state = yy_try_NUL_trans( current_state );
   1261  1.1  christos  */
   1262  1.1  christos     static yy_state_type yy_try_NUL_trans  (yy_state_type yy_current_state )
   1263  1.1  christos {
   1264  1.6  christos 	int yy_is_jam;
   1265  1.6  christos     	char *yy_cp = (yy_c_buf_p);
   1266  1.1  christos 
   1267  1.6  christos 	YY_CHAR yy_c = 1;
   1268  1.1  christos 	if ( yy_accept[yy_current_state] )
   1269  1.1  christos 		{
   1270  1.1  christos 		(yy_last_accepting_state) = yy_current_state;
   1271  1.1  christos 		(yy_last_accepting_cpos) = yy_cp;
   1272  1.1  christos 		}
   1273  1.1  christos 	while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
   1274  1.1  christos 		{
   1275  1.1  christos 		yy_current_state = (int) yy_def[yy_current_state];
   1276  1.1  christos 		if ( yy_current_state >= 81 )
   1277  1.1  christos 			yy_c = yy_meta[(unsigned int) yy_c];
   1278  1.1  christos 		}
   1279  1.6  christos 	yy_current_state = yy_nxt[yy_base[yy_current_state] + (flex_int16_t) yy_c];
   1280  1.1  christos 	yy_is_jam = (yy_current_state == 80);
   1281  1.1  christos 
   1282  1.6  christos 		return yy_is_jam ? 0 : yy_current_state;
   1283  1.1  christos }
   1284  1.1  christos 
   1285  1.6  christos #ifndef YY_NO_UNPUT
   1286  1.6  christos 
   1287  1.6  christos #endif
   1288  1.6  christos 
   1289  1.1  christos #ifndef YY_NO_INPUT
   1290  1.1  christos #ifdef __cplusplus
   1291  1.1  christos     static int yyinput (void)
   1292  1.1  christos #else
   1293  1.1  christos     static int input  (void)
   1294  1.1  christos #endif
   1295  1.1  christos 
   1296  1.1  christos {
   1297  1.1  christos 	int c;
   1298  1.1  christos 
   1299  1.1  christos 	*(yy_c_buf_p) = (yy_hold_char);
   1300  1.1  christos 
   1301  1.1  christos 	if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
   1302  1.1  christos 		{
   1303  1.1  christos 		/* yy_c_buf_p now points to the character we want to return.
   1304  1.1  christos 		 * If this occurs *before* the EOB characters, then it's a
   1305  1.1  christos 		 * valid NUL; if not, then we've hit the end of the buffer.
   1306  1.1  christos 		 */
   1307  1.1  christos 		if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
   1308  1.1  christos 			/* This was really a NUL. */
   1309  1.1  christos 			*(yy_c_buf_p) = '\0';
   1310  1.1  christos 
   1311  1.1  christos 		else
   1312  1.1  christos 			{ /* need more input */
   1313  1.6  christos 			int offset = (yy_c_buf_p) - (yytext_ptr);
   1314  1.1  christos 			++(yy_c_buf_p);
   1315  1.1  christos 
   1316  1.1  christos 			switch ( yy_get_next_buffer(  ) )
   1317  1.1  christos 				{
   1318  1.1  christos 				case EOB_ACT_LAST_MATCH:
   1319  1.1  christos 					/* This happens because yy_g_n_b()
   1320  1.1  christos 					 * sees that we've accumulated a
   1321  1.1  christos 					 * token and flags that we need to
   1322  1.1  christos 					 * try matching the token before
   1323  1.1  christos 					 * proceeding.  But for input(),
   1324  1.1  christos 					 * there's no matching to consider.
   1325  1.1  christos 					 * So convert the EOB_ACT_LAST_MATCH
   1326  1.1  christos 					 * to EOB_ACT_END_OF_FILE.
   1327  1.1  christos 					 */
   1328  1.1  christos 
   1329  1.1  christos 					/* Reset buffer status. */
   1330  1.1  christos 					yyrestart(yyin );
   1331  1.1  christos 
   1332  1.1  christos 					/*FALLTHROUGH*/
   1333  1.1  christos 
   1334  1.1  christos 				case EOB_ACT_END_OF_FILE:
   1335  1.1  christos 					{
   1336  1.1  christos 					if ( yywrap( ) )
   1337  1.3  christos 						return 0;
   1338  1.1  christos 
   1339  1.1  christos 					if ( ! (yy_did_buffer_switch_on_eof) )
   1340  1.1  christos 						YY_NEW_FILE;
   1341  1.1  christos #ifdef __cplusplus
   1342  1.1  christos 					return yyinput();
   1343  1.1  christos #else
   1344  1.1  christos 					return input();
   1345  1.1  christos #endif
   1346  1.1  christos 					}
   1347  1.1  christos 
   1348  1.1  christos 				case EOB_ACT_CONTINUE_SCAN:
   1349  1.1  christos 					(yy_c_buf_p) = (yytext_ptr) + offset;
   1350  1.1  christos 					break;
   1351  1.1  christos 				}
   1352  1.1  christos 			}
   1353  1.1  christos 		}
   1354  1.1  christos 
   1355  1.1  christos 	c = *(unsigned char *) (yy_c_buf_p);	/* cast for 8-bit char's */
   1356  1.1  christos 	*(yy_c_buf_p) = '\0';	/* preserve yytext */
   1357  1.1  christos 	(yy_hold_char) = *++(yy_c_buf_p);
   1358  1.1  christos 
   1359  1.1  christos 	return c;
   1360  1.1  christos }
   1361  1.1  christos #endif	/* ifndef YY_NO_INPUT */
   1362  1.1  christos 
   1363  1.1  christos /** Immediately switch to a different input stream.
   1364  1.1  christos  * @param input_file A readable stream.
   1365  1.1  christos  *
   1366  1.1  christos  * @note This function does not reset the start condition to @c INITIAL .
   1367  1.1  christos  */
   1368  1.1  christos     void yyrestart  (FILE * input_file )
   1369  1.1  christos {
   1370  1.1  christos 
   1371  1.1  christos 	if ( ! YY_CURRENT_BUFFER ){
   1372  1.1  christos         yyensure_buffer_stack ();
   1373  1.1  christos 		YY_CURRENT_BUFFER_LVALUE =
   1374  1.1  christos             yy_create_buffer(yyin,YY_BUF_SIZE );
   1375  1.1  christos 	}
   1376  1.1  christos 
   1377  1.1  christos 	yy_init_buffer(YY_CURRENT_BUFFER,input_file );
   1378  1.1  christos 	yy_load_buffer_state( );
   1379  1.1  christos }
   1380  1.1  christos 
   1381  1.1  christos /** Switch to a different input buffer.
   1382  1.1  christos  * @param new_buffer The new input buffer.
   1383  1.1  christos  *
   1384  1.1  christos  */
   1385  1.1  christos     void yy_switch_to_buffer  (YY_BUFFER_STATE  new_buffer )
   1386  1.1  christos {
   1387  1.1  christos 
   1388  1.1  christos 	/* TODO. We should be able to replace this entire function body
   1389  1.1  christos 	 * with
   1390  1.1  christos 	 *		yypop_buffer_state();
   1391  1.1  christos 	 *		yypush_buffer_state(new_buffer);
   1392  1.1  christos      */
   1393  1.1  christos 	yyensure_buffer_stack ();
   1394  1.1  christos 	if ( YY_CURRENT_BUFFER == new_buffer )
   1395  1.1  christos 		return;
   1396  1.1  christos 
   1397  1.1  christos 	if ( YY_CURRENT_BUFFER )
   1398  1.1  christos 		{
   1399  1.1  christos 		/* Flush out information for old buffer. */
   1400  1.1  christos 		*(yy_c_buf_p) = (yy_hold_char);
   1401  1.1  christos 		YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
   1402  1.1  christos 		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
   1403  1.1  christos 		}
   1404  1.1  christos 
   1405  1.1  christos 	YY_CURRENT_BUFFER_LVALUE = new_buffer;
   1406  1.1  christos 	yy_load_buffer_state( );
   1407  1.1  christos 
   1408  1.1  christos 	/* We don't actually know whether we did this switch during
   1409  1.1  christos 	 * EOF (yywrap()) processing, but the only time this flag
   1410  1.1  christos 	 * is looked at is after yywrap() is called, so it's safe
   1411  1.1  christos 	 * to go ahead and always set it.
   1412  1.1  christos 	 */
   1413  1.1  christos 	(yy_did_buffer_switch_on_eof) = 1;
   1414  1.1  christos }
   1415  1.1  christos 
   1416  1.1  christos static void yy_load_buffer_state  (void)
   1417  1.1  christos {
   1418  1.1  christos     	(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
   1419  1.1  christos 	(yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
   1420  1.1  christos 	yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
   1421  1.1  christos 	(yy_hold_char) = *(yy_c_buf_p);
   1422  1.1  christos }
   1423  1.1  christos 
   1424  1.1  christos /** Allocate and initialize an input buffer state.
   1425  1.1  christos  * @param file A readable stream.
   1426  1.1  christos  * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
   1427  1.1  christos  *
   1428  1.1  christos  * @return the allocated buffer state.
   1429  1.1  christos  */
   1430  1.1  christos     YY_BUFFER_STATE yy_create_buffer  (FILE * file, int  size )
   1431  1.1  christos {
   1432  1.1  christos 	YY_BUFFER_STATE b;
   1433  1.1  christos 
   1434  1.1  christos 	b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state )  );
   1435  1.1  christos 	if ( ! b )
   1436  1.1  christos 		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
   1437  1.1  christos 
   1438  1.1  christos 	b->yy_buf_size = size;
   1439  1.1  christos 
   1440  1.1  christos 	/* yy_ch_buf has to be 2 characters longer than the size given because
   1441  1.1  christos 	 * we need to put in 2 end-of-buffer characters.
   1442  1.1  christos 	 */
   1443  1.6  christos 	b->yy_ch_buf = (char *) yyalloc((yy_size_t) (b->yy_buf_size + 2)  );
   1444  1.1  christos 	if ( ! b->yy_ch_buf )
   1445  1.1  christos 		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
   1446  1.1  christos 
   1447  1.1  christos 	b->yy_is_our_buffer = 1;
   1448  1.1  christos 
   1449  1.1  christos 	yy_init_buffer(b,file );
   1450  1.1  christos 
   1451  1.1  christos 	return b;
   1452  1.1  christos }
   1453  1.1  christos 
   1454  1.1  christos /** Destroy the buffer.
   1455  1.1  christos  * @param b a buffer created with yy_create_buffer()
   1456  1.1  christos  *
   1457  1.1  christos  */
   1458  1.1  christos     void yy_delete_buffer (YY_BUFFER_STATE  b )
   1459  1.1  christos {
   1460  1.1  christos 
   1461  1.1  christos 	if ( ! b )
   1462  1.1  christos 		return;
   1463  1.1  christos 
   1464  1.1  christos 	if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
   1465  1.1  christos 		YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
   1466  1.1  christos 
   1467  1.1  christos 	if ( b->yy_is_our_buffer )
   1468  1.1  christos 		yyfree((void *) b->yy_ch_buf  );
   1469  1.1  christos 
   1470  1.1  christos 	yyfree((void *) b  );
   1471  1.1  christos }
   1472  1.1  christos 
   1473  1.1  christos /* Initializes or reinitializes a buffer.
   1474  1.1  christos  * This function is sometimes called more than once on the same buffer,
   1475  1.1  christos  * such as during a yyrestart() or at EOF.
   1476  1.1  christos  */
   1477  1.1  christos     static void yy_init_buffer  (YY_BUFFER_STATE  b, FILE * file )
   1478  1.1  christos 
   1479  1.1  christos {
   1480  1.1  christos 	int oerrno = errno;
   1481  1.1  christos 
   1482  1.1  christos 	yy_flush_buffer(b );
   1483  1.1  christos 
   1484  1.1  christos 	b->yy_input_file = file;
   1485  1.1  christos 	b->yy_fill_buffer = 1;
   1486  1.1  christos 
   1487  1.1  christos     /* If b is the current buffer, then yy_init_buffer was _probably_
   1488  1.1  christos      * called from yyrestart() or through yy_get_next_buffer.
   1489  1.1  christos      * In that case, we don't want to reset the lineno or column.
   1490  1.1  christos      */
   1491  1.1  christos     if (b != YY_CURRENT_BUFFER){
   1492  1.1  christos         b->yy_bs_lineno = 1;
   1493  1.1  christos         b->yy_bs_column = 0;
   1494  1.1  christos     }
   1495  1.1  christos 
   1496  1.1  christos         b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
   1497  1.1  christos 
   1498  1.1  christos 	errno = oerrno;
   1499  1.1  christos }
   1500  1.1  christos 
   1501  1.1  christos /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
   1502  1.1  christos  * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
   1503  1.1  christos  *
   1504  1.1  christos  */
   1505  1.1  christos     void yy_flush_buffer (YY_BUFFER_STATE  b )
   1506  1.1  christos {
   1507  1.1  christos     	if ( ! b )
   1508  1.1  christos 		return;
   1509  1.1  christos 
   1510  1.1  christos 	b->yy_n_chars = 0;
   1511  1.1  christos 
   1512  1.1  christos 	/* We always need two end-of-buffer characters.  The first causes
   1513  1.1  christos 	 * a transition to the end-of-buffer state.  The second causes
   1514  1.1  christos 	 * a jam in that state.
   1515  1.1  christos 	 */
   1516  1.1  christos 	b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
   1517  1.1  christos 	b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
   1518  1.1  christos 
   1519  1.1  christos 	b->yy_buf_pos = &b->yy_ch_buf[0];
   1520  1.1  christos 
   1521  1.1  christos 	b->yy_at_bol = 1;
   1522  1.1  christos 	b->yy_buffer_status = YY_BUFFER_NEW;
   1523  1.1  christos 
   1524  1.1  christos 	if ( b == YY_CURRENT_BUFFER )
   1525  1.1  christos 		yy_load_buffer_state( );
   1526  1.1  christos }
   1527  1.1  christos 
   1528  1.1  christos /** Pushes the new state onto the stack. The new state becomes
   1529  1.1  christos  *  the current state. This function will allocate the stack
   1530  1.1  christos  *  if necessary.
   1531  1.1  christos  *  @param new_buffer The new state.
   1532  1.1  christos  *
   1533  1.1  christos  */
   1534  1.1  christos void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
   1535  1.1  christos {
   1536  1.1  christos     	if (new_buffer == NULL)
   1537  1.1  christos 		return;
   1538  1.1  christos 
   1539  1.1  christos 	yyensure_buffer_stack();
   1540  1.1  christos 
   1541  1.1  christos 	/* This block is copied from yy_switch_to_buffer. */
   1542  1.1  christos 	if ( YY_CURRENT_BUFFER )
   1543  1.1  christos 		{
   1544  1.1  christos 		/* Flush out information for old buffer. */
   1545  1.1  christos 		*(yy_c_buf_p) = (yy_hold_char);
   1546  1.1  christos 		YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
   1547  1.1  christos 		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
   1548  1.1  christos 		}
   1549  1.1  christos 
   1550  1.1  christos 	/* Only push if top exists. Otherwise, replace top. */
   1551  1.1  christos 	if (YY_CURRENT_BUFFER)
   1552  1.1  christos 		(yy_buffer_stack_top)++;
   1553  1.1  christos 	YY_CURRENT_BUFFER_LVALUE = new_buffer;
   1554  1.1  christos 
   1555  1.1  christos 	/* copied from yy_switch_to_buffer. */
   1556  1.1  christos 	yy_load_buffer_state( );
   1557  1.1  christos 	(yy_did_buffer_switch_on_eof) = 1;
   1558  1.1  christos }
   1559  1.1  christos 
   1560  1.1  christos /** Removes and deletes the top of the stack, if present.
   1561  1.1  christos  *  The next element becomes the new top.
   1562  1.1  christos  *
   1563  1.1  christos  */
   1564  1.1  christos void yypop_buffer_state (void)
   1565  1.1  christos {
   1566  1.1  christos     	if (!YY_CURRENT_BUFFER)
   1567  1.1  christos 		return;
   1568  1.1  christos 
   1569  1.1  christos 	yy_delete_buffer(YY_CURRENT_BUFFER );
   1570  1.1  christos 	YY_CURRENT_BUFFER_LVALUE = NULL;
   1571  1.1  christos 	if ((yy_buffer_stack_top) > 0)
   1572  1.1  christos 		--(yy_buffer_stack_top);
   1573  1.1  christos 
   1574  1.1  christos 	if (YY_CURRENT_BUFFER) {
   1575  1.1  christos 		yy_load_buffer_state( );
   1576  1.1  christos 		(yy_did_buffer_switch_on_eof) = 1;
   1577  1.1  christos 	}
   1578  1.1  christos }
   1579  1.1  christos 
   1580  1.1  christos /* Allocates the stack if it does not exist.
   1581  1.1  christos  *  Guarantees space for at least one push.
   1582  1.1  christos  */
   1583  1.1  christos static void yyensure_buffer_stack (void)
   1584  1.1  christos {
   1585  1.6  christos 	int num_to_alloc;
   1586  1.1  christos 
   1587  1.1  christos 	if (!(yy_buffer_stack)) {
   1588  1.1  christos 
   1589  1.1  christos 		/* First allocation is just for 2 elements, since we don't know if this
   1590  1.1  christos 		 * scanner will even need a stack. We use 2 instead of 1 to avoid an
   1591  1.1  christos 		 * immediate realloc on the next call.
   1592  1.1  christos          */
   1593  1.6  christos       num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
   1594  1.1  christos 		(yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
   1595  1.1  christos 								(num_to_alloc * sizeof(struct yy_buffer_state*)
   1596  1.1  christos 								);
   1597  1.1  christos 		if ( ! (yy_buffer_stack) )
   1598  1.1  christos 			YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
   1599  1.1  christos 
   1600  1.1  christos 		memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
   1601  1.1  christos 
   1602  1.1  christos 		(yy_buffer_stack_max) = num_to_alloc;
   1603  1.1  christos 		(yy_buffer_stack_top) = 0;
   1604  1.1  christos 		return;
   1605  1.1  christos 	}
   1606  1.1  christos 
   1607  1.1  christos 	if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
   1608  1.1  christos 
   1609  1.1  christos 		/* Increase the buffer to prepare for a possible push. */
   1610  1.6  christos 		yy_size_t grow_size = 8 /* arbitrary grow size */;
   1611  1.1  christos 
   1612  1.1  christos 		num_to_alloc = (yy_buffer_stack_max) + grow_size;
   1613  1.1  christos 		(yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
   1614  1.1  christos 								((yy_buffer_stack),
   1615  1.1  christos 								num_to_alloc * sizeof(struct yy_buffer_state*)
   1616  1.1  christos 								);
   1617  1.1  christos 		if ( ! (yy_buffer_stack) )
   1618  1.1  christos 			YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
   1619  1.1  christos 
   1620  1.1  christos 		/* zero only the new slots.*/
   1621  1.1  christos 		memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
   1622  1.1  christos 		(yy_buffer_stack_max) = num_to_alloc;
   1623  1.1  christos 	}
   1624  1.1  christos }
   1625  1.1  christos 
   1626  1.1  christos /** Setup the input buffer state to scan directly from a user-specified character buffer.
   1627  1.1  christos  * @param base the character buffer
   1628  1.1  christos  * @param size the size in bytes of the character buffer
   1629  1.1  christos  *
   1630  1.1  christos  * @return the newly allocated buffer state object.
   1631  1.1  christos  */
   1632  1.1  christos YY_BUFFER_STATE yy_scan_buffer  (char * base, yy_size_t  size )
   1633  1.1  christos {
   1634  1.1  christos 	YY_BUFFER_STATE b;
   1635  1.1  christos 
   1636  1.1  christos 	if ( size < 2 ||
   1637  1.1  christos 	     base[size-2] != YY_END_OF_BUFFER_CHAR ||
   1638  1.1  christos 	     base[size-1] != YY_END_OF_BUFFER_CHAR )
   1639  1.1  christos 		/* They forgot to leave room for the EOB's. */
   1640  1.6  christos 		return NULL;
   1641  1.1  christos 
   1642  1.1  christos 	b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state )  );
   1643  1.1  christos 	if ( ! b )
   1644  1.1  christos 		YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
   1645  1.1  christos 
   1646  1.6  christos 	b->yy_buf_size = (int) (size - 2);	/* "- 2" to take care of EOB's */
   1647  1.1  christos 	b->yy_buf_pos = b->yy_ch_buf = base;
   1648  1.1  christos 	b->yy_is_our_buffer = 0;
   1649  1.6  christos 	b->yy_input_file = NULL;
   1650  1.1  christos 	b->yy_n_chars = b->yy_buf_size;
   1651  1.1  christos 	b->yy_is_interactive = 0;
   1652  1.1  christos 	b->yy_at_bol = 1;
   1653  1.1  christos 	b->yy_fill_buffer = 0;
   1654  1.1  christos 	b->yy_buffer_status = YY_BUFFER_NEW;
   1655  1.1  christos 
   1656  1.1  christos 	yy_switch_to_buffer(b  );
   1657  1.1  christos 
   1658  1.1  christos 	return b;
   1659  1.1  christos }
   1660  1.1  christos 
   1661  1.1  christos /** Setup the input buffer state to scan a string. The next call to yylex() will
   1662  1.1  christos  * scan from a @e copy of @a str.
   1663  1.1  christos  * @param yystr a NUL-terminated string to scan
   1664  1.1  christos  *
   1665  1.1  christos  * @return the newly allocated buffer state object.
   1666  1.1  christos  * @note If you want to scan bytes that may contain NUL values, then use
   1667  1.1  christos  *       yy_scan_bytes() instead.
   1668  1.1  christos  */
   1669  1.1  christos YY_BUFFER_STATE yy_scan_string (yyconst char * yystr )
   1670  1.1  christos {
   1671  1.1  christos 
   1672  1.6  christos 	return yy_scan_bytes(yystr,(int) strlen(yystr) );
   1673  1.1  christos }
   1674  1.1  christos 
   1675  1.1  christos /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
   1676  1.1  christos  * scan from a @e copy of @a bytes.
   1677  1.6  christos  * @param yybytes the byte buffer to scan
   1678  1.6  christos  * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
   1679  1.1  christos  *
   1680  1.1  christos  * @return the newly allocated buffer state object.
   1681  1.1  christos  */
   1682  1.6  christos YY_BUFFER_STATE yy_scan_bytes  (yyconst char * yybytes, int  _yybytes_len )
   1683  1.1  christos {
   1684  1.1  christos 	YY_BUFFER_STATE b;
   1685  1.1  christos 	char *buf;
   1686  1.6  christos 	yy_size_t n;
   1687  1.7  christos 	int i;
   1688  1.1  christos 
   1689  1.1  christos 	/* Get memory for full buffer, including space for trailing EOB's. */
   1690  1.7  christos 	n = (yy_size_t) (_yybytes_len + 2);
   1691  1.1  christos 	buf = (char *) yyalloc(n  );
   1692  1.1  christos 	if ( ! buf )
   1693  1.1  christos 		YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
   1694  1.1  christos 
   1695  1.1  christos 	for ( i = 0; i < _yybytes_len; ++i )
   1696  1.1  christos 		buf[i] = yybytes[i];
   1697  1.1  christos 
   1698  1.1  christos 	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
   1699  1.1  christos 
   1700  1.1  christos 	b = yy_scan_buffer(buf,n );
   1701  1.1  christos 	if ( ! b )
   1702  1.1  christos 		YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
   1703  1.1  christos 
   1704  1.1  christos 	/* It's okay to grow etc. this buffer, and we should throw it
   1705  1.1  christos 	 * away when we're done.
   1706  1.1  christos 	 */
   1707  1.1  christos 	b->yy_is_our_buffer = 1;
   1708  1.1  christos 
   1709  1.1  christos 	return b;
   1710  1.1  christos }
   1711  1.1  christos 
   1712  1.1  christos #ifndef YY_EXIT_FAILURE
   1713  1.1  christos #define YY_EXIT_FAILURE 2
   1714  1.1  christos #endif
   1715  1.1  christos 
   1716  1.6  christos static void yynoreturn yy_fatal_error (yyconst char* msg )
   1717  1.1  christos {
   1718  1.6  christos 			(void) fprintf( stderr, "%s\n", msg );
   1719  1.1  christos 	exit( YY_EXIT_FAILURE );
   1720  1.1  christos }
   1721  1.1  christos 
   1722  1.1  christos /* Redefine yyless() so it works in section 3 code. */
   1723  1.1  christos 
   1724  1.1  christos #undef yyless
   1725  1.1  christos #define yyless(n) \
   1726  1.1  christos 	do \
   1727  1.1  christos 		{ \
   1728  1.1  christos 		/* Undo effects of setting up yytext. */ \
   1729  1.6  christos         yy_size_t yyless_macro_arg = (n); \
   1730  1.1  christos         YY_LESS_LINENO(yyless_macro_arg);\
   1731  1.1  christos 		yytext[yyleng] = (yy_hold_char); \
   1732  1.1  christos 		(yy_c_buf_p) = yytext + yyless_macro_arg; \
   1733  1.1  christos 		(yy_hold_char) = *(yy_c_buf_p); \
   1734  1.1  christos 		*(yy_c_buf_p) = '\0'; \
   1735  1.1  christos 		yyleng = yyless_macro_arg; \
   1736  1.1  christos 		} \
   1737  1.1  christos 	while ( 0 )
   1738  1.1  christos 
   1739  1.1  christos /* Accessor  methods (get/set functions) to struct members. */
   1740  1.1  christos 
   1741  1.1  christos /** Get the current line number.
   1742  1.1  christos  *
   1743  1.1  christos  */
   1744  1.1  christos int yyget_lineno  (void)
   1745  1.1  christos {
   1746  1.1  christos 
   1747  1.1  christos     return yylineno;
   1748  1.1  christos }
   1749  1.1  christos 
   1750  1.1  christos /** Get the input stream.
   1751  1.1  christos  *
   1752  1.1  christos  */
   1753  1.1  christos FILE *yyget_in  (void)
   1754  1.1  christos {
   1755  1.1  christos         return yyin;
   1756  1.1  christos }
   1757  1.1  christos 
   1758  1.1  christos /** Get the output stream.
   1759  1.1  christos  *
   1760  1.1  christos  */
   1761  1.1  christos FILE *yyget_out  (void)
   1762  1.1  christos {
   1763  1.1  christos         return yyout;
   1764  1.1  christos }
   1765  1.1  christos 
   1766  1.1  christos /** Get the length of the current token.
   1767  1.1  christos  *
   1768  1.1  christos  */
   1769  1.6  christos int yyget_leng  (void)
   1770  1.1  christos {
   1771  1.1  christos         return yyleng;
   1772  1.1  christos }
   1773  1.1  christos 
   1774  1.1  christos /** Get the current token.
   1775  1.1  christos  *
   1776  1.1  christos  */
   1777  1.1  christos 
   1778  1.1  christos char *yyget_text  (void)
   1779  1.1  christos {
   1780  1.1  christos         return yytext;
   1781  1.1  christos }
   1782  1.1  christos 
   1783  1.1  christos /** Set the current line number.
   1784  1.6  christos  * @param _line_number line number
   1785  1.1  christos  *
   1786  1.1  christos  */
   1787  1.6  christos void yyset_lineno (int  _line_number )
   1788  1.1  christos {
   1789  1.1  christos 
   1790  1.6  christos     yylineno = _line_number;
   1791  1.1  christos }
   1792  1.1  christos 
   1793  1.1  christos /** Set the input stream. This does not discard the current
   1794  1.1  christos  * input buffer.
   1795  1.6  christos  * @param _in_str A readable stream.
   1796  1.1  christos  *
   1797  1.1  christos  * @see yy_switch_to_buffer
   1798  1.1  christos  */
   1799  1.6  christos void yyset_in (FILE *  _in_str )
   1800  1.1  christos {
   1801  1.6  christos         yyin = _in_str ;
   1802  1.1  christos }
   1803  1.1  christos 
   1804  1.6  christos void yyset_out (FILE *  _out_str )
   1805  1.1  christos {
   1806  1.6  christos         yyout = _out_str ;
   1807  1.1  christos }
   1808  1.1  christos 
   1809  1.1  christos int yyget_debug  (void)
   1810  1.1  christos {
   1811  1.1  christos         return yy_flex_debug;
   1812  1.1  christos }
   1813  1.1  christos 
   1814  1.6  christos void yyset_debug (int  _bdebug )
   1815  1.1  christos {
   1816  1.6  christos         yy_flex_debug = _bdebug ;
   1817  1.1  christos }
   1818  1.1  christos 
   1819  1.1  christos static int yy_init_globals (void)
   1820  1.1  christos {
   1821  1.1  christos         /* Initialization is the same as for the non-reentrant scanner.
   1822  1.1  christos      * This function is called from yylex_destroy(), so don't allocate here.
   1823  1.1  christos      */
   1824  1.1  christos 
   1825  1.6  christos     (yy_buffer_stack) = NULL;
   1826  1.1  christos     (yy_buffer_stack_top) = 0;
   1827  1.1  christos     (yy_buffer_stack_max) = 0;
   1828  1.6  christos     (yy_c_buf_p) = NULL;
   1829  1.1  christos     (yy_init) = 0;
   1830  1.1  christos     (yy_start) = 0;
   1831  1.1  christos 
   1832  1.1  christos /* Defined in main.c */
   1833  1.1  christos #ifdef YY_STDINIT
   1834  1.1  christos     yyin = stdin;
   1835  1.1  christos     yyout = stdout;
   1836  1.1  christos #else
   1837  1.6  christos     yyin = NULL;
   1838  1.6  christos     yyout = NULL;
   1839  1.1  christos #endif
   1840  1.1  christos 
   1841  1.1  christos     /* For future reference: Set errno on error, since we are called by
   1842  1.1  christos      * yylex_init()
   1843  1.1  christos      */
   1844  1.1  christos     return 0;
   1845  1.1  christos }
   1846  1.1  christos 
   1847  1.1  christos /* yylex_destroy is for both reentrant and non-reentrant scanners. */
   1848  1.1  christos int yylex_destroy  (void)
   1849  1.1  christos {
   1850  1.1  christos 
   1851  1.1  christos     /* Pop the buffer stack, destroying each element. */
   1852  1.1  christos 	while(YY_CURRENT_BUFFER){
   1853  1.1  christos 		yy_delete_buffer(YY_CURRENT_BUFFER  );
   1854  1.1  christos 		YY_CURRENT_BUFFER_LVALUE = NULL;
   1855  1.1  christos 		yypop_buffer_state();
   1856  1.1  christos 	}
   1857  1.1  christos 
   1858  1.1  christos 	/* Destroy the stack itself. */
   1859  1.1  christos 	yyfree((yy_buffer_stack) );
   1860  1.1  christos 	(yy_buffer_stack) = NULL;
   1861  1.1  christos 
   1862  1.1  christos     /* Reset the globals. This is important in a non-reentrant scanner so the next time
   1863  1.1  christos      * yylex() is called, initialization will occur. */
   1864  1.1  christos     yy_init_globals( );
   1865  1.1  christos 
   1866  1.1  christos     return 0;
   1867  1.1  christos }
   1868  1.1  christos 
   1869  1.1  christos /*
   1870  1.1  christos  * Internal utility routines.
   1871  1.1  christos  */
   1872  1.1  christos 
   1873  1.1  christos #ifndef yytext_ptr
   1874  1.1  christos static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
   1875  1.1  christos {
   1876  1.6  christos 
   1877  1.6  christos 	int i;
   1878  1.1  christos 	for ( i = 0; i < n; ++i )
   1879  1.1  christos 		s1[i] = s2[i];
   1880  1.1  christos }
   1881  1.1  christos #endif
   1882  1.1  christos 
   1883  1.1  christos #ifdef YY_NEED_STRLEN
   1884  1.1  christos static int yy_flex_strlen (yyconst char * s )
   1885  1.1  christos {
   1886  1.6  christos 	int n;
   1887  1.1  christos 	for ( n = 0; s[n]; ++n )
   1888  1.1  christos 		;
   1889  1.1  christos 
   1890  1.1  christos 	return n;
   1891  1.1  christos }
   1892  1.1  christos #endif
   1893  1.1  christos 
   1894  1.1  christos void *yyalloc (yy_size_t  size )
   1895  1.1  christos {
   1896  1.6  christos 			return malloc(size);
   1897  1.1  christos }
   1898  1.1  christos 
   1899  1.1  christos void *yyrealloc  (void * ptr, yy_size_t  size )
   1900  1.1  christos {
   1901  1.6  christos 
   1902  1.1  christos 	/* The cast to (char *) in the following accommodates both
   1903  1.1  christos 	 * implementations that use char* generic pointers, and those
   1904  1.1  christos 	 * that use void* generic pointers.  It works with the latter
   1905  1.1  christos 	 * because both ANSI C and C++ allow castless assignment from
   1906  1.1  christos 	 * any pointer type to void*, and deal with argument conversions
   1907  1.1  christos 	 * as though doing an assignment.
   1908  1.1  christos 	 */
   1909  1.6  christos 	return realloc(ptr, size);
   1910  1.1  christos }
   1911  1.1  christos 
   1912  1.1  christos void yyfree (void * ptr )
   1913  1.1  christos {
   1914  1.6  christos 			free( (char *) ptr );	/* see yyrealloc() for (char *) cast */
   1915  1.1  christos }
   1916  1.1  christos 
   1917  1.1  christos #define YYTABLES_NAME "yytables"
   1918  1.1  christos 
   1919  1.6  christos #line 82 "syslex.l"
   1920