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