#line 2 "acf_lex.c"
#define YY_INT_ALIGNED short int
/* A lexical scanner generated by flex */
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 6
#define YY_FLEX_SUBMINOR_VERSION 4
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
/* First, we deal with platform-specific or compiler-specific issues. */
/* begin standard C headers. */
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* end standard C headers. */
/* flex integer type definitions */
#ifndef FLEXINT_H
#define FLEXINT_H
/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
* if you want the limit (max/min) macros for int types.
*/
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS 1
#endif
#include <inttypes.h>
typedef int8_t flex_int8_t;
typedef uint8_t flex_uint8_t;
typedef int16_t flex_int16_t;
typedef uint16_t flex_uint16_t;
typedef int32_t flex_int32_t;
typedef uint32_t flex_uint32_t;
#else
typedef signed char flex_int8_t;
typedef short int flex_int16_t;
typedef int flex_int32_t;
typedef unsigned char flex_uint8_t;
typedef unsigned short int flex_uint16_t;
typedef unsigned int flex_uint32_t;
/* Limits of integral types. */
#ifndef INT8_MIN
#define INT8_MIN (-128)
#endif
#ifndef INT16_MIN
#define INT16_MIN (-32767 - 1)
#endif
#ifndef INT32_MIN
#define INT32_MIN (-2147483647 - 1)
#endif
#ifndef INT8_MAX
#define INT8_MAX (127)
#endif
#ifndef INT16_MAX
#define INT16_MAX (32767)
#endif
#ifndef INT32_MAX
#define INT32_MAX (2147483647)
#endif
#ifndef UINT8_MAX
#define UINT8_MAX (255U)
#endif
#ifndef UINT16_MAX
#define UINT16_MAX (65535U)
#endif
#ifndef UINT32_MAX
#define UINT32_MAX (4294967295U)
#endif
#ifndef SIZE_MAX
#define SIZE_MAX (~(size_t) 0)
#endif
#endif /* ! C99 */
#endif /* ! FLEXINT_H */
/* begin standard C++ headers. */
/* TODO: this is always defined, so inline it */
#define yyconst const
#if defined(__GNUC__) && __GNUC__ >= 3
#define yynoreturn __attribute__ ((__noreturn__))
#else
#define yynoreturn
#endif
/* Returned upon end-of-file. */
#define YY_NULL 0
/* Promotes a possibly negative, possibly signed char to an
* integer in range [0..255] for use as an array index.
*/
#define YY_SC_TO_UI(c) ((YY_CHAR) (c))
/* Enter a start condition. This macro really ought to take a parameter,
* but we do it the disgusting crufty way forced on us by the ()-less
* definition of BEGIN.
*/
#define BEGIN (yy_start) = 1 + 2 *
/* Translate the current start state into a value that can be later handed
* to BEGIN to return to the state. The YYSTATE alias is for lex
* compatibility.
*/
#define YY_START (((yy_start) -1) / 2)
#define YYSTATE YY_START
/* Action number for EOF rule of a given start state. */
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
/* Special action meaning "start processing a new file". */
#define YY_NEW_FILE yyrestart (yyin)
#define YY_END_OF_BUFFER_CHAR 0
/* Size of default input buffer. */
#ifndef YY_BUF_SIZE
#ifdef __ia64__
/* On IA-64, the buffer size is 16k, not 8k.
* Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
* Ditto for the __ia64__ case accordingly.
*/
#define YY_BUF_SIZE 32768
#else
#define YY_BUF_SIZE 16384
#endif /* __ia64__ */
#endif
/* The state buf must be large enough to hold one state per character in the main buffer.
*/
#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof (yy_state_type))
#ifndef YY_TYPEDEF_YY_BUFFER_STATE
#define YY_TYPEDEF_YY_BUFFER_STATE
typedef struct yy_buffer_state *YY_BUFFER_STATE;
#endif
#ifndef YY_TYPEDEF_YY_SIZE_T
#define YY_TYPEDEF_YY_SIZE_T
typedef size_t yy_size_t;
#endif
extern int yyleng;
extern FILE *yyin, *yyout;
#define EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1
#define EOB_ACT_LAST_MATCH 2
#define YY_LESS_LINENO(n)
#define YY_LINENO_REWIND_TO(ptr)
/* Return all but the first "n" matched characters back to the input stream. */
#define yyless(n) \
do \
{ \
/* Undo effects of setting up yytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO (yyless_macro_arg); \
*yy_cp = (yy_hold_char); \
YY_RESTORE_YY_MORE_OFFSET (yy_c_buf_p) = yy_cp = \
yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
} while (0)
#define unput(c) yyunput (c, (yytext_ptr))
#ifndef YY_STRUCT_YY_BUFFER_STATE
#define YY_STRUCT_YY_BUFFER_STATE
struct yy_buffer_state
{
FILE *yy_input_file;
char *yy_ch_buf; /* input buffer */
char *yy_buf_pos; /* current position in input buffer */
/* Size of input buffer in bytes, not including room for EOB
* characters.
*/
int yy_buf_size;
/* Number of characters read into yy_ch_buf, not including EOB
* characters.
*/
int yy_n_chars;
/* Whether we "own" the buffer - i.e., we know we created it,
* and can realloc() it to grow it, and should free() it to
* delete it.
*/
int yy_is_our_buffer;
/* Whether this is an "interactive" input source; if so, and
* if we're using stdio for input, then we want to use getc()
* instead of fread(), to make sure we stop fetching input after
* each newline.
*/
int yy_is_interactive;
/* Whether we're considered to be at the beginning of a line.
* If so, '^' rules will be active on the next match, otherwise
* not.
*/
int yy_at_bol;
int yy_bs_lineno; /**< The line count. */
int yy_bs_column; /**< The column count. */
/* Whether to try to fill the input buffer when we reach the
* end of it.
*/
int yy_fill_buffer;
int yy_buffer_status;
#define YY_BUFFER_NEW 0
#define YY_BUFFER_NORMAL 1
/* When an EOF's been seen but there's still some text to process
* then we mark the buffer as YY_EOF_PENDING, to indicate that we
* shouldn't try reading from the input source any more. We might
* still have a bunch of tokens to match, though, because of
* possible backing-up.
*
* When we actually see the EOF, we change the status to "new"
* (via yyrestart()), so that the user can continue scanning by
* just pointing yyin at a new input file.
*/
#define YY_BUFFER_EOF_PENDING 2
};
#endif /* !YY_STRUCT_YY_BUFFER_STATE */
/* Stack of input buffers. */
static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
static YY_BUFFER_STATE *yy_buffer_stack = NULL; /**< Stack as an array. */
/* We provide macros for accessing buffer states in case in the
* future we want to put the buffer states in a more general
* "scanner state".
*
* Returns the top of the stack, or NULL.
*/
#define YY_CURRENT_BUFFER ((yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)] : NULL)
/* Same as previous macro, but useful when we know that the buffer stack is not
* NULL or when we need an lvalue. For internal use only.
*/
#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
/* yy_hold_char holds the character lost when yytext is formed. */
static char yy_hold_char;
static int yy_n_chars; /* number of characters read into yy_ch_buf */
int yyleng;
/* Points to current character in buffer. */
static char *yy_c_buf_p = NULL;
static int yy_init = 0; /* whether we need to initialize */
static int yy_start = 0; /* start state number */
/* Flag which is used to allow yywrap()'s to do buffer switches
* instead of setting up a fresh yyin. A bit of a hack ...
*/
static int yy_did_buffer_switch_on_eof;
void yyrestart (FILE *input_file);
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer);
YY_BUFFER_STATE yy_create_buffer (FILE *file, int size);
void yy_delete_buffer (YY_BUFFER_STATE b);
void yy_flush_buffer (YY_BUFFER_STATE b);
void yypush_buffer_state (YY_BUFFER_STATE new_buffer);
void yypop_buffer_state (void);
static void yyensure_buffer_stack (void);
static void yy_load_buffer_state (void);
static void yy_init_buffer (YY_BUFFER_STATE b, FILE *file);
#define YY_FLUSH_BUFFER yy_flush_buffer (YY_CURRENT_BUFFER)
YY_BUFFER_STATE yy_scan_buffer (char *base, yy_size_t size);
YY_BUFFER_STATE yy_scan_string (const char *yy_str);
YY_BUFFER_STATE yy_scan_bytes (const char *bytes, int len);
void *yyalloc (yy_size_t);
void *yyrealloc (void *, yy_size_t);
void yyfree (void *);
#define yy_new_buffer yy_create_buffer
#define yy_set_interactive(is_interactive) \
{ \
if (!YY_CURRENT_BUFFER) \
{ \
yyensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = yy_create_buffer (yyin, YY_BUF_SIZE); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}
#define yy_set_bol(at_bol) \
{ \
if (!YY_CURRENT_BUFFER) \
{ \
yyensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = yy_create_buffer (yyin, YY_BUF_SIZE); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
/* Begin user sect3 */
typedef flex_uint8_t YY_CHAR;
FILE *yyin = NULL, *yyout = NULL;
typedef int yy_state_type;
extern int yylineno;
int yylineno = 1;
extern char *yytext;
#ifdef yytext_ptr
#undef yytext_ptr
#endif
#define yytext_ptr yytext
static yy_state_type yy_get_previous_state (void);
static yy_state_type yy_try_NUL_trans (yy_state_type current_state);
static int yy_get_next_buffer (void);
static void yynoreturn yy_fatal_error (const char *msg);
/* Done after the current pattern has been matched and before the
* corresponding action - sets up yytext.
*/
#define YY_DO_BEFORE_ACTION \
(yytext_ptr) = yy_bp; \
yyleng = (int) (yy_cp - yy_bp); \
(yy_hold_char) = *yy_cp; \
*yy_cp = '\0'; \
(yy_c_buf_p) = yy_cp;
#define YY_NUM_RULES 147
#define YY_END_OF_BUFFER 148
/* This struct is not used in this scanner,
but its presence is necessary. */
struct yy_trans_info
{
flex_int32_t yy_verify;
flex_int32_t yy_nxt;
};
static const flex_int16_t yy_accept[707] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
3, 3, 148, 146, 57, 58, 59, 32, 5, 143, 37, 46, 22, 29, 30, 53, 33,
54, 34, 31, 36, 141, 26, 27, 41, 28, 42, 38, 143, 143, 143, 143, 143, 143,
143, 143, 43, 143, 48, 44, 32, 144, 53, 36, 142, 146, 50, 144, 144, 144, 144,
144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 22, 53,
34, 36, 41, 28, 144, 144, 144, 144, 144, 55, 6, 56, 144, 144, 144, 44,
13, 36, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143,
143, 143, 143, 21, 16, 17, 21, 21, 21, 20, 18, 15, 17, 20, 20, 19, 18,
13, 19, 147, 57, 147, 143, 37, 46, 22, 29, 30, 53, 33, 34, 36, 141, 26,
27, 41, 28, 42, 38, 143, 143, 143, 43, 48, 44, 4, 3, 51, 143, 45, 52,
14, 7, 9, 8, 141, 141, 24, 39, 25, 49, 23, 40, 143, 143, 143, 143, 143,
143, 143, 143, 143, 143, 143, 47, 144, 35, 142, 144, 144, 144, 144, 144,
144, 144, 144, 144, 144, 144, 144, 106, 111, 144, 144, 119, 144, 144, 144, 144, 144,
144, 144, 144, 135, 144, 144, 144, 144, 144, 106, 0, 145, 144, 144, 144, 144, 144,
144, 144, 143, 76, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143,
143, 111, 143, 143, 143, 143, 143, 143, 143, 143, 143, 135, 143, 143, 143, 143, 0,
143, 141, 142, 143, 143, 135, 143, 4, 3, 143, 143, 143, 143, 143, 143, 143, 143,
143, 143, 143, 144, 71, 144, 144, 144, 144, 144, 144, 144, 144, 93, 144,
144, 144, 101, 144, 144, 144, 144, 115, 144, 122, 144, 144, 144, 130, 131, 144, 144,
144, 139, 144, 144, 144, 144, 0, 144, 144, 82, 144, 93, 144, 144, 143, 143, 143,
143, 143, 143, 143, 143, 143, 143, 93, 143, 143, 143, 143, 104, 143, 143, 143, 143,
143, 143, 143, 143, 143, 143, 143, 143, 143, 138, 143, 0, 143, 143, 143, 61, 62,
143, 143, 143, 143, 143, 143, 67, 143, 143, 144, 144, 144, 144, 144, 144, 144, 144,
144, 144, 144, 144, 144, 144, 144, 144, 123, 144, 125, 144, 144, 144, 136,
144, 67, 144, 144, 0, 144, 144, 144, 144, 144, 144, 140, 143, 143, 143, 143, 143,
143, 143, 143, 143, 143, 143, 143, 143, 143, 60, 143, 104, 102, 103, 143, 143, 143,
143, 143, 143, 117, 143, 143, 143, 143, 143, 143, 138, 67, 0, 143, 143, 136, 143,
143, 143, 143, 143, 143, 143, 143, 75, 144, 144, 77, 144, 144, 144, 144, 144, 144,
144, 99, 144, 81, 144, 144, 144, 127, 144, 144, 144, 144, 144, 0, 108, 107, 144,
144, 144, 144, 75, 143, 143, 77, 79, 143, 143, 143, 143, 143, 143, 143,
143, 143, 143, 107, 143, 143, 143, 143, 118, 143, 143, 127, 143, 143, 143, 143, 0,
143, 99, 143, 143, 143, 143, 143, 143, 143, 143, 144, 144, 144, 84, 144, 144, 92,
96, 144, 144, 144, 144, 144, 132, 133, 144, 144, 144, 0, 121, 144, 144, 116, 143,
143, 143, 143, 143, 143, 143, 91, 92, 143, 96, 143, 143, 143, 143, 143, 112, 143,
121, 143, 143, 129, 143, 143, 143, 0, 92, 143, 70, 143, 143, 143, 68, 143, 1,
144, 144, 80, 144, 144, 144, 70, 110, 113, 124, 68, 144, 1, 0, 144,
144, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 110, 143, 143, 143,
143, 11, 143, 143, 143, 0, 143, 143, 143, 66, 143, 144, 144, 144, 87, 144, 144,
2, 144, 144, 74, 143, 143, 143, 143, 143, 143, 94, 143, 143, 143, 109, 114, 143,
143, 10, 143, 137, 143, 12, 143, 143, 143, 143, 144, 73, 86, 144, 144, 134, 95,
73, 78, 143, 143, 143, 143, 143, 143, 105, 143, 126, 143, 89, 12, 64, 143, 143,
69, 144, 98, 69, 83, 85, 88, 143, 97, 143, 120, 143, 63, 65, 144,
90, 143, 128, 72, 100, 0};
static const YY_CHAR yy_ec[256] = {
0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 5, 6, 1, 7, 8, 9, 10, 11, 12,
13, 14, 15, 16, 17, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 21, 22, 23, 24,
25, 1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 7, 51, 52, 53, 54, 55, 1, 26, 27, 56, 57,
58, 31, 32, 33, 59, 35, 36, 60, 61, 62, 63, 41, 42, 64, 44, 45, 65, 47, 66, 49, 50,
7, 1, 67, 1, 68, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
static const YY_CHAR yy_meta[69] = {0, 1, 2, 2, 1, 1, 1, 3, 1, 1, 1, 1, 1, 4, 5, 1, 1, 6,
7, 3, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 6, 1,
1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 8, 8};
static const flex_int16_t yy_base[723] = {
0, 0, 0, 68, 0, 136, 0, 202, 0, 203, 207, 266, 269, 249, 254,
316, 0, 206, 211, 1341, 1342, 1342, 1342, 1342, 1317, 1342, 0, 1342, 1330, 1342,
1342, 1342, 204, 1342, 1342, 1322, 1342, 222, 368, 1314, 1342, 193, 203, 1312, 1342,
1302, 241, 188, 223, 245, 247, 250, 250, 1342, 1272, 1266, 0, 1342, 0, 1319,
1308, 0, 1307, 1305, 250, 358, 236, 248, 250, 252, 357, 350, 358, 1302, 359,
367, 1301, 363, 363, 1282, 380, 375, 375, 1266, 1306, 1342, 272, 1301, 1299, 371,
356, 363, 382, 385, 1342, 1342, 1342, 393, 1258, 399, 0,
1342, 1307, 404, 410, 399, 421, 403, 412, 424, 428, 411, 420, 433, 424, 434,
451, 438, 441, 465, 448, 1342, 1342, 1342, 1303, 1305, 455, 1342, 1342, 1342, 1342,
1299, 458, 1342, 1342, 1342, 464, 1342, 1342, 1293, 1297, 1342, 1305, 1342, 1342, 1342,
1300, 1342, 1342, 1342, 482, 1289, 1342, 1289, 1287, 1285, 1342, 484, 276, 488, 1342,
1241, 1289, 0, 1304, 1342, 0, 1342, 1342, 1342, 1342, 1342, 1342, 487, 0, 1342,
1342, 1342, 1342, 1342, 1342, 478, 474, 477, 478, 477, 479, 481, 482, 491, 489,
1249, 1342, 0, 1342, 0, 522, 501, 1259, 1271, 497,
1271, 505, 464, 516, 525, 515, 525, 525, 0, 1274, 1259, 0, 538, 1254, 541,
528, 533, 540, 1266, 535, 0, 528, 545, 537, 555, 543, 565, 1235, 576, 561,
568, 1251, 1268, 562, 1237, 559, 577, 0, 1249, 1247, 1259, 569, 1259, 567, 585,
567, 585, 570, 587, 1240, 591, 593, 0, 586, 594, 601, 601, 1243, 577, 605,
1261, 581, 0, 606, 623, 623, 612, 611, 1268, 641, 1267, 637, 646, 1266, 642,
0, 1281, 624, 1241, 1240, 636, 630, 1254, 1238, 631, 635, 641, 1218, 1251, 0,
1243, 633, 639, 640, 1244, 1233, 1229, 639, 0, 652,
1217, 1227, 0, 644, 645, 657, 653, 0, 642, 0, 1234, 1224, 1236, 0, 0,
643, 655, 682, 0, 679, 679, 688, 1207, 1210, 676, 677, 1224, 690, 1203, 1198,
690, 1236, 690, 686, 692, 693, 1230, 694, 684, 694, 692, 1205, 696, 698, 706,
1204, 745, 699, 1213, 707, 1216, 1230, 713, 730, 1214, 731, 1222, 737, 1208, 727,
1234, 731, 1206, 754, 751, 752, 0, 0, 733, 733, 744, 737, 740, 741, 0,
750, 1185, 1205, 746, 747, 746, 753, 754, 746, 1203, 1202, 1201, 1201, 757, 749,
1199, 1211, 1216, 0, 1215, 0, 769, 1214, 764, 0,
777, 0, 775, 1174, 1178, 1192, 1191, 771, 788, 1172, 1174, 790, 1189, 1200, 786,
782, 779, 793, 790, 795, 1205, 800, 1185, 801, 1184, 1181, 0, 794, 820, 1342,
1342, 1182, 1200, 1193, 800, 1179, 806, 0, 794, 796, 811, 1168, 812, 802, 1204,
1166, 816, 834, 843, 1202, 816, 828, 835, 835, 1193, 826, 1163, 1160, 0, 1171,
1188, 0, 1188, 831, 829, 1187, 831, 1162, 1166, 0, 838, 0, 846, 834, 1178,
0, 843, 1177, 842, 1153, 1150, 1141, 0, 0, 1160, 1160, 1144, 1142, 0, 844,
1172, 0, 1140, 838, 1157, 856, 843, 855, 848, 856,
1138, 1161, 859, 1129, 861, 860, 865, 875, 0, 1138, 1120, 0, 870, 885, 1125,
887, 888, 899, 1151, 890, 893, 1110, 1109, 1118, 1127, 885, 1097, 895, 880, 888,
0, 898, 892, 0, 0, 887, 904, 893, 1104, 905, 0, 0, 1121, 899, 1094,
1092, 0, 907, 1083, 0, 907, 906, 1106, 1091, 1086, 1095, 1110, 0, 0, 907,
0, 918, 930, 1094, 931, 921, 0, 927, 1079, 1058, 937, 0, 1067, 940, 932,
1070, 1077, 934, 0, 935, 1051, 945, 0, 947, 0, 951, 1046, 0, 942, 1045,
949, 0, 0, 0, 0, 0, 952, 0, 1031, 1056,
1027, 955, 1041, 954, 1042, 1040, 955, 1034, 953, 961, 1052, 959, 964, 0, 961,
1036, 967, 1045, 0, 965, 977, 970, 979, 990, 987, 977, 0, 935, 691, 990,
690, 0, 982, 531, 1342, 985, 469, 0, 997, 989, 995, 997, 990, 999, 0,
998, 481, 999, 0, 0, 1006, 1002, 0, 427, 0, 1004, 409, 355, 346, 1007,
263, 1003, 0, 0, 274, 256, 0, 0, 0, 0, 1011, 1013, 1018, 1019, 253,
1008, 0, 1023, 0, 265, 0, 289, 0, 200, 194, 0, 1020, 0, 0, 0,
0, 0, 1031, 0, 1031, 0, 180, 0, 0, 1042,
0, 1035, 0, 0, 0, 1342, 1100, 1108, 1116, 1124, 1130, 1136, 1142, 1148, 1154,
1159, 1165, 1173, 1179, 1183, 1189, 1195};
static const flex_int16_t yy_def[723] = {
0, 706, 1, 706, 3, 706, 5, 1, 7, 707, 707, 708, 708, 709, 709, 706, 15,
710, 710, 706, 706, 706, 706, 706, 706, 706, 711, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 712, 706, 706, 706, 706, 706, 706, 711, 711, 711, 711, 711, 711,
711, 711, 706, 711, 706, 711, 706, 713, 706, 706, 714, 706, 706, 713, 713, 713, 713,
713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 706, 706,
706, 715, 706, 706, 713, 713, 713, 713, 713, 706, 706, 706, 713, 713, 713, 713,
706, 706, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711,
711, 711, 711, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 706, 716, 706, 706, 706, 706, 706, 706, 706, 706, 706, 717, 706,
706, 706, 706, 706, 706, 716, 716, 716, 706, 706, 716, 718, 706, 706, 711, 706, 706,
706, 706, 706, 706, 712, 719, 706, 706, 706, 706, 706, 706, 711, 711, 711, 711, 711,
711, 711, 711, 711, 711, 711, 706, 713, 706, 714, 713, 713, 713, 713, 713,
713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713,
713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 706, 715, 713, 713, 713, 713, 713,
713, 713, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711,
711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 706,
716, 717, 720, 716, 716, 716, 716, 718, 706, 711, 711, 711, 711, 711, 711, 711, 711,
711, 711, 711, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713,
713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713,
713, 713, 713, 713, 713, 713, 706, 713, 713, 713, 713, 713, 713, 713, 711, 711, 711,
711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 721, 711, 711, 711, 711,
711, 711, 711, 711, 711, 711, 711, 711, 711, 722, 711, 706, 716, 716, 716, 711, 711,
711, 711, 711, 711, 711, 711, 711, 711, 711, 713, 713, 713, 713, 713, 713, 713, 713,
713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713,
713, 713, 713, 713, 706, 713, 713, 713, 713, 713, 713, 713, 711, 711, 711, 711, 711,
711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 721, 706, 706, 711, 711, 711,
711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 722, 711, 706, 716, 716, 716, 711,
711, 711, 711, 711, 711, 711, 711, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713,
713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 706, 713, 713, 713,
713, 713, 713, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711,
711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 706,
716, 716, 711, 711, 711, 711, 711, 711, 711, 711, 713, 713, 713, 713, 713, 713, 713,
713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 706, 713, 713, 713, 713, 711,
711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711,
711, 711, 711, 711, 711, 711, 711, 706, 716, 711, 711, 711, 711, 711, 711, 711, 711,
713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 706, 713,
713, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711,
711, 711, 711, 711, 711, 706, 711, 711, 711, 711, 711, 713, 713, 713, 713, 713, 713,
706, 713, 713, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711,
711, 711, 711, 711, 711, 706, 711, 711, 711, 711, 713, 713, 713, 713, 713, 713, 713,
711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 706, 711, 711, 711,
711, 713, 713, 713, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 713,
711, 711, 711, 713, 711, 0, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 706};
static const flex_int16_t yy_nxt[1411] = {
0, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 26, 46, 26, 26, 26, 47, 26,
26, 48, 26, 26, 26, 26, 26, 26, 26, 49, 26, 50, 26, 51, 52, 26, 26,
20, 20, 20, 53, 26, 46, 26, 26, 54, 26, 26, 26, 26, 49, 26, 52, 55,
56, 20, 21, 22, 23, 57, 25, 58, 20, 20, 29, 30, 31, 59, 33, 34, 35,
36, 60, 61, 39, 40, 62, 63, 20, 20, 64, 65, 66, 67, 68, 69, 70,
58, 71, 58, 58, 72, 73, 58, 74, 75, 58, 76, 77, 78, 79, 80, 81, 58,
58, 20, 20, 20, 20, 58, 66, 67, 68, 82, 72, 73, 58, 74, 76, 79, 81,
20, 58, 20, 21, 22, 23, 24, 25, 58, 27, 28, 83, 30, 31, 84, 33, 34,
85, 36, 86, 61, 39, 40, 87, 88, 43, 44, 58, 89, 58, 58, 90, 58, 70,
58, 91, 58, 58, 58, 58, 58, 92, 58, 58, 76, 93, 58, 58, 80, 81, 58,
58, 94, 95, 96, 53, 58, 58, 58, 97, 91, 58, 98, 58, 92, 76,
58, 99, 55, 100, 101, 122, 123, 164, 137, 122, 123, 20, 164, 137, 176, 177, 168,
184, 124, 102, 125, 169, 124, 703, 125, 178, 179, 103, 104, 105, 106, 107, 108, 109,
171, 110, 111, 699, 112, 172, 113, 114, 115, 698, 116, 184, 117, 118, 119, 126, 134,
135, 94, 126, 96, 134, 135, 105, 106, 107, 120, 112, 185, 113, 114, 116, 118, 128,
129, 130, 128, 129, 130, 182, 186, 202, 187, 205, 131, 188, 183, 131, 189, 190, 171,
185, 196, 203, 204, 172, 682, 206, 197, 166, 198, 136, 697, 694, 202, 689,
136, 273, 186, 183, 187, 688, 686, 188, 190, 196, 203, 204, 132, 197, 206, 132, 137,
138, 137, 137, 139, 137, 140, 141, 142, 143, 144, 145, 146, 147, 137, 148, 137, 149,
150, 151, 152, 153, 154, 155, 156, 140, 140, 140, 157, 140, 158, 140, 140, 140, 140,
140, 140, 140, 140, 140, 140, 140, 140, 140, 159, 140, 140, 140, 140, 140, 137, 137,
137, 160, 140, 140, 157, 140, 140, 140, 140, 140, 140, 140, 140, 140, 161, 162, 174,
166, 207, 199, 208, 212, 684, 210, 215, 209, 230, 218, 219, 200, 683, 213,
199, 231, 221, 201, 214, 222, 216, 220, 226, 224, 682, 208, 225, 208, 207, 199, 210,
230, 209, 174, 200, 219, 201, 214, 231, 221, 222, 232, 199, 216, 233, 230, 226, 226,
166, 166, 227, 224, 244, 241, 237, 247, 238, 242, 248, 250, 232, 239, 240, 233, 245,
249, 680, 184, 234, 243, 254, 236, 256, 255, 246, 244, 251, 237, 247, 238, 252, 241,
242, 258, 250, 253, 257, 259, 243, 254, 260, 263, 245, 264, 261, 184, 255, 246, 268,
251, 252, 268, 258, 252, 262, 253, 265, 268, 188, 257, 259, 266, 174, 166,
263, 166, 264, 174, 166, 166, 278, 279, 261, 267, 282, 298, 268, 262, 280, 268, 281,
283, 284, 286, 265, 268, 188, 272, 285, 676, 668, 274, 291, 298, 275, 287, 279, 174,
278, 282, 294, 280, 174, 281, 283, 284, 296, 297, 299, 285, 272, 286, 271, 271, 274,
275, 287, 166, 166, 289, 291, 303, 290, 294, 300, 302, 301, 304, 305, 296, 297, 309,
311, 306, 312, 313, 299, 318, 319, 666, 314, 317, 303, 320, 289, 290, 315, 321, 302,
322, 304, 305, 706, 299, 299, 312, 318, 706, 313, 309, 311, 336, 317, 314,
320, 322, 319, 315, 305, 338, 322, 325, 326, 306, 332, 321, 339, 342, 341, 344, 345,
299, 329, 347, 323, 352, 331, 351, 356, 336, 359, 305, 338, 343, 325, 340, 341, 348,
344, 332, 349, 350, 353, 354, 339, 342, 356, 357, 345, 359, 351, 347, 360, 352, 361,
362, 348, 363, 166, 349, 350, 174, 166, 166, 367, 353, 354, 166, 374, 370, 357, 288,
371, 360, 376, 375, 381, 390, 363, 380, 382, 386, 361, 362, 394, 398, 365, 367, 364,
387, 392, 366, 399, 374, 391, 371, 174, 370, 375, 393, 380, 381, 376, 382,
386, 390, 364, 394, 398, 365, 366, 271, 271, 391, 387, 400, 401, 399, 392, 402, 393,
403, 409, 403, 421, 406, 407, 414, 419, 416, 417, 422, 415, 425, 423, 426, 420, 427,
664, 662, 434, 401, 402, 400, 406, 407, 437, 421, 432, 403, 409, 412, 414, 415, 416,
417, 422, 423, 425, 420, 426, 430, 431, 438, 440, 427, 166, 432, 434, 442, 444, 446,
166, 166, 437, 166, 451, 453, 454, 452, 455, 456, 457, 460, 461, 450, 463, 464, 462,
465, 470, 438, 440, 444, 446, 471, 448, 442, 449, 451, 452, 454, 476, 455,
456, 453, 478, 480, 460, 461, 457, 462, 465, 450, 463, 464, 471, 479, 470, 448, 485,
486, 480, 491, 492, 493, 494, 495, 496, 478, 476, 498, 500, 507, 503, 480, 706, 706,
509, 485, 479, 166, 511, 510, 512, 514, 493, 492, 491, 486, 480, 515, 495, 517, 494,
166, 496, 503, 520, 498, 500, 507, 510, 511, 166, 521, 509, 522, 523, 525, 515, 532,
512, 514, 534, 537, 519, 531, 517, 538, 539, 520, 518, 541, 554, 543, 551, 556, 558,
557, 521, 559, 525, 566, 532, 522, 523, 534, 531, 560, 537, 539, 563, 565,
519, 554, 541, 538, 543, 551, 557, 567, 568, 571, 559, 556, 558, 572, 575, 576, 166,
566, 560, 578, 579, 563, 565, 584, 586, 587, 588, 589, 567, 591, 590, 592, 571, 568,
595, 593, 602, 597, 577, 573, 600, 572, 575, 576, 587, 609, 584, 578, 579, 588, 591,
603, 586, 590, 610, 589, 593, 611, 613, 592, 597, 577, 595, 614, 602, 600, 615, 618,
609, 621, 603, 622, 624, 625, 627, 619, 628, 610, 629, 661, 631, 634, 633, 638, 614,
611, 613, 640, 643, 615, 646, 645, 648, 649, 622, 624, 625, 621, 619, 650,
652, 654, 627, 631, 628, 655, 629, 633, 656, 634, 660, 638, 640, 643, 645, 657, 659,
648, 646, 663, 665, 649, 650, 667, 654, 652, 669, 670, 671, 673, 672, 656, 674, 655,
658, 660, 675, 677, 657, 678, 679, 695, 681, 665, 659, 685, 667, 663, 687, 690, 670,
691, 673, 671, 669, 672, 692, 674, 693, 675, 677, 696, 700, 679, 678, 681, 695, 687,
685, 701, 702, 704, 690, 705, 691, 653, 651, 647, 644, 692, 642, 693, 641, 700, 696,
639, 637, 636, 635, 632, 630, 626, 701, 702, 166, 623, 705, 620, 617, 704,
121, 121, 121, 121, 121, 121, 121, 121, 127, 127, 127, 127, 127, 127, 127, 127, 133,
133, 133, 133, 133, 133, 133, 133, 163, 163, 163, 163, 163, 163, 163, 163, 166, 616,
612, 608, 166, 166, 173, 607, 606, 173, 173, 173, 193, 605, 604, 601, 599, 193, 195,
598, 596, 594, 585, 195, 229, 229, 583, 229, 229, 269, 582, 581, 580, 269, 269, 270,
166, 574, 270, 270, 270, 276, 570, 276, 276, 276, 276, 276, 276, 174, 569, 564, 174,
271, 562, 561, 555, 271, 271, 429, 429, 429, 553, 429, 429, 445, 552, 550,
549, 445, 445, 548, 547, 546, 545, 544, 542, 540, 536, 535, 533, 530, 529, 528, 527,
526, 524, 166, 516, 166, 513, 508, 506, 505, 504, 502, 501, 499, 497, 490, 489, 488,
487, 484, 483, 482, 481, 477, 475, 474, 473, 472, 469, 468, 467, 466, 459, 458, 447,
166, 443, 441, 439, 436, 435, 433, 428, 424, 418, 413, 411, 410, 408, 405, 404, 397,
396, 395, 389, 388, 385, 384, 383, 379, 378, 377, 373, 372, 369, 368, 277, 166, 166,
166, 358, 355, 346, 337, 335, 334, 333, 330, 328, 327, 324, 316, 310, 308,
307, 295, 293, 292, 288, 277, 166, 192, 180, 178, 176, 175, 168, 167, 166, 165, 169,
171, 170, 171, 235, 178, 176, 169, 228, 223, 217, 211, 179, 177, 194, 168, 192, 191,
181, 180, 175, 170, 167, 165, 706, 19, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 706, 706, 706, 706, 706, 706};
static const flex_int16_t yy_chk[1411] = {
0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 7, 9, 9, 17, 17, 10, 10, 7, 18, 18, 41, 41, 32,
47, 9, 7, 9, 32, 10, 697, 10, 42, 42, 7, 7, 7, 7, 7, 7, 7,
37, 7, 7, 685, 7, 37, 7, 7, 7, 684, 7, 47, 7, 7, 7, 9, 13,
13, 7, 10, 7, 14, 14, 7, 7, 7, 7, 7, 48, 7, 7, 7, 7, 11,
11, 11, 12, 12, 12, 46, 49, 66, 50, 69, 11, 51, 46, 12, 51, 52, 86,
48, 64, 67, 68, 86, 682, 69, 64, 158, 64, 13, 680, 675, 66, 666,
14, 158, 49, 46, 50, 665, 661, 51, 52, 64, 67, 68, 11, 64, 69, 12, 15,
15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 38,
38, 70, 65, 71, 74, 659, 72, 75, 71, 90, 77, 77, 65, 658, 74,
89, 91, 78, 65, 74, 78, 75, 77, 81, 80, 657, 71, 80, 82, 70, 65, 72,
90, 82, 38, 65, 77, 65, 74, 91, 78, 78, 92, 89, 75, 93, 97, 99, 81,
38, 38, 82, 80, 105, 104, 103, 107, 103, 104, 107, 108, 92, 103, 103, 93, 106,
107, 654, 109, 97, 104, 111, 99, 113, 112, 106, 105, 109, 103, 107, 103, 110, 104,
104, 114, 108, 110, 113, 115, 104, 111, 116, 117, 106, 118, 116, 109, 112, 106, 126,
109, 120, 132, 114, 110, 116, 120, 119, 136, 119, 113, 115, 119, 150, 150,
117, 157, 118, 173, 173, 159, 181, 182, 116, 120, 185, 203, 126, 116, 183, 132, 184,
186, 187, 189, 119, 136, 119, 157, 188, 647, 637, 159, 197, 203, 159, 190, 182, 150,
181, 185, 200, 183, 173, 184, 186, 187, 202, 202, 204, 188, 157, 189, 150, 150, 159,
159, 190, 173, 173, 196, 197, 206, 196, 200, 204, 205, 204, 207, 208, 202, 202, 213,
215, 208, 216, 217, 204, 222, 223, 634, 218, 220, 206, 224, 196, 196, 218, 225, 205,
226, 207, 208, 229, 230, 234, 216, 222, 229, 217, 213, 215, 242, 220, 218,
224, 236, 223, 218, 227, 244, 226, 231, 231, 227, 237, 225, 245, 247, 246, 248, 249,
230, 234, 251, 227, 255, 236, 254, 259, 242, 262, 227, 244, 247, 231, 245, 246, 252,
248, 237, 252, 252, 256, 257, 245, 247, 259, 260, 249, 262, 254, 251, 264, 255, 265,
266, 267, 268, 272, 267, 267, 270, 270, 275, 278, 256, 257, 273, 285, 281, 260, 267,
282, 264, 287, 286, 293, 304, 268, 292, 294, 298, 265, 266, 309, 316, 273, 278, 272,
300, 306, 275, 317, 285, 305, 282, 270, 281, 286, 307, 292, 293, 287, 294,
298, 304, 272, 309, 316, 273, 275, 270, 270, 305, 300, 318, 320, 317, 306, 321, 307,
322, 328, 331, 339, 325, 326, 333, 338, 335, 336, 340, 334, 343, 341, 344, 338, 345,
631, 629, 350, 320, 321, 318, 325, 326, 353, 339, 348, 322, 328, 331, 333, 334, 335,
336, 340, 341, 343, 338, 344, 347, 347, 354, 356, 345, 347, 348, 350, 358, 360, 362,
365, 366, 353, 364, 369, 371, 372, 370, 373, 374, 376, 379, 380, 366, 382, 383, 381,
384, 389, 354, 356, 360, 362, 390, 364, 358, 365, 369, 370, 372, 397, 373,
374, 371, 399, 403, 379, 380, 376, 381, 384, 366, 382, 383, 390, 401, 389, 364, 408,
409, 412, 415, 416, 417, 418, 419, 420, 399, 397, 422, 424, 435, 428, 403, 429, 429,
437, 408, 401, 429, 440, 439, 441, 443, 417, 416, 415, 409, 412, 444, 419, 447, 418,
448, 420, 428, 451, 422, 424, 435, 439, 440, 449, 452, 437, 453, 454, 456, 444, 465,
441, 443, 467, 471, 449, 464, 447, 473, 474, 451, 448, 477, 494, 479, 490, 496, 498,
497, 452, 499, 456, 506, 465, 453, 454, 467, 464, 500, 471, 474, 503, 505,
449, 494, 477, 473, 479, 490, 497, 507, 508, 513, 499, 496, 498, 514, 516, 517, 518,
506, 500, 520, 521, 503, 505, 526, 528, 529, 530, 532, 507, 536, 533, 537, 513, 508,
540, 538, 551, 544, 518, 514, 548, 514, 516, 517, 529, 560, 526, 520, 521, 530, 536,
552, 528, 533, 562, 532, 538, 563, 565, 537, 544, 518, 540, 566, 551, 548, 568, 571,
560, 574, 552, 575, 578, 580, 582, 571, 584, 562, 586, 628, 589, 597, 591, 602, 566,
563, 565, 604, 607, 568, 610, 609, 612, 613, 575, 578, 580, 574, 571, 615,
617, 620, 582, 589, 584, 621, 586, 591, 622, 597, 626, 602, 604, 607, 609, 623, 625,
612, 610, 630, 633, 613, 615, 636, 620, 617, 639, 640, 641, 643, 642, 622, 644, 621,
624, 626, 646, 648, 623, 651, 652, 676, 656, 633, 625, 660, 636, 630, 662, 671, 640,
672, 643, 641, 639, 642, 673, 644, 674, 646, 648, 678, 687, 652, 651, 656, 676, 662,
660, 693, 695, 700, 671, 702, 672, 618, 616, 611, 608, 673, 606, 674, 605, 687, 678,
603, 601, 600, 599, 590, 587, 581, 693, 695, 577, 576, 702, 573, 570, 700,
707, 707, 707, 707, 707, 707, 707, 707, 708, 708, 708, 708, 708, 708, 708, 708, 709,
709, 709, 709, 709, 709, 709, 709, 710, 710, 710, 710, 710, 710, 710, 710, 711, 569,
564, 557, 711, 711, 712, 556, 555, 712, 712, 712, 713, 554, 553, 549, 546, 713, 714,
545, 543, 539, 527, 714, 715, 715, 525, 715, 715, 716, 524, 523, 522, 716, 716, 717,
519, 515, 717, 717, 717, 718, 511, 718, 718, 718, 718, 718, 718, 719, 510, 504, 719,
720, 502, 501, 495, 720, 720, 721, 721, 721, 493, 721, 721, 722, 491, 488,
487, 722, 722, 486, 485, 482, 481, 480, 478, 475, 469, 468, 466, 463, 461, 460, 458,
457, 455, 450, 446, 445, 442, 436, 434, 433, 432, 426, 425, 423, 421, 414, 413, 411,
410, 407, 406, 405, 404, 398, 395, 393, 392, 391, 388, 387, 386, 385, 378, 377, 363,
361, 359, 357, 355, 352, 351, 349, 346, 342, 337, 332, 330, 329, 327, 324, 323, 313,
312, 311, 302, 301, 297, 296, 295, 291, 289, 288, 284, 283, 280, 279, 277, 274, 271,
269, 261, 258, 250, 243, 241, 240, 239, 235, 233, 232, 228, 219, 214, 211,
210, 201, 199, 198, 191, 164, 162, 161, 155, 154, 153, 151, 146, 142, 140, 139, 131,
125, 124, 102, 98, 88, 87, 84, 83, 79, 76, 73, 63, 62, 60, 59, 55, 54,
45, 43, 39, 35, 28, 24, 19, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 706, 706, 706, 706, 706, 706};
static yy_state_type yy_last_accepting_state;
static char *yy_last_accepting_cpos;
extern int yy_flex_debug;
int yy_flex_debug = 0;
/* The intent behind this definition is that it'll catch
* any uses of REJECT which flex missed.
*/
#define REJECT reject_used_but_not_detected
#define yymore() yymore_used_but_not_detected
#define YY_MORE_ADJ 0
#define YY_RESTORE_YY_MORE_OFFSET
char *yytext;
#line 1 "acf_lex.l"
#line 2 "acf_lex.l"
/*
* $Id: acf_lex.l,v 1.2 2004/06/22 21:44:10 mjames Exp $ *
*
* $Log: acf_lex.l,v $
* Revision 1.2 2004/06/22 21:44:10 mjames
* Firrst build most files
*
* Revision 1.30 2002/10/02 18:46:34 MJAMES
* attribute is recognised in acfp syntax as well as vhdl
*
* Revision 1.29 2002/09/27 22:24:14 MJAMES
* Separated out a quote as a token
* Added VHDL_CONN token
*
* Revision 1.28 2002/09/16 11:03:50 mjames
* Added some of the generic string types to the input parser.
*
* Revision 1.27 2002/09/09 10:14:58 mjames
* Modified expression parser to match CC as previous one was
* broken
*
* Revision 1.26 2002/08/23 14:21:55 mjames
* Added the <VHDL> string keyword.
*
* Revision 1.25 2002/08/19 14:31:27 mjames
* Removed an incompatibility with env_string generics where the output
* of Vertical caused an error under some circumstances.
*
* Revision 1.24 2002/08/14 11:58:43 mjames
* Corrected end-of-file behaviour that resulted in an infinite loop
*
* Revision 1.23 2002/08/06 12:56:21 mjames
* Merge in from latest version
*
*
* Revision 1.25 2002/08/06 09:25:23 mjames
* Changed file include handler for an improved one.
* Improvements created as a part of a microcode assembler
*
* Revision 1.24 2002/03/22 16:16:28 mjames
* Modifications to undo over-zealous checking of
* current chip even in incorrect scenarios.
*
* Revision 1.23 2002/03/21 17:11:32 mjames
* Allowed '[' and ']' in acfp file syntax for pin identifiers in Quartus
*
* Revision 1.22 2002/01/21 09:28:49 mjames
* coredump when opening non-existent Verilog include file due to
* use of NULL file pointer. Avoided by not using file pointer until certain
* that file was opened properly.
*
* Revision 1.21 2002/01/16 10:04:35 mjames
* Added package definitions to VHDL syntax
* According to report by John Marquis
*
* Revision 1.20 2001/12/13 22:12:16 mjames
* Vertical now supports nested include database files
* This allows wrappers around 'pure' VHDL or Verilog files
*
* Revision 1.19 2001/12/11 21:29:56 mjames
* Verilog syntax now read in by Vertical allows pin templates
* defined by Certify to be used.
*
* Revision 1.18 2001/11/30 22:21:19 mjames
* Modifying Verilog reading syntax to accept valid code.
*
* Revision 1.17 2001/11/19 10:41:54 mjames
* Merged back DTC release
*
* Revision 1.16.2.1 2001/11/16 15:10:59 mjames
* Removed an unecessary local variable
*
* Revision 1.16 2001/10/31 22:19:56 mjames
* Tidying up problematical comments caused by CVS
* 'intelligent' comment guessing
*
* Revision 1.15 2001/09/28 14:34:13 mjames
* FIxed yydebug variable to exist when YYDEBUG macro
* is not defined. Otherwise linker error will be reported.
*
* Revision 1.14 2001/09/16 20:01:06 mjames
* tidying
*
* Revision 1.13 2001/07/09 09:36:30 mjames
* Amending the syntax and end of file behaviour to allow Quartus pin fit files
* to be read .
* They are harder to read because they are not block structured. The end of file is used as a
* marker. Vertical has been persuaded to handle end of file events properly.
*
* Revision 1.12 2001/07/06 12:50:36 mjames
* Added the ability to read in Quartus pinfit files
*
* Revision 1.11 2001/07/05 15:12:36 MJAMES
* Amended to read Quartus pin files. not fully working
*
* Revision 1.10 2001/06/06 12:10:27 mjames
* Move from HPUX
*
* Revision 1.9 2001/04/30 10:01:08 Administrator
* Have finally got the Verilog/VHDL comment pragma parser working.
*
* Revision 1.8 2001/04/30 07:55:53 mjames
* Improving parsing of Verilog, still a few loose ends
*
* Revision 1.7 2001/04/27 22:30:10 mjames
* Starting to get comment and pragma handling OK.
* Added correct header file includes to lx_support.c
*
* Revision 1.6 2001/03/29 08:27:06 mjames
* Converted frbread for use with the newer files from the drawing office
*
* Revision 1.5 2001/02/21 16:37:33 mjames
* Provided a new method of defining port maps with VHDL which allows for short
* cut definitions.
*
* Cleaned up TCL/Tk interfacing issues
*
* Revision 1.4 2001/01/02 07:53:51 mjames
* Made changes to allow for interface with TCL/Tk
*
* Revision 1.3 2000/12/04 12:55:48 mjames
* Copied files back from HPUX to create definitive CygWin version
*
* Then amended the syntax of ACFP files so that a/2 was no longer
* seen as "a/2" but instead as "a" divided_by 2. This was a throwback
* to some of the earlier efforts at variant syntax for VHDL and ACFP
* parsing.
*
* Revision 1.2 2000/10/19 22:19:49 mjames
* removed header lines
*
* Revision 1.1.1.1 2000/10/19 21:58:34 mjames
* Mike put it here
*
*
*/
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* see makefile for how this appears */
#include "acf_yacc.h"
#include "cmdlog.h"
#include "cmdparse.h"
#include "cmdutil.h"
#include "database.h"
#include "expression.h"
#include "generic.h"
#include "lx_support.h"
#include "vertcl_main.h"
#include "yywrap.h"
#define YYLMAX MAXIDLEN
#if !defined YY_START
#define YY_START (yybgin - 1 - yysvec)
#endif
/* YY_INPUT redefinition
keep the original definition, replace with a function which will
check a flag and either use the original file reading version or read from
a string */
#define MAX_INCLUDE_DEPTH 10
#ident \
"@(#)$Header: C:/cvsroot/Vert03/acf_src/acf_lex.l,v 1.2 2004/06/22 21:44:10 mjames Exp $"
/* state stores for include files */
YY_BUFFER_STATE include_stack[MAX_INCLUDE_DEPTH];
struct str *incl_first = NULL, *incl_last = NULL;
char *filename[MAX_INCLUDE_DEPTH];
int old_linenumber[MAX_INCLUDE_DEPTH];
FILE *handles[MAX_INCLUDE_DEPTH];
int include_stack_ptr = 0;
char lex_from_string = 0;
extern int errorseen;
extern int yyval;
extern int yydebug;
extern int lineno;
extern int inside_block; /* flag to help 'generic' context dependence */
generic_info_t info;
int prev_begin = -1;
int prev_begin_include = -1;
int read_state = 1; /* start off by reading */
int comment_type = 0;
void lex_exec_line (void);
void skip_to_eol (void);
void skip_c_comment (void);
void exit_lex_block (void);
int my_yyinput (char *buf, int max_size);
static char *yyerr_start_names[] = {"INITIAL",
"vhdl",
"Verilog",
"ACFplus",
"skipping",
"C (Verilog) comment",
"VHDL comment",
"Command line expression",
"Include file area"};
/* token forced into LEX by method described in
Lex & Yacc , O'Reilly page 206 */
int start_grammar;
#line 1232 "acf_lex.c"
/* removed '.' '-' ':' '/' ',' from here as it is now a unique token */
/* Permit '$' as this could become a variable to be expanded in make_string */
/* do not permit square brackets in ACFP syntax inside strings (to be handled properly) */
/* no / in this set, as its a valid arithmetic operator */
/* lex directive */
/* can have VHDL Verilog and ACFP keywords defined exclusively */
/* s inclusive set */
/* expression tokens are used on the command line */
/* copied almost verbatim from the examples given */
#line 1245 "acf_lex.c"
#define INITIAL 0
#define vhdl 1
#define vlog 2
#define acfp 3
#define pragma 4
#define vert_c_comment 5
#define vert_vhdl_comment 6
#define expr 7
#define incl 8
#ifndef YY_NO_UNISTD_H
/* Special case for "unistd.h", since it is non-ANSI. We include it way
* down here because we want the user's section 1 to have been scanned first.
* The user has a chance to override it with an option.
*/
#include <unistd.h>
#endif
#ifndef YY_EXTRA_TYPE
#define YY_EXTRA_TYPE void *
#endif
static int yy_init_globals (void);
/* Accessor methods to globals.
These are made visible to non-reentrant scanners for convenience. */
int yylex_destroy (void);
int yyget_debug (void);
void yyset_debug (int debug_flag);
YY_EXTRA_TYPE yyget_extra (void);
void yyset_extra (YY_EXTRA_TYPE user_defined);
FILE *yyget_in (void);
void yyset_in (FILE *_in_str);
FILE *yyget_out (void);
void yyset_out (FILE *_out_str);
int yyget_leng (void);
char *yyget_text (void);
int yyget_lineno (void);
void yyset_lineno (int _line_number);
/* Macros after this point can all be overridden by user definitions in
* section 1.
*/
#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
extern "C" int yywrap (void);
#else
extern int yywrap (void);
#endif
#endif
#ifndef YY_NO_UNPUT
static void yyunput (int c, char *buf_ptr);
#endif
#ifndef yytext_ptr
static void yy_flex_strncpy (char *, const char *, int);
#endif
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen (const char *);
#endif
#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput (void);
#else
static int input (void);
#endif
#endif
/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
#ifdef __ia64__
/* On IA-64, the buffer size is 16k, not 8k */
#define YY_READ_BUF_SIZE 16384
#else
#define YY_READ_BUF_SIZE 8192
#endif /* __ia64__ */
#endif
/* Copy whatever the last rule matched to the standard output. */
#ifndef ECHO
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
#define ECHO \
do \
{ \
if (fwrite (yytext, (size_t) yyleng, 1, yyout)) \
{ \
} \
} while (0)
#endif
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
* is returned in "result".
*/
#ifndef YY_INPUT
#define YY_INPUT(buf, result, max_size) \
if (YY_CURRENT_BUFFER_LVALUE->yy_is_interactive) \
{ \
int c = '*'; \
int n; \
for (n = 0; n < max_size && (c = getc (yyin)) != EOF && c != '\n'; ++n) \
buf[n] = (char) c; \
if (c == '\n') \
buf[n++] = (char) c; \
if (c == EOF && ferror (yyin)) \
YY_FATAL_ERROR ("input in flex scanner failed"); \
result = n; \
} \
else \
{ \
errno = 0; \
while ((result = (int) fread (buf, 1, (yy_size_t) max_size, yyin)) == 0 && \
ferror (yyin)) \
{ \
if (errno != EINTR) \
{ \
YY_FATAL_ERROR ("input in flex scanner failed"); \
break; \
} \
errno = 0; \
clearerr (yyin); \
} \
}
#endif
/* No semi-colon after return; correct usage is to write "yyterminate();" -
* we don't want an extra ';' after the "return" because that will cause
* some compilers to complain about unreachable statements.
*/
#ifndef yyterminate
#define yyterminate() return YY_NULL
#endif
/* Number of entries by which start-condition stack grows. */
#ifndef YY_START_STACK_INCR
#define YY_START_STACK_INCR 25
#endif
/* Report a fatal error. */
#ifndef YY_FATAL_ERROR
#define YY_FATAL_ERROR(msg) yy_fatal_error (msg)
#endif
/* end tables serialization structures and prototypes */
/* Default declaration of generated scanner - a define so the user can
* easily add parameters.
*/
#ifndef YY_DECL
#define YY_DECL_IS_OURS 1
extern int yylex (void);
#define YY_DECL int yylex (void)
#endif /* !YY_DECL */
/* Code executed at the beginning of each rule, after yytext and yyleng
* have been set up.
*/
#ifndef YY_USER_ACTION
#define YY_USER_ACTION
#endif
/* Code executed at the end of each rule. */
#ifndef YY_BREAK
#define YY_BREAK /*LINTED*/ break;
#endif
#define YY_RULE_SETUP YY_USER_ACTION
/** The main scanner function which does all the work.
*/
YY_DECL
{
yy_state_type yy_current_state;
char *yy_cp, *yy_bp;
int yy_act;
if (!(yy_init))
{
(yy_init) = 1;
#ifdef YY_USER_INIT
YY_USER_INIT;
#endif
if (!(yy_start))
(yy_start) = 1; /* first start state */
if (!yyin)
yyin = stdin;
if (!yyout)
yyout = stdout;
if (!YY_CURRENT_BUFFER)
{
yyensure_buffer_stack ();
YY_CURRENT_BUFFER_LVALUE = yy_create_buffer (yyin, YY_BUF_SIZE);
}
yy_load_buffer_state ();
}
{
#line 292 "acf_lex.l"
#line 296 "acf_lex.l"
/* Page 206, Lex & Yacc , O'Reilly */
/* solution to multiple lexers */
if (start_grammar)
{
int tmp = start_grammar;
start_grammar = 0;
return tmp;
}
#line 1487 "acf_lex.c"
while (/*CONSTCOND*/ 1) /* loops until end-of-file is reached */
{
yy_cp = (yy_c_buf_p);
/* Support of yytext. */
*yy_cp = (yy_hold_char);
/* yy_bp points to the position in yy_ch_buf of the start of
* the current run.
*/
yy_bp = yy_cp;
yy_current_state = (yy_start);
yy_match:
do
{
YY_CHAR yy_c = yy_ec[YY_SC_TO_UI (*yy_cp)];
if (yy_accept[yy_current_state])
{
(yy_last_accepting_state) = yy_current_state;
(yy_last_accepting_cpos) = yy_cp;
}
while (yy_chk[yy_base[yy_current_state] + yy_c] !=
yy_current_state)
{
yy_current_state = (int) yy_def[yy_current_state];
if (yy_current_state >= 707)
yy_c = yy_meta[yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
++yy_cp;
} while (yy_base[yy_current_state] != 1342);
yy_find_action:
yy_act = yy_accept[yy_current_state];
if (yy_act == 0)
{ /* have to back up */
yy_cp = (yy_last_accepting_cpos);
yy_current_state = (yy_last_accepting_state);
yy_act = yy_accept[yy_current_state];
}
YY_DO_BEFORE_ACTION;
do_action: /* This label is used only to access EOF actions. */
switch (yy_act)
{ /* beginning of action switch */
case 0: /* must back up */
/* undo the effects of YY_DO_BEFORE_ACTION */
*yy_cp = (yy_hold_char);
yy_cp = (yy_last_accepting_cpos);
yy_current_state = (yy_last_accepting_state);
goto yy_find_action;
case 1:
YY_RULE_SETUP
#line 308 "acf_lex.l"
{
prev_begin_include = YY_START;
BEGIN (incl);
}
YY_BREAK
case 2:
YY_RULE_SETUP
#line 310 "acf_lex.l"
{
prev_begin_include = YY_START;
BEGIN (incl);
}
YY_BREAK
case 3:
YY_RULE_SETUP
#line 313 "acf_lex.l"
/* eat the whitespace */
YY_BREAK
case 4:
YY_RULE_SETUP
#line 314 "acf_lex.l"
{ /* got the include file name */
if (include_stack_ptr >= MAX_INCLUDE_DEPTH)
{
Log (
LOG_ERROR,
"-- Includes nested too deeply\n");
}
if (errorseen)
{
Log (
LOG_ERROR,
"-- skipping include: previous error\n");
}
/* printf("++ Using
* Begin=%s\n",yyerr_start_names[YY_START]); */
include_stack[include_stack_ptr] = YY_CURRENT_BUFFER;
/* expand arguments in string */
old_linenumber[include_stack_ptr] = lineno;
handles[include_stack_ptr] = yyin;
include_stack_ptr++;
filename[include_stack_ptr] = strdup (yytext);
yyin
= fopen (filename
[include_stack_ptr
], "r");
if (!yyin)
{
Log (
LOG_ERROR,
"-- cannot open include file '%s'\n",
filename[include_stack_ptr]);
include_stack_ptr -= 1;
lineno = old_linenumber[include_stack_ptr];
/* yy_switch_to_buffer(
include_stack[include_stack_ptr]
);
*/
yyin = handles[include_stack_ptr];
}
else
{
lineno = 1;
yy_switch_to_buffer (
yy_create_buffer (yyin, YY_BUF_SIZE));
}
BEGIN (prev_begin_include);
}
YY_BREAK
case YY_STATE_EOF (INITIAL):
case YY_STATE_EOF (vhdl):
case YY_STATE_EOF (vlog):
case YY_STATE_EOF (acfp):
case YY_STATE_EOF (pragma):
case YY_STATE_EOF (vert_c_comment):
case YY_STATE_EOF (vert_vhdl_comment):
case YY_STATE_EOF (expr):
case YY_STATE_EOF (incl):
#line 366 "acf_lex.l"
{
/* rewind(yyin); */
/* printf("-- +++ At level %d\n",include_stack_ptr);
*/
if (include_stack_ptr == 0)
{
/* printf("lex: termination\n"); */
/* YY_FLUSH_BUFFER;
yy_delete_buffer( YY_CURRENT_BUFFER );
*/
exit_lex_block ();
yyterminate ();
}
else
{
/* printf("lex: backup level in file
* buffer\n"); */
/* YY_FLUSH_BUFFER; */
include_stack_ptr--;
yy_delete_buffer (YY_CURRENT_BUFFER);
lineno = old_linenumber[include_stack_ptr];
yyin = handles[include_stack_ptr];
yy_switch_to_buffer (include_stack[include_stack_ptr]);
}
/* printf("handle ending"); */
break;
}
YY_BREAK
case 5:
YY_RULE_SETUP
#line 396 "acf_lex.l"
{
char t;
char *p;
char buff[MAXIDLEN];
int c; /* quoted string using either type of quotes,
* including escaped quotes */
t = *yytext; /* determine terminator */
p = buff; /* setup destination */
for (;;)
{
c = input ();
if (c == t)
break;
if (c == '\n')
{
lineno++;
Log (
LOG_GENERAL,
"Carriage Return in string (line "
"%d)\n",
lineno);
continue;
}
if (c == '\\')
{
*p++ = c;
c = input ();
}
if (c == EOF)
{
Log (
LOG_GENERAL,
"End of file in string\n");
break;
}
if (c < ' ')
{
Log (
LOG_GENERAL,
"Ctl char 0x%02X in string\n",
c);
break;
}
*p++ = c;
if ((p - buff) >= MAXIDLEN - 100)
{
Log (
LOG_GENERAL,
"No closing quote after %d chars "
"in string\n",
MAXIDLEN - 100);
break;
}
}
*p = 0;
yylval.string =
make_string (buff, &lx_first, &lx_last);
/* printf("quoted
* (yytext:'%s')\n",yylval.string); */
if (yydebug)
stderr,
"String (quo) ='%s'\n",
yylval.string);
return (QUOTED_STRING);
};
YY_BREAK
case 6:
YY_RULE_SETUP
#line 446 "acf_lex.l"
{
char *p;
char buff[MAXIDLEN];
int c;
p = buff; /* setup destination */
while (1)
{
c = input ();
c != ']') /* any non-space char */
break;
*p++ = c;
}
*p = 0;
yylval.string =
make_string (buff, &lx_first, &lx_last);
if (yydebug)
stderr,
"String (escaped) ='%s'\n",
yylval.string);
return (QUOTED_STRING);
};
YY_BREAK
case 7:
YY_RULE_SETUP
#line 469 "acf_lex.l"
{
/*
printf("-- vhdl
comment");
*/
one_line_comment:
if (YY_START != pragma)
prev_begin = YY_START;
comment_type = vert_vhdl_comment;
BEGIN (vert_vhdl_comment);
break;
};
YY_BREAK
case 8:
YY_RULE_SETUP
#line 479 "acf_lex.l"
{
/*
printf("-- vhdl
comment");
*/
goto one_line_comment;
};
YY_BREAK
case 9:
YY_RULE_SETUP
#line 487 "acf_lex.l"
{
/*
printf("-- C comment");
*/
if (YY_START != pragma)
prev_begin = YY_START;
comment_type = vert_c_comment;
BEGIN (vert_c_comment);
break;
};
YY_BREAK
case 10:
YY_RULE_SETUP
#line 499 "acf_lex.l"
{
/*
printf(" Read Off");
*/
if (comment_type == vert_c_comment)
skip_c_comment ();
if (comment_type == vert_vhdl_comment)
skip_to_eol ();
/*
printf(" Skipped
comment\n");
*/
read_state = 0;
BEGIN (pragma);
break;
};
YY_BREAK
case 11:
YY_RULE_SETUP
#line 515 "acf_lex.l"
{
/*
printf(" Read On");
*/
if (comment_type == vert_c_comment)
skip_c_comment ();
if (comment_type == vert_vhdl_comment)
skip_to_eol ();
/*
printf(" Skipped
comment\n");
*/
read_state = 1;
if (prev_begin >= 0)
BEGIN (prev_begin);
break;
};
YY_BREAK
case 12:
YY_RULE_SETUP
#line 533 "acf_lex.l"
{
/*
printf(" Vertical");
*/
/* the line is acfp syntax */
BEGIN (acfp);
break;
};
YY_BREAK
case 13:
/* rule 13 can match eol */
YY_RULE_SETUP
#line 542 "acf_lex.l"
{
lineno++;
if (comment_type == vert_vhdl_comment)
{
/*
printf(" endline\n");
*/
comment_type = -1;
lineno++;
if (read_state == 0) /* parser was not reading,
so go back into pragma
context */
BEGIN (pragma);
else /* parser was reading, so go back into
pre-comment context */
BEGIN (prev_begin);
break;
}
};
YY_BREAK
case 14:
YY_RULE_SETUP
#line 559 "acf_lex.l"
{
/* pickup only inside a pragma enclosed in a C comment
*/
/*
printf(" end C comment\n");
*/
if (comment_type != vert_c_comment)
Log (
LOG_ERROR,
"-- close comment unexpected\n");
comment_type = -1;
if (read_state == 0) /* parser was not reading, so go
back into pragma context */
BEGIN (pragma);
else /* parser was reading, so go back into pre-comment
context */
BEGIN (prev_begin);
break;
};
YY_BREAK
case 15:
/* rule 15 can match eol */
YY_RULE_SETUP
#line 577 "acf_lex.l"
{
lineno++;
break;
};
YY_BREAK
case 16:
/* rule 16 can match eol */
YY_RULE_SETUP
#line 579 "acf_lex.l"
{
lineno++;
break;
};
YY_BREAK
case 17:
YY_RULE_SETUP
#line 580 "acf_lex.l"
{
break;
};
YY_BREAK
case 18:
YY_RULE_SETUP
#line 582 "acf_lex.l"
{
break;
};
YY_BREAK
case 19:
YY_RULE_SETUP
#line 584 "acf_lex.l"
{
skip_to_eol ();
goto ignored_comment;
};
YY_BREAK
case 20:
YY_RULE_SETUP
#line 588 "acf_lex.l"
{
skip_c_comment ();
ignored_comment:
comment_type = -1;
if (read_state == 0) /* parser was not reading, so go
back into pragma context */
BEGIN (pragma);
else /* parser was reading, so go back into pre-comment
context */
BEGIN (prev_begin);
break;
};
YY_BREAK
case 21:
YY_RULE_SETUP
#line 596 "acf_lex.l"
{
break;
};
YY_BREAK
case 22:
YY_RULE_SETUP
#line 599 "acf_lex.l"
{
return QUOTE;
};
YY_BREAK
case 23:
YY_RULE_SETUP
#line 600 "acf_lex.l"
{
return CONNECTED;
};
YY_BREAK
case 24:
YY_RULE_SETUP
#line 601 "acf_lex.l"
{
return ASSIGN;
};
YY_BREAK
case 25:
YY_RULE_SETUP
#line 602 "acf_lex.l"
{
return SIG_ASSIGN;
};
YY_BREAK
case 26:
YY_RULE_SETUP
#line 603 "acf_lex.l"
{
return (':');
};
YY_BREAK
case 27:
YY_RULE_SETUP
#line 604 "acf_lex.l"
{
return (';');
};
YY_BREAK
case 28:
YY_RULE_SETUP
#line 605 "acf_lex.l"
{
return ('=');
};
YY_BREAK
case 29:
YY_RULE_SETUP
#line 606 "acf_lex.l"
{
return ('(');
};
YY_BREAK
case 30:
YY_RULE_SETUP
#line 607 "acf_lex.l"
{
return (')');
};
YY_BREAK
case 31:
YY_RULE_SETUP
#line 608 "acf_lex.l"
{
return ('.');
};
YY_BREAK
case 32:
YY_RULE_SETUP
#line 609 "acf_lex.l"
{
return ('!');
};
YY_BREAK
case 33:
YY_RULE_SETUP
#line 610 "acf_lex.l"
{
return ('+');
};
YY_BREAK
case 34:
YY_RULE_SETUP
#line 611 "acf_lex.l"
{
return ('-');
};
YY_BREAK
case 35:
YY_RULE_SETUP
#line 612 "acf_lex.l"
{
return (N_EQ);
};
YY_BREAK
case 36:
YY_RULE_SETUP
#line 613 "acf_lex.l"
{
return ('/');
};
YY_BREAK
case 37:
YY_RULE_SETUP
#line 614 "acf_lex.l"
{
return ('%');
};
YY_BREAK
case 38:
YY_RULE_SETUP
#line 615 "acf_lex.l"
{
return ('?');
};
YY_BREAK
case 39:
YY_RULE_SETUP
#line 616 "acf_lex.l"
{
return (SHL);
};
YY_BREAK
case 40:
YY_RULE_SETUP
#line 617 "acf_lex.l"
{
return (SHR);
};
YY_BREAK
case 41:
YY_RULE_SETUP
#line 618 "acf_lex.l"
{
return ('<');
};
YY_BREAK
case 42:
YY_RULE_SETUP
#line 619 "acf_lex.l"
{
return ('>');
};
YY_BREAK
case 43:
YY_RULE_SETUP
#line 620 "acf_lex.l"
{
return ('^');
};
YY_BREAK
case 44:
YY_RULE_SETUP
#line 621 "acf_lex.l"
{
return ('~');
};
YY_BREAK
case 45:
YY_RULE_SETUP
#line 622 "acf_lex.l"
{
return (LOG_AND);
};
YY_BREAK
case 46:
YY_RULE_SETUP
#line 623 "acf_lex.l"
{
return ('&');
};
YY_BREAK
case 47:
YY_RULE_SETUP
#line 624 "acf_lex.l"
{
return (LOG_OR);
};
YY_BREAK
case 48:
YY_RULE_SETUP
#line 625 "acf_lex.l"
{
return ('|');
};
YY_BREAK
case 49:
YY_RULE_SETUP
#line 628 "acf_lex.l"
{
return (EQ_EQ);
};
YY_BREAK
case 50:
YY_RULE_SETUP
#line 629 "acf_lex.l"
{
return (EQ_EQ);
};
YY_BREAK
case 51:
YY_RULE_SETUP
#line 630 "acf_lex.l"
{
return (N_EQ);
};
YY_BREAK
case 52:
YY_RULE_SETUP
#line 631 "acf_lex.l"
{
return (TO_POW);
};
YY_BREAK
case 53:
YY_RULE_SETUP
#line 632 "acf_lex.l"
{
return ('*');
};
YY_BREAK
case 54:
YY_RULE_SETUP
#line 633 "acf_lex.l"
{
return (',');
};
YY_BREAK
case 55:
YY_RULE_SETUP
#line 634 "acf_lex.l"
{
return ('[');
};
YY_BREAK
case 56:
YY_RULE_SETUP
#line 635 "acf_lex.l"
{
return (']');
};
YY_BREAK
case 57:
YY_RULE_SETUP
#line 638 "acf_lex.l"
{
break;
};
YY_BREAK
case 58:
/* rule 58 can match eol */
YY_RULE_SETUP
#line 640 "acf_lex.l"
{
lineno++;
if (yydebug)
break;
};
YY_BREAK
case 59:
YY_RULE_SETUP
#line 641 "acf_lex.l"
{
break;
};
YY_BREAK
case 60:
YY_RULE_SETUP
#line 646 "acf_lex.l"
{
lex_exec_line ();
goto ignored_comment; /* commands to vertical */
};
YY_BREAK
case 61:
YY_RULE_SETUP
#line 649 "acf_lex.l"
{
BEGIN (acfp);
prev_begin = acfp;
Log (LOG_GENERAL, "Entering ACFP block\n");
inside_block = 1;
return (AHDL);
}
YY_BREAK
case 62:
YY_RULE_SETUP
#line 653 "acf_lex.l"
{
BEGIN (acfp);
prev_begin = acfp;
inside_block = 1;
return (CHIP);
}
YY_BREAK
case 63:
YY_RULE_SETUP
#line 656 "acf_lex.l"
{
BEGIN (acfp);
prev_begin = acfp;
inside_block = 1;
return (JOINED_NETS);
};
YY_BREAK
case 64:
YY_RULE_SETUP
#line 659 "acf_lex.l"
{
BEGIN (acfp);
prev_begin = acfp;
inside_block = 1;
return (COMPONENTS);
};
YY_BREAK
case 65:
YY_RULE_SETUP
#line 662 "acf_lex.l"
{
BEGIN (acfp);
prev_begin = acfp;
inside_block = 1;
return (RENAME_PINS);
};
YY_BREAK
case 66:
YY_RULE_SETUP
#line 665 "acf_lex.l"
{
BEGIN (acfp);
prev_begin = acfp;
inside_block = 1;
return (TEMPLATE);
};
YY_BREAK
case 67:
YY_RULE_SETUP
#line 668 "acf_lex.l"
{
BEGIN (vhdl);
Log (LOG_GENERAL, "Entering VHDL block\n");
inside_block = 1;
prev_begin = vhdl;
return (VHDL);
};
YY_BREAK
case 68:
YY_RULE_SETUP
#line 674 "acf_lex.l"
{
BEGIN (vlog);
Log (LOG_GENERAL, "Entering Verilog block\n");
prev_begin = vlog;
inside_block = 1;
return (VERILOG);
};
YY_BREAK
case 69:
YY_RULE_SETUP
#line 680 "acf_lex.l"
{
BEGIN (acfp);
prev_begin = acfp;
inside_block = 1;
return (WIRED_NETS);
};
YY_BREAK
case 70:
YY_RULE_SETUP
#line 683 "acf_lex.l"
{
if (!inside_block) /* special */
{
inside_block = 1;
BEGIN (vhdl);
prev_begin = vhdl;
};
return (GENERIC);
};
YY_BREAK
case 71:
YY_RULE_SETUP
#line 687 "acf_lex.l"
{
return (ALL);
}
YY_BREAK
case 72:
YY_RULE_SETUP
#line 688 "acf_lex.l"
{
return (ARCHITECTURE);
}
YY_BREAK
case 73:
YY_RULE_SETUP
#line 689 "acf_lex.l"
{
return (ATTRIBUTE);
}
YY_BREAK
case 74:
YY_RULE_SETUP
#line 690 "acf_lex.l"
{
return (ASSIGNED);
}
YY_BREAK
case 75:
YY_RULE_SETUP
#line 691 "acf_lex.l"
{
return (ALIAS);
}
YY_BREAK
case 76:
YY_RULE_SETUP
#line 692 "acf_lex.l"
{
return (AN);
}
YY_BREAK
case 77:
YY_RULE_SETUP
#line 693 "acf_lex.l"
{
return (BEGIN_TOK);
}
YY_BREAK
case 78:
YY_RULE_SETUP
#line 694 "acf_lex.l"
{
yylval.integer = BIDIR;
return (PINDIR);
}
YY_BREAK
case 79:
YY_RULE_SETUP
#line 695 "acf_lex.l"
{
yylval.integer = BIDIR;
return (PINDIR);
}
YY_BREAK
case 80:
YY_RULE_SETUP
#line 696 "acf_lex.l"
{
return (BOOLEAN);
}
YY_BREAK
case 81:
YY_RULE_SETUP
#line 697 "acf_lex.l"
{
yylval.integer = BIDIR;
return (PINDIR);
}
YY_BREAK
case 82:
YY_RULE_SETUP
#line 698 "acf_lex.l"
{
yylval.integer = BIDIR;
return (PINDIR);
}
YY_BREAK
case 83:
YY_RULE_SETUP
#line 699 "acf_lex.l"
{
yylval.integer = BUFFER;
return (PINDIR);
}
YY_BREAK
case 84:
YY_RULE_SETUP
#line 700 "acf_lex.l"
{
yylval.integer = BUFFER;
return (PINDIR);
}
YY_BREAK
case 85:
YY_RULE_SETUP
#line 701 "acf_lex.l"
{
yylval.integer = CONFIG;
return (PINDIR);
};
YY_BREAK
case 86:
YY_RULE_SETUP
#line 702 "acf_lex.l"
{
return (COMPONENT);
};
YY_BREAK
case 87:
YY_RULE_SETUP
#line 703 "acf_lex.l"
{
return (CONSTANT);
};
YY_BREAK
case 88:
YY_RULE_SETUP
#line 704 "acf_lex.l"
{
return (CONN);
};
YY_BREAK
case 89:
YY_RULE_SETUP
#line 705 "acf_lex.l"
{
return (VHDL_CONN);
};
YY_BREAK
case 90:
YY_RULE_SETUP
#line 706 "acf_lex.l"
{
return (DECLARATION);
};
YY_BREAK
case 91:
YY_RULE_SETUP
#line 707 "acf_lex.l"
{
return (DEVICE);
};
YY_BREAK
case 92:
YY_RULE_SETUP
#line 708 "acf_lex.l"
{
return (DOWNTO);
};
YY_BREAK
case 93:
YY_RULE_SETUP
#line 709 "acf_lex.l"
{
return (END); /* do not free_strings here as it is too
early !! */
};
YY_BREAK
case 94:
YY_RULE_SETUP
#line 710 "acf_lex.l"
{
return (END_CONN);
};
YY_BREAK
case 95:
YY_RULE_SETUP
#line 711 "acf_lex.l"
{
return (ENDMODULE);
};
YY_BREAK
case 96:
YY_RULE_SETUP
#line 712 "acf_lex.l"
{
return (ENTITY);
};
YY_BREAK
case 97:
YY_RULE_SETUP
#line 713 "acf_lex.l"
{
return (EQUIVALENT);
};
YY_BREAK
case 98:
YY_RULE_SETUP
#line 714 "acf_lex.l"
{
return (ENV_STRING);
};
YY_BREAK
case 99:
YY_RULE_SETUP
#line 715 "acf_lex.l"
{
return (FALSE);
};
YY_BREAK
case 100:
YY_RULE_SETUP
#line 716 "acf_lex.l"
{
return (FIX_LOCATION);
};
YY_BREAK
case 101:
YY_RULE_SETUP
#line 717 "acf_lex.l"
{
return (FOR);
};
YY_BREAK
case 102:
YY_RULE_SETUP
#line 718 "acf_lex.l"
{
return (GND_RES_IO);
};
YY_BREAK
case 103:
YY_RULE_SETUP
#line 719 "acf_lex.l"
{
return (GND_RES_IN);
};
YY_BREAK
case 104:
YY_RULE_SETUP
#line 720 "acf_lex.l"
{
yylval.string =
make_string (yytext, &lx_first, &lx_last);
if (yydebug)
stderr, "String (GND) ='%s'\n", yytext);
return (GND);
};
YY_BREAK
case 105:
YY_RULE_SETUP
#line 723 "acf_lex.l"
{
yylval.integer = INPUT;
return (PINDIR);
};
YY_BREAK
case 106:
YY_RULE_SETUP
#line 724 "acf_lex.l"
{
yylval.integer = INPUT;
return (PINDIR);
};
YY_BREAK
case 107:
YY_RULE_SETUP
#line 725 "acf_lex.l"
{
yylval.integer = INPUT;
return (PINDIR);
};
YY_BREAK
case 108:
YY_RULE_SETUP
#line 726 "acf_lex.l"
{
yylval.integer = BIDIR;
return (PINDIR);
}
YY_BREAK
case 109:
YY_RULE_SETUP
#line 727 "acf_lex.l"
{
return (INSTANCE);
};
YY_BREAK
case 110:
YY_RULE_SETUP
#line 728 "acf_lex.l"
{
return (INTEGER);
};
YY_BREAK
case 111:
YY_RULE_SETUP
#line 729 "acf_lex.l"
{
return (IS);
};
YY_BREAK
case 112:
YY_RULE_SETUP
#line 730 "acf_lex.l"
{
return (JUMPER);
};
YY_BREAK
case 113:
YY_RULE_SETUP
#line 731 "acf_lex.l"
{
return (LIBRARY);
};
YY_BREAK
case 114:
YY_RULE_SETUP
#line 732 "acf_lex.l"
{
return (LOCATION);
};
YY_BREAK
case 115:
YY_RULE_SETUP
#line 733 "acf_lex.l"
{
return (MAP);
};
YY_BREAK
case 116:
YY_RULE_SETUP
#line 734 "acf_lex.l"
{
return (MODULE);
};
YY_BREAK
case 117:
YY_RULE_SETUP
#line 735 "acf_lex.l"
{
yylval.integer = NONE;
return (PINDIR);
};
YY_BREAK
case 118:
YY_RULE_SETUP
#line 736 "acf_lex.l"
{
return (NAMED);
};
YY_BREAK
case 119:
YY_RULE_SETUP
#line 737 "acf_lex.l"
{
return (OF);
};
YY_BREAK
case 120:
YY_RULE_SETUP
#line 738 "acf_lex.l"
{
yylval.integer = OUTPUT;
return (PINDIR);
};
YY_BREAK
case 121:
YY_RULE_SETUP
#line 739 "acf_lex.l"
{
yylval.integer = OUTPUT;
return (PINDIR);
};
YY_BREAK
case 122:
YY_RULE_SETUP
#line 740 "acf_lex.l"
{
yylval.integer = OUTPUT;
return (PINDIR);
};
YY_BREAK
case 123:
YY_RULE_SETUP
#line 741 "acf_lex.l"
{
return (OPEN);
};
YY_BREAK
case 124:
YY_RULE_SETUP
#line 742 "acf_lex.l"
{
return (PACKAGE);
};
YY_BREAK
case 125:
YY_RULE_SETUP
#line 743 "acf_lex.l"
{
return (PORT);
};
YY_BREAK
case 126:
YY_RULE_SETUP
#line 744 "acf_lex.l"
{
yylval.integer = POWER;
return (PINDIR);
};
YY_BREAK
case 127:
YY_RULE_SETUP
#line 745 "acf_lex.l"
{
return (RANGE);
};
YY_BREAK
case 128:
YY_RULE_SETUP
#line 746 "acf_lex.l"
{
return (ROUTE_FLAGS);
};
YY_BREAK
case 129:
YY_RULE_SETUP
#line 747 "acf_lex.l"
{
return (ROUTED);
};
YY_BREAK
case 130:
YY_RULE_SETUP
#line 748 "acf_lex.l"
{
return (SHL);
};
YY_BREAK
case 131:
YY_RULE_SETUP
#line 749 "acf_lex.l"
{
return (SHR);
};
YY_BREAK
case 132:
YY_RULE_SETUP
#line 750 "acf_lex.l"
{
return (SIGNAL);
};
YY_BREAK
case 133:
YY_RULE_SETUP
#line 751 "acf_lex.l"
{
return (STRING);
};
YY_BREAK
case 134:
YY_RULE_SETUP
#line 752 "acf_lex.l"
{
return (SUBDESIGN);
};
YY_BREAK
case 135:
YY_RULE_SETUP
#line 753 "acf_lex.l"
{
return (TO);
};
YY_BREAK
case 136:
YY_RULE_SETUP
#line 754 "acf_lex.l"
{
return (TRUE);
};
YY_BREAK
case 137:
YY_RULE_SETUP
#line 755 "acf_lex.l"
{
return (UNROUTED);
};
YY_BREAK
case 138:
YY_RULE_SETUP
#line 756 "acf_lex.l"
{
yylval.string =
make_string (yytext, &lx_first, &lx_last);
if (yydebug)
stderr, "String (VCC) ='%s'\n", yytext);
return (VCC);
};
YY_BREAK
case 139:
YY_RULE_SETUP
#line 759 "acf_lex.l"
{
return (USE);
};
YY_BREAK
case 140:
YY_RULE_SETUP
#line 760 "acf_lex.l"
{
return (WIRE);
};
YY_BREAK
case 141:
YY_RULE_SETUP
#line 762 "acf_lex.l"
{
yylval.string = make_string (
yytext, &lx_first, &lx_last); /* do it anyway */
if (yydebug)
stderr, "String (num) ='%s'\n", yytext);
return (NUM_STRING);
};
YY_BREAK
case 142:
YY_RULE_SETUP
#line 766 "acf_lex.l"
{
yylval.string = make_string (
yytext, &lx_first, &lx_last); /* do it anyway */
if (yydebug)
stderr, "String (num) ='%s'\n", yytext);
return (NUM_STRING);
};
YY_BREAK
case 143:
YY_RULE_SETUP
#line 770 "acf_lex.l"
{
yylval.string = make_string (
yytext, &lx_first, &lx_last); /* do it anyway */
if (yydebug)
stderr, "String (num) ='%s'\n", yytext);
return (TXT_STRING);
};
YY_BREAK
case 144:
YY_RULE_SETUP
#line 774 "acf_lex.l"
{
yylval.string = make_string (
yytext, &lx_first, &lx_last); /* do it anyway */
if (yydebug)
stderr, "String (txt) ='%s'\n", yytext);
return (
isdigit (yylval.
string[0]) ? NUM_STRING
: TXT_STRING);
};
YY_BREAK
case 145:
YY_RULE_SETUP
#line 778 "acf_lex.l"
{
yylval.string = make_string (
yytext, &lx_first, &lx_last); /* do it anyway */
if (yydebug)
stderr, "String (num) ='%s'\n", yytext);
return (TXT_STRING);
};
YY_BREAK
case 146:
YY_RULE_SETUP
#line 783 "acf_lex.l"
{
"-- error in %s syntax: found character code "
"0x%02X (%c) at line %d\n",
yyerr_start_names[YY_START],
yytext[0],
yytext[0] > 32 ? yytext[0] : '.',
lineno);
break;
};
YY_BREAK
case 147:
YY_RULE_SETUP
#line 786 "acf_lex.l"
ECHO;
YY_BREAK
#line 2569 "acf_lex.c"
case YY_END_OF_BUFFER:
{
/* Amount of text matched not including the EOB char. */
int yy_amount_of_matched_text =
(int) (yy_cp - (yytext_ptr)) - 1;
/* Undo the effects of YY_DO_BEFORE_ACTION. */
*yy_cp = (yy_hold_char);
YY_RESTORE_YY_MORE_OFFSET
if (YY_CURRENT_BUFFER_LVALUE->yy_buffer_status ==
YY_BUFFER_NEW)
{
/* We're scanning a new file or input source. It's
* possible that this happened because the user
* just pointed yyin at a new source and called
* yylex(). If so, then we have to assure
* consistency between YY_CURRENT_BUFFER and our
* globals. Here is the right place to do so, because
* this is the first action (other than possibly a
* back-up) that will match for the new input source.
*/
(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
YY_BUFFER_NORMAL;
}
/* Note that here we test for yy_c_buf_p "<=" to the position
* of the first EOB in the buffer, since yy_c_buf_p will
* already have been incremented past the NUL character
* (since all states make transitions on EOB to the
* end-of-buffer state). Contrast this with the test
* in input().
*/
if ((yy_c_buf_p) <=
&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)])
{ /* This was really a NUL. */
yy_state_type yy_next_state;
(yy_c_buf_p) =
(yytext_ptr) + yy_amount_of_matched_text;
yy_current_state = yy_get_previous_state ();
/* Okay, we're now positioned to make the NUL
* transition. We couldn't have
* yy_get_previous_state() go ahead and do it
* for us because it doesn't know how to deal
* with the possibility of jamming (and we don't
* want to build jamming into it because then it
* will run more slowly).
*/
yy_next_state = yy_try_NUL_trans (yy_current_state);
yy_bp = (yytext_ptr) + YY_MORE_ADJ;
if (yy_next_state)
{
/* Consume the NUL. */
yy_cp = ++(yy_c_buf_p);
yy_current_state = yy_next_state;
goto yy_match;
}
else
{
yy_cp = (yy_c_buf_p);
goto yy_find_action;
}
}
else
switch (yy_get_next_buffer ())
{
case EOB_ACT_END_OF_FILE:
{
(yy_did_buffer_switch_on_eof) = 0;
if (yywrap ())
{
/* Note: because we've taken care in
* yy_get_next_buffer() to have set up
* yytext, we can now set up
* yy_c_buf_p so that if some total
* hoser (like flex itself) wants to
* call the scanner after we return the
* YY_NULL, it'll still work - another
* YY_NULL will get returned.
*/
(yy_c_buf_p) =
(yytext_ptr) + YY_MORE_ADJ;
yy_act = YY_STATE_EOF (YY_START);
goto do_action;
}
else
{
if (!(yy_did_buffer_switch_on_eof))
YY_NEW_FILE;
}
break;
}
case EOB_ACT_CONTINUE_SCAN:
(yy_c_buf_p) =
(yytext_ptr) + yy_amount_of_matched_text;
yy_current_state = yy_get_previous_state ();
yy_cp = (yy_c_buf_p);
yy_bp = (yytext_ptr) + YY_MORE_ADJ;
goto yy_match;
case EOB_ACT_LAST_MATCH:
(yy_c_buf_p) = &YY_CURRENT_BUFFER_LVALUE
->yy_ch_buf[(yy_n_chars)];
yy_current_state = yy_get_previous_state ();
yy_cp = (yy_c_buf_p);
yy_bp = (yytext_ptr) + YY_MORE_ADJ;
goto yy_find_action;
}
break;
}
default:
YY_FATAL_ERROR ("fatal flex scanner internal error--no action "
"found");
} /* end of action switch */
} /* end of scanning one token */
} /* end of user's declarations */
} /* end of yylex */
/* yy_get_next_buffer - try to read in a new buffer
*
* Returns a code representing an action:
* EOB_ACT_LAST_MATCH -
* EOB_ACT_CONTINUE_SCAN - continue scanning from current position
* EOB_ACT_END_OF_FILE - end of file
*/
static int yy_get_next_buffer (void)
{
char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
char *source = (yytext_ptr);
int number_to_move, i;
int ret_val;
if ((yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1])
YY_FATAL_ERROR ("fatal flex scanner internal error--end of buffer missed");
if (YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0)
{ /* Don't try to fill the buffer, so this is an EOF. */
if ((yy_c_buf_p) - (yytext_ptr) -YY_MORE_ADJ == 1)
{
/* We matched a single character, the EOB, so
* treat this as a final EOF.
*/
return EOB_ACT_END_OF_FILE;
}
else
{
/* We matched some text prior to the EOB, first
* process it.
*/
return EOB_ACT_LAST_MATCH;
}
}
/* Try to read more data. */
/* First move last chars to start of buffer. */
number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) -1);
for (i = 0; i < number_to_move; ++i)
*(dest++) = *(source++);
if (YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING)
/* don't do the read, it's not guaranteed to return an EOF,
* just force an EOF
*/
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
else
{
int num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
while (num_to_read <= 0)
{ /* Not enough room in the buffer - grow it. */
/* just a shorter name for the current buffer */
YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
int yy_c_buf_p_offset = (int) ((yy_c_buf_p) -b->yy_ch_buf);
if (b->yy_is_our_buffer)
{
int new_size = b->yy_buf_size * 2;
if (new_size <= 0)
b->yy_buf_size += b->yy_buf_size / 8;
else
b->yy_buf_size *= 2;
b->yy_ch_buf = (char *)
/* Include room in for 2 EOB chars. */
yyrealloc (
(void *) b->yy_ch_buf,
(yy_size_t) (b->yy_buf_size + 2));
}
else
/* Can't grow it, we don't own it. */
b->yy_ch_buf = NULL;
if (!b->yy_ch_buf)
YY_FATAL_ERROR ("fatal error - scanner input buffer overflow");
(yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
num_to_read =
YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
}
if (num_to_read > YY_READ_BUF_SIZE)
num_to_read = YY_READ_BUF_SIZE;
/* Read in more data. */
YY_INPUT (
(&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
(yy_n_chars),
num_to_read);
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
}
if ((yy_n_chars) == 0)
{
if (number_to_move == YY_MORE_ADJ)
{
ret_val = EOB_ACT_END_OF_FILE;
yyrestart (yyin);
}
else
{
ret_val = EOB_ACT_LAST_MATCH;
YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_EOF_PENDING;
}
}
else
ret_val = EOB_ACT_CONTINUE_SCAN;
if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size)
{
/* Extend the array by 50%, plus the number we really need. */
int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc (
(void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size);
if (!YY_CURRENT_BUFFER_LVALUE->yy_ch_buf)
YY_FATAL_ERROR ("out of dynamic memory in yy_get_next_buffer()");
/* "- 2" to take care of EOB's */
YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
}
(yy_n_chars) += number_to_move;
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
(yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
return ret_val;
}
/* yy_get_previous_state - get the state just before the EOB char was reached */
static yy_state_type yy_get_previous_state (void)
{
yy_state_type yy_current_state;
char *yy_cp;
yy_current_state = (yy_start);
for (yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp)
{
YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI (*yy_cp)] : 1);
if (yy_accept[yy_current_state])
{
(yy_last_accepting_state) = yy_current_state;
(yy_last_accepting_cpos) = yy_cp;
}
while (yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state)
{
yy_current_state = (int) yy_def[yy_current_state];
if (yy_current_state >= 707)
yy_c = yy_meta[yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
}
return yy_current_state;
}
/* yy_try_NUL_trans - try to make a transition on the NUL character
*
* synopsis
* next_state = yy_try_NUL_trans( current_state );
*/
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state)
{
int yy_is_jam;
char *yy_cp = (yy_c_buf_p);
YY_CHAR yy_c = 1;
if (yy_accept[yy_current_state])
{
(yy_last_accepting_state) = yy_current_state;
(yy_last_accepting_cpos) = yy_cp;
}
while (yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state)
{
yy_current_state = (int) yy_def[yy_current_state];
if (yy_current_state >= 707)
yy_c = yy_meta[yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
yy_is_jam = (yy_current_state == 706);
return yy_is_jam ? 0 : yy_current_state;
}
#ifndef YY_NO_UNPUT
static void yyunput (int c, char *yy_bp)
{
char *yy_cp;
yy_cp = (yy_c_buf_p);
/* undo effects of setting up yytext */
*yy_cp = (yy_hold_char);
if (yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2)
{ /* need to shift things up to make room */
/* +2 for EOB chars. */
int number_to_move = (yy_n_chars) + 2;
char *dest = &YY_CURRENT_BUFFER_LVALUE
->yy_ch_buf[YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
char *source = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
while (source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf)
*--dest = *--source;
yy_cp += (int) (dest - source);
yy_bp += (int) (dest - source);
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) =
(int) YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
if (yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2)
YY_FATAL_ERROR ("flex scanner push-back overflow");
}
*--yy_cp = (char) c;
(yytext_ptr) = yy_bp;
(yy_hold_char) = *yy_cp;
(yy_c_buf_p) = yy_cp;
}
#endif
#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput (void)
#else
static int input (void)
#endif
{
int c;
*(yy_c_buf_p) = (yy_hold_char);
if (*(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR)
{
/* yy_c_buf_p now points to the character we want to return.
* If this occurs *before* the EOB characters, then it's a
* valid NUL; if not, then we've hit the end of the buffer.
*/
if ((yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)])
/* This was really a NUL. */
*(yy_c_buf_p) = '\0';
else
{ /* need more input */
int offset = (int) ((yy_c_buf_p) - (yytext_ptr));
++(yy_c_buf_p);
switch (yy_get_next_buffer ())
{
case EOB_ACT_LAST_MATCH:
/* This happens because yy_g_n_b()
* sees that we've accumulated a
* token and flags that we need to
* try matching the token before
* proceeding. But for input(),
* there's no matching to consider.
* So convert the EOB_ACT_LAST_MATCH
* to EOB_ACT_END_OF_FILE.
*/
/* Reset buffer status. */
yyrestart (yyin);
/*FALLTHROUGH*/
case EOB_ACT_END_OF_FILE:
{
if (yywrap ())
return 0;
if (!(yy_did_buffer_switch_on_eof))
YY_NEW_FILE;
#ifdef __cplusplus
return yyinput ();
#else
return input ();
#endif
}
case EOB_ACT_CONTINUE_SCAN:
(yy_c_buf_p) = (yytext_ptr) + offset;
break;
}
}
}
c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
*(yy_c_buf_p) = '\0'; /* preserve yytext */
(yy_hold_char) = *++(yy_c_buf_p);
return c;
}
#endif /* ifndef YY_NO_INPUT */
/** Immediately switch to a different input stream.
* @param input_file A readable stream.
*
* @note This function does not reset the start condition to @c INITIAL .
*/
void yyrestart (FILE *input_file)
{
if (!YY_CURRENT_BUFFER)
{
yyensure_buffer_stack ();
YY_CURRENT_BUFFER_LVALUE = yy_create_buffer (yyin, YY_BUF_SIZE);
}
yy_init_buffer (YY_CURRENT_BUFFER, input_file);
yy_load_buffer_state ();
}
/** Switch to a different input buffer.
* @param new_buffer The new input buffer.
*
*/
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer)
{
/* TODO. We should be able to replace this entire function body
* with
* yypop_buffer_state();
* yypush_buffer_state(new_buffer);
*/
yyensure_buffer_stack ();
if (YY_CURRENT_BUFFER == new_buffer)
return;
if (YY_CURRENT_BUFFER)
{
/* Flush out information for old buffer. */
*(yy_c_buf_p) = (yy_hold_char);
YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
}
YY_CURRENT_BUFFER_LVALUE = new_buffer;
yy_load_buffer_state ();
/* We don't actually know whether we did this switch during
* EOF (yywrap()) processing, but the only time this flag
* is looked at is after yywrap() is called, so it's safe
* to go ahead and always set it.
*/
(yy_did_buffer_switch_on_eof) = 1;
}
static void yy_load_buffer_state (void)
{
(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
(yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
(yy_hold_char) = *(yy_c_buf_p);
}
/** Allocate and initialize an input buffer state.
* @param file A readable stream.
* @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
*
* @return the allocated buffer state.
*/
YY_BUFFER_STATE yy_create_buffer (FILE *file, int size)
{
YY_BUFFER_STATE b;
b = (YY_BUFFER_STATE) yyalloc (sizeof (struct yy_buffer_state));
if (!b)
YY_FATAL_ERROR ("out of dynamic memory in yy_create_buffer()");
b->yy_buf_size = size;
/* yy_ch_buf has to be 2 characters longer than the size given because
* we need to put in 2 end-of-buffer characters.
*/
b->yy_ch_buf = (char *) yyalloc ((yy_size_t) (b->yy_buf_size + 2));
if (!b->yy_ch_buf)
YY_FATAL_ERROR ("out of dynamic memory in yy_create_buffer()");
b->yy_is_our_buffer = 1;
yy_init_buffer (b, file);
return b;
}
/** Destroy the buffer.
* @param b a buffer created with yy_create_buffer()
*
*/
void yy_delete_buffer (YY_BUFFER_STATE b)
{
if (!b)
return;
if (b == YY_CURRENT_BUFFER) /* Not sure if we should pop here. */
YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
if (b->yy_is_our_buffer)
yyfree ((void *) b->yy_ch_buf);
yyfree ((void *) b);
}
/* Initializes or reinitializes a buffer.
* This function is sometimes called more than once on the same buffer,
* such as during a yyrestart() or at EOF.
*/
static void yy_init_buffer (YY_BUFFER_STATE b, FILE *file)
{
int oerrno = errno;
yy_flush_buffer (b);
b->yy_input_file = file;
b->yy_fill_buffer = 1;
/* If b is the current buffer, then yy_init_buffer was _probably_
* called from yyrestart() or through yy_get_next_buffer.
* In that case, we don't want to reset the lineno or column.
*/
if (b != YY_CURRENT_BUFFER)
{
b->yy_bs_lineno = 1;
b->yy_bs_column = 0;
}
b->yy_is_interactive = file ? (isatty (fileno (file)) > 0) : 0;
errno = oerrno;
}
/** Discard all buffered characters. On the next scan, YY_INPUT will be called.
* @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
*
*/
void yy_flush_buffer (YY_BUFFER_STATE b)
{
if (!b)
return;
b->yy_n_chars = 0;
/* We always need two end-of-buffer characters. The first causes
* a transition to the end-of-buffer state. The second causes
* a jam in that state.
*/
b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
b->yy_buf_pos = &b->yy_ch_buf[0];
b->yy_at_bol = 1;
b->yy_buffer_status = YY_BUFFER_NEW;
if (b == YY_CURRENT_BUFFER)
yy_load_buffer_state ();
}
/** Pushes the new state onto the stack. The new state becomes
* the current state. This function will allocate the stack
* if necessary.
* @param new_buffer The new state.
*
*/
void yypush_buffer_state (YY_BUFFER_STATE new_buffer)
{
if (new_buffer == NULL)
return;
yyensure_buffer_stack ();
/* This block is copied from yy_switch_to_buffer. */
if (YY_CURRENT_BUFFER)
{
/* Flush out information for old buffer. */
*(yy_c_buf_p) = (yy_hold_char);
YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
}
/* Only push if top exists. Otherwise, replace top. */
if (YY_CURRENT_BUFFER)
(yy_buffer_stack_top)++;
YY_CURRENT_BUFFER_LVALUE = new_buffer;
/* copied from yy_switch_to_buffer. */
yy_load_buffer_state ();
(yy_did_buffer_switch_on_eof) = 1;
}
/** Removes and deletes the top of the stack, if present.
* The next element becomes the new top.
*
*/
void yypop_buffer_state (void)
{
if (!YY_CURRENT_BUFFER)
return;
yy_delete_buffer (YY_CURRENT_BUFFER);
YY_CURRENT_BUFFER_LVALUE = NULL;
if ((yy_buffer_stack_top) > 0)
--(yy_buffer_stack_top);
if (YY_CURRENT_BUFFER)
{
yy_load_buffer_state ();
(yy_did_buffer_switch_on_eof) = 1;
}
}
/* Allocates the stack if it does not exist.
* Guarantees space for at least one push.
*/
static void yyensure_buffer_stack (void)
{
yy_size_t num_to_alloc;
if (!(yy_buffer_stack))
{
/* First allocation is just for 2 elements, since we don't know if this
* scanner will even need a stack. We use 2 instead of 1 to avoid an
* immediate realloc on the next call.
*/
num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
(yy_buffer_stack) = (struct yy_buffer_state **) yyalloc (
num_to_alloc * sizeof (struct yy_buffer_state *));
if (!(yy_buffer_stack))
YY_FATAL_ERROR ("out of dynamic memory in yyensure_buffer_stack()");
(yy_buffer_stack), 0, num_to_alloc * sizeof (struct yy_buffer_state *));
(yy_buffer_stack_max) = num_to_alloc;
(yy_buffer_stack_top) = 0;
return;
}
if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1)
{
/* Increase the buffer to prepare for a possible push. */
yy_size_t grow_size = 8 /* arbitrary grow size */;
num_to_alloc = (yy_buffer_stack_max) + grow_size;
(yy_buffer_stack) = (struct yy_buffer_state **) yyrealloc (
(yy_buffer_stack), num_to_alloc * sizeof (struct yy_buffer_state *));
if (!(yy_buffer_stack))
YY_FATAL_ERROR ("out of dynamic memory in yyensure_buffer_stack()");
/* zero only the new slots.*/
(yy_buffer_stack) + (yy_buffer_stack_max),
0,
grow_size * sizeof (struct yy_buffer_state *));
(yy_buffer_stack_max) = num_to_alloc;
}
}
/** Setup the input buffer state to scan directly from a user-specified character buffer.
* @param base the character buffer
* @param size the size in bytes of the character buffer
*
* @return the newly allocated buffer state object.
*/
YY_BUFFER_STATE yy_scan_buffer (char *base, yy_size_t size)
{
YY_BUFFER_STATE b;
if (size < 2 || base[size - 2] != YY_END_OF_BUFFER_CHAR ||
base[size - 1] != YY_END_OF_BUFFER_CHAR)
/* They forgot to leave room for the EOB's. */
return NULL;
b = (YY_BUFFER_STATE) yyalloc (sizeof (struct yy_buffer_state));
if (!b)
YY_FATAL_ERROR ("out of dynamic memory in yy_scan_buffer()");
b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */
b->yy_buf_pos = b->yy_ch_buf = base;
b->yy_is_our_buffer = 0;
b->yy_input_file = NULL;
b->yy_n_chars = b->yy_buf_size;
b->yy_is_interactive = 0;
b->yy_at_bol = 1;
b->yy_fill_buffer = 0;
b->yy_buffer_status = YY_BUFFER_NEW;
yy_switch_to_buffer (b);
return b;
}
/** Setup the input buffer state to scan a string. The next call to yylex() will
* scan from a @e copy of @a str.
* @param yystr a NUL-terminated string to scan
*
* @return the newly allocated buffer state object.
* @note If you want to scan bytes that may contain NUL values, then use
* yy_scan_bytes() instead.
*/
YY_BUFFER_STATE yy_scan_string (const char *yystr)
{
return yy_scan_bytes
(yystr
, (int) strlen (yystr
));
}
/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
* scan from a @e copy of @a bytes.
* @param yybytes the byte buffer to scan
* @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
*
* @return the newly allocated buffer state object.
*/
YY_BUFFER_STATE yy_scan_bytes (const char *yybytes, int _yybytes_len)
{
YY_BUFFER_STATE b;
char *buf;
yy_size_t n;
int i;
/* Get memory for full buffer, including space for trailing EOB's. */
n = (yy_size_t) (_yybytes_len + 2);
buf = (char *) yyalloc (n);
if (!buf)
YY_FATAL_ERROR ("out of dynamic memory in yy_scan_bytes()");
for (i = 0; i < _yybytes_len; ++i)
buf[i] = yybytes[i];
buf[_yybytes_len] = buf[_yybytes_len + 1] = YY_END_OF_BUFFER_CHAR;
b = yy_scan_buffer (buf, n);
if (!b)
YY_FATAL_ERROR ("bad buffer in yy_scan_bytes()");
/* It's okay to grow etc. this buffer, and we should throw it
* away when we're done.
*/
b->yy_is_our_buffer = 1;
return b;
}
#ifndef YY_EXIT_FAILURE
#define YY_EXIT_FAILURE 2
#endif
static void yynoreturn yy_fatal_error (const char *msg)
{
}
/* Redefine yyless() so it works in section 3 code. */
#undef yyless
#define yyless(n) \
do \
{ \
/* Undo effects of setting up yytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO (yyless_macro_arg); \
yytext[yyleng] = (yy_hold_char); \
(yy_c_buf_p) = yytext + yyless_macro_arg; \
(yy_hold_char) = *(yy_c_buf_p); \
*(yy_c_buf_p) = '\0'; \
yyleng = yyless_macro_arg; \
} while (0)
/* Accessor methods (get/set functions) to struct members. */
/** Get the current line number.
*
*/
int yyget_lineno (void)
{
return yylineno;
}
/** Get the input stream.
*
*/
FILE *yyget_in (void)
{
return yyin;
}
/** Get the output stream.
*
*/
FILE *yyget_out (void)
{
return yyout;
}
/** Get the length of the current token.
*
*/
int yyget_leng (void)
{
return yyleng;
}
/** Get the current token.
*
*/
char *yyget_text (void)
{
return yytext;
}
/** Set the current line number.
* @param _line_number line number
*
*/
void yyset_lineno (int _line_number)
{
yylineno = _line_number;
}
/** Set the input stream. This does not discard the current
* input buffer.
* @param _in_str A readable stream.
*
* @see yy_switch_to_buffer
*/
void yyset_in (FILE *_in_str)
{
yyin = _in_str;
}
void yyset_out (FILE *_out_str)
{
yyout = _out_str;
}
int yyget_debug (void)
{
return yy_flex_debug;
}
void yyset_debug (int _bdebug)
{
yy_flex_debug = _bdebug;
}
static int yy_init_globals (void)
{
/* Initialization is the same as for the non-reentrant scanner.
* This function is called from yylex_destroy(), so don't allocate here.
*/
(yy_buffer_stack) = NULL;
(yy_buffer_stack_top) = 0;
(yy_buffer_stack_max) = 0;
(yy_c_buf_p) = NULL;
(yy_init) = 0;
(yy_start) = 0;
/* Defined in main.c */
#ifdef YY_STDINIT
yyin = stdin;
yyout = stdout;
#else
yyin = NULL;
yyout = NULL;
#endif
/* For future reference: Set errno on error, since we are called by
* yylex_init()
*/
return 0;
}
/* yylex_destroy is for both reentrant and non-reentrant scanners. */
int yylex_destroy (void)
{
/* Pop the buffer stack, destroying each element. */
while (YY_CURRENT_BUFFER)
{
yy_delete_buffer (YY_CURRENT_BUFFER);
YY_CURRENT_BUFFER_LVALUE = NULL;
yypop_buffer_state ();
}
/* Destroy the stack itself. */
yyfree ((yy_buffer_stack));
(yy_buffer_stack) = NULL;
/* Reset the globals. This is important in a non-reentrant scanner so the next time
* yylex() is called, initialization will occur. */
yy_init_globals ();
return 0;
}
/*
* Internal utility routines.
*/
#ifndef yytext_ptr
static void yy_flex_strncpy (char *s1, const char *s2, int n)
{
int i;
for (i = 0; i < n; ++i)
s1[i] = s2[i];
}
#endif
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen (const char *s)
{
int n;
for (n = 0; s[n]; ++n)
;
return n;
}
#endif
void *yyalloc (yy_size_t size)
{
}
void *yyrealloc (void *ptr, yy_size_t size)
{
/* The cast to (char *) in the following accommodates both
* implementations that use char* generic pointers, and those
* that use void* generic pointers. It works with the latter
* because both ANSI C and C++ allow castless assignment from
* any pointer type to void*, and deal with argument conversions
* as though doing an assignment.
*/
}
void yyfree (void *ptr)
{
free ((char *) ptr
); /* see yyrealloc() for (char *) cast */
}
#define YYTABLES_NAME "yytables"
#line 786 "acf_lex.l"
/* terminate an ACFP and VHDL comment */
void skip_to_eol (void)
{
int c;
for (;;)
{
c = input ();
if (c == '\n' || c == EOF)
{
lineno++;
return;
}
} /* VHDL comment */
}
/* execute a command line command */
char stringbuff[MAXIDLEN];
void lex_exec_line (void)
{
int c, i;
for (i = 0; i < MAXIDLEN - 2;)
{
c = input ();
stringbuff[i++] = c;
if (c == '\n' || c == EOF)
{
lineno++;
stringbuff[i] = 0;
ExecuteString (stringbuff, yy_nArgs, yy_Args);
return;
}
}
stringbuff[i] = 0;
ExecuteString (stringbuff, yy_nArgs, yy_Args);
}
/* supporting functions need to be in sane file so LEX macros work */
void skip_c_comment (void)
{
int c;
for (;;)
{
while (((c = input ()) != EOF) && (c != '*'))
{
if (c == '\n')
lineno++;
}
if (c == '*')
{
while ((c = input ()) == '*')
if (c == '\n')
lineno++;
if (c == '/')
break;
}
if (c == EOF)
{
Log (LOG_GENERAL, "End of file in comment\n");
break;
}
}
}
void exit_lex_block (void)
{
inside_block = 0;
prev_begin = INITIAL;
BEGIN (INITIAL);
}
void tidy_lex (void)
{
errorseen = 0;
include_stack_ptr = 0;
exit_lex_block ();
start_grammar = FILEMODE;
}
int yyerror (char *x)
{
if (!errorseen)
{
if (include_stack_ptr == 0)
{
Log (
LOG_ERROR,
"-- Error in %s syntax\n-- -->%s near string (%s) at line %d\n",
yyerr_start_names[YY_START],
x,
yytext,
lineno);
}
else
{
Log (
LOG_ERROR,
"-- File %s: Error in %s syntax\n-- -->%s near string (%s) at "
"line %d\n",
filename[include_stack_ptr],
yyerr_start_names[YY_START],
x,
yytext,
lineno);
}
}
errorseen = 1;
include_stack_ptr = 0;
exit_lex_block ();
YY_FLUSH_BUFFER;
yyterminate ();
return 1;
}
/********************************************************/
/* Reading generic expressions from a string */
/********************************************************/
static char *myinputptr;
static char *myinputlim;
/* this is exported */
expression_t *cmd_expression;
int my_yyinput (char *buf, int max_size)
{
int n;
n = (max_size < (myinputlim - myinputptr)) ? max_size : myinputlim - myinputptr;
if (n > 0)
{
myinputptr += n;
}
return n;
}
/* this function requires a large number of declarations from
lex. */
expression_t *compile_expression_from_string (char *s)
{
int prev_expr_begin;
myinputptr = s;
prev_expr_begin = YY_START;
BEGIN (expr);
start_grammar = CMDMODE;
lex_from_string = 1;
yy_scan_buffer
(s
, strlen (s
)); // new code no macro mangle
lex_from_string = 0;
BEGIN (prev_expr_begin);
return cmd_expression;
}