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