#line 2 "scan_spice.cpp" #line 4 "scan_spice.cpp" #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 5 #define YY_FLEX_SUBMINOR_VERSION 33 #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 #include #include #include /* end standard C headers. */ /* flex integer type definitions */ #ifndef FLEXINT_H #define FLEXINT_H /* C99 systems have . Non-C99 systems may or may not. */ #if __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 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; #endif /* ! C99 */ /* 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 #endif /* ! FLEXINT_H */ #ifdef __cplusplus /* The "const" storage-class-modifier is valid. */ #define YY_USE_CONST #else /* ! __cplusplus */ #if __STDC__ #define YY_USE_CONST #endif /* __STDC__ */ #endif /* ! __cplusplus */ #ifdef YY_USE_CONST #define yyconst const #else #define yyconst #endif /* Returned upon end-of-file. */ #define YY_NULL 0 /* Promotes a possibly negative, possibly signed char to an unsigned * integer for use as an array index. If the signed char is negative, * we want to instead treat it as an 8-bit unsigned char, hence the * double cast. */ #define YY_SC_TO_UI(c) ((unsigned int) (unsigned 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 spice_restart(spice_in ) #define YY_END_OF_BUFFER_CHAR 0 /* Size of default input buffer. */ #ifndef YY_BUF_SIZE #define YY_BUF_SIZE 16384 #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 extern int spice_leng; extern FILE *spice_in, *spice_out; #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 /* Note: We specifically omit the test for yy_rule_can_match_eol because it requires * access to the local variable yy_act. Since yyless() is a macro, it would break * existing scanners that call yyless() from OUTSIDE spice_lex. * One obvious solution it to make yy_act a global. I tried that, and saw * a 5% performance hit in a non-spice_lineno scanner, because yy_act is * normally declared as a register variable-- so it is not worth it. */ #define YY_LESS_LINENO(n) \ do { \ int yyl;\ for ( yyl = n; yyl < spice_leng; ++yyl )\ if ( spice_text[yyl] == '\n' )\ --spice_lineno;\ }while(0) /* Return all but the first "n" matched characters back to the input stream. */ #define yyless(n) \ do \ { \ /* Undo effects of setting up spice_text. */ \ 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 spice_text again */ \ } \ while ( 0 ) #define unput(c) yyunput( c, (yytext_ptr) ) /* The following is because we cannot portably get our hands on size_t * (without autoconf's help, which isn't available because we want * flex-generated scanners to compile on their own). */ #ifndef YY_TYPEDEF_YY_SIZE_T #define YY_TYPEDEF_YY_SIZE_T typedef unsigned int yy_size_t; #endif #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. */ yy_size_t 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 spice_restart()), so that the user can continue scanning by * just pointing spice_in 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 = 0; /**< 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 spice_text is formed. */ static char yy_hold_char; static int yy_n_chars; /* number of characters read into yy_ch_buf */ int spice_leng; /* Points to current character in buffer. */ static char *yy_c_buf_p = (char *) 0; static int yy_init = 0; /* whether we need to initialize */ static int yy_start = 0; /* start state number */ /* Flag which is used to allow spice_wrap()'s to do buffer switches * instead of setting up a fresh spice_in. A bit of a hack ... */ static int yy_did_buffer_switch_on_eof; void spice_restart (FILE *input_file ); void spice__switch_to_buffer (YY_BUFFER_STATE new_buffer ); YY_BUFFER_STATE spice__create_buffer (FILE *file,int size ); void spice__delete_buffer (YY_BUFFER_STATE b ); void spice__flush_buffer (YY_BUFFER_STATE b ); void spice_push_buffer_state (YY_BUFFER_STATE new_buffer ); void spice_pop_buffer_state (void ); static void spice_ensure_buffer_stack (void ); static void spice__load_buffer_state (void ); static void spice__init_buffer (YY_BUFFER_STATE b,FILE *file ); #define YY_FLUSH_BUFFER spice__flush_buffer(YY_CURRENT_BUFFER ) YY_BUFFER_STATE spice__scan_buffer (char *base,yy_size_t size ); YY_BUFFER_STATE spice__scan_string (yyconst char *yy_str ); YY_BUFFER_STATE spice__scan_bytes (yyconst char *bytes,int len ); void *spice_alloc (yy_size_t ); void *spice_realloc (void *,yy_size_t ); void spice_free (void * ); #define yy_new_buffer spice__create_buffer #define yy_set_interactive(is_interactive) \ { \ if ( ! YY_CURRENT_BUFFER ){ \ spice_ensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ spice__create_buffer(spice_in,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ } #define yy_set_bol(at_bol) \ { \ if ( ! YY_CURRENT_BUFFER ){\ spice_ensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ spice__create_buffer(spice_in,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 */ #define spice_wrap() 1 #define YY_SKIP_YYWRAP typedef unsigned char YY_CHAR; FILE *spice_in = (FILE *) 0, *spice_out = (FILE *) 0; typedef int yy_state_type; extern int spice_lineno; int spice_lineno = 1; extern char *spice_text; #define yytext_ptr spice_text static yy_state_type yy_get_previous_state (void ); static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); static int yy_get_next_buffer (void ); static void yy_fatal_error (yyconst char msg[] ); /* Done after the current pattern has been matched and before the * corresponding action - sets up spice_text. */ #define YY_DO_BEFORE_ACTION \ (yytext_ptr) = yy_bp; \ spice_leng = (size_t) (yy_cp - yy_bp); \ (yy_hold_char) = *yy_cp; \ *yy_cp = '\0'; \ (yy_c_buf_p) = yy_cp; #define YY_NUM_RULES 92 #define YY_END_OF_BUFFER 93 /* 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 yyconst flex_int16_t yy_accept[609] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 93, 90, 84, 92, 90, 9, 4, 90, 2, 3, 90, 90, 17, 12, 15, 16, 14, 13, 19, 22, 20, 21, 23, 18, 86, 84, 85, 86, 83, 90, 82, 90, 90, 71, 90, 82, 82, 82, 61, 82, 82, 82, 82, 82, 82, 56, 77, 77, 77, 77, 55, 77, 77, 77, 77, 77, 71, 64, 79, 77, 76, 76, 77, 77, 77, 76, 77, 77, 77, 87, 84, 87, 4, 82, 82, 82, 48, 82, 82, 62, 82, 90, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 2, 3, 90, 17, 12, 65, 15, 16, 14, 67, 13, 12, 68, 19, 66, 12, 22, 20, 21, 14, 23, 18, 69, 57, 71, 77, 60, 6, 6, 7, 6, 4, 6, 82, 82, 82, 82, 82, 89, 84, 88, 89, 4, 78, 77, 0, 0, 84, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 12, 12, 15, 15, 16, 16, 14, 14, 13, 13, 19, 19, 22, 22, 20, 20, 21, 21, 23, 23, 18, 18, 85, 0, 83, 0, 82, 0, 72, 72, 72, 71, 72, 72, 72, 72, 0, 63, 82, 82, 82, 82, 61, 82, 82, 82, 82, 82, 63, 82, 82, 82, 60, 60, 56, 77, 77, 55, 77, 53, 77, 77, 77, 55, 77, 71, 72, 72, 72, 72, 64, 79, 77, 77, 77, 77, 77, 77, 77, 77, 77, 76, 77, 77, 75, 82, 48, 63, 82, 77, 77, 77, 77, 77, 77, 77, 77, 47, 77, 77, 77, 77, 77, 2, 0, 17, 17, 12, 12, 65, 15, 16, 14, 67, 13, 13, 12, 68, 19, 19, 66, 66, 22, 22, 20, 20, 21, 14, 23, 18, 69, 69, 71, 52, 60, 7, 0, 0, 82, 82, 82, 82, 82, 88, 0, 78, 50, 0, 27, 0, 31, 0, 0, 30, 0, 0, 0, 32, 0, 0, 41, 0, 0, 0, 0, 44, 0, 0, 72, 0, 72, 72, 0, 0, 49, 82, 75, 82, 82, 82, 82, 77, 51, 77, 77, 72, 72, 77, 76, 76, 77, 77, 76, 77, 82, 82, 77, 77, 46, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 0, 17, 12, 13, 12, 19, 66, 22, 20, 20, 14, 47, 0, 82, 82, 82, 82, 82, 70, 0, 0, 0, 0, 0, 0, 0, 36, 0, 0, 0, 0, 0, 0, 0, 0, 0, 72, 0, 82, 82, 82, 82, 77, 77, 54, 77, 82, 82, 58, 77, 77, 77, 58, 77, 77, 77, 58, 77, 77, 77, 77, 70, 17, 13, 12, 19, 66, 22, 20, 20, 0, 74, 82, 73, 82, 82, 70, 70, 0, 0, 0, 45, 0, 0, 0, 0, 0, 26, 0, 42, 43, 0, 33, 25, 0, 0, 81, 63, 82, 77, 77, 82, 77, 77, 77, 77, 77, 77, 77, 77, 11, 17, 13, 66, 22, 20, 20, 8, 82, 0, 28, 0, 24, 0, 39, 0, 34, 0, 38, 82, 82, 77, 77, 77, 77, 77, 77, 77, 77, 77, 17, 13, 66, 22, 20, 82, 0, 0, 0, 37, 10, 82, 58, 77, 77, 59, 77, 77, 77, 17, 13, 66, 22, 20, 5, 40, 29, 35, 80, 77, 77, 77, 77, 77, 13, 66, 22, 20, 77, 77, 77, 13, 66, 22, 20, 77, 13, 59, 20, 77, 20, 20, 0 } ; static yyconst flex_int32_t 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, 5, 1, 1, 1, 1, 1, 2, 1, 1, 6, 7, 1, 1, 1, 8, 8, 9, 10, 8, 11, 12, 13, 14, 15, 15, 16, 14, 14, 14, 14, 14, 14, 17, 18, 1, 8, 1, 1, 19, 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, 46, 17, 47, 1, 48, 1, 20, 21, 22, 23, 49, 50, 51, 27, 52, 29, 53, 54, 55, 56, 34, 57, 36, 37, 38, 58, 59, 41, 42, 43, 44, 45, 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, 1, 1, 1, 1 } ; static yyconst flex_int32_t yy_meta[60] = { 0, 1, 2, 2, 2, 1, 3, 1, 2, 2, 1, 4, 5, 6, 7, 7, 7, 5, 2, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 10, 11, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8 } ; static yyconst flex_int16_t yy_base[712] = { 0, 0, 12, 70, 73, 81, 0, 140, 0, 198, 0, 252, 299, 346, 0, 213, 223, 387, 0, 445, 492, 520, 0, 573, 631, 671, 709, 757, 0, 1708, 1707, 231, 239, 796, 0, 270, 278, 854, 901, 939, 982, 1025, 1074, 1747, 3643, 3643, 280, 7, 3643, 3643, 179, 264, 76, 1113, 215, 1170, 1217, 1264, 1311, 1358, 1405, 1452, 1499, 1546, 1593, 1640, 1687, 3643, 3643, 285, 220, 310, 233, 0, 307, 277, 1730, 0, 386, 409, 1700, 1735, 287, 1706, 1710, 284, 383, 1693, 1784, 467, 319, 410, 322, 325, 470, 464, 507, 461, 511, 1830, 0, 0, 0, 1691, 0, 236, 518, 532, 389, 1686, 1665, 1644, 3643, 3643, 241, 3643, 1654, 675, 426, 0, 387, 408, 0, 1623, 513, 510, 546, 557, 687, 570, 704, 724, 708, 743, 735, 749, 776, 794, 1633, 3643, 575, 827, 811, 473, 520, 573, 795, 863, 872, 871, 875, 881, 884, 916, 919, 920, 928, 929, 953, 959, 963, 0, 326, 975, 972, 3643, 3643, 822, 246, 3643, 518, 1594, 1609, 1592, 1598, 1571, 3643, 3643, 838, 293, 3643, 0, 993, 942, 421, 3643, 386, 617, 3643, 704, 719, 1563, 1547, 723, 1543, 549, 1542, 1541, 484, 964, 993, 995, 454, 1888, 0, 1935, 0, 1982, 0, 2029, 0, 2076, 0, 2123, 0, 2170, 0, 2217, 0, 2264, 0, 2311, 0, 2358, 0, 2405, 0, 958, 761, 1018, 775, 0, 1032, 2442, 1046, 1053, 2496, 2544, 1039, 0, 1519, 1499, 0, 434, 1517, 1497, 545, 1509, 567, 664, 718, 730, 798, 0, 835, 1486, 1470, 1482, 406, 1473, 0, 1065, 1068, 1085, 1069, 1081, 1099, 1105, 1114, 1153, 1085, 2592, 1179, 0, 1399, 0, 0, 1407, 1406, 567, 778, 842, 676, 977, 661, 1404, 0, 1417, 1394, 0, 1383, 0, 0, 1363, 1117, 1186, 1147, 1190, 1194, 2646, 1204, 1200, 1231, 1235, 1239, 1274, 1273, 1258, 1392, 904, 1245, 1285, 1286, 1294, 1319, 1327, 1328, 1331, 1337, 1340, 1341, 1366, 1367, 1375, 1376, 1385, 1399, 1386, 1389, 1414, 1424, 1418, 1435, 1434, 1446, 1461, 1467, 1128, 1470, 1471, 1053, 876, 923, 746, 858, 951, 1342, 953, 1299, 986, 0, 1479, 1335, 3643, 970, 3643, 1283, 764, 3643, 1288, 1278, 1098, 878, 1223, 986, 3643, 1212, 1084, 1228, 1102, 3643, 1213, 1199, 1483, 1245, 1507, 1060, 1063, 0, 0, 985, 0, 1069, 1055, 1142, 1035, 1521, 1507, 1531, 1527, 1554, 976, 955, 0, 0, 933, 906, 0, 1045, 1064, 1122, 1540, 1561, 1530, 1577, 1608, 1602, 1576, 1611, 1617, 1627, 1658, 1649, 1650, 1668, 1664, 905, 1785, 1667, 1791, 1681, 1700, 1704, 1897, 1901, 1910, 1708, 1712, 866, 813, 1173, 800, 1193, 1127, 1353, 1235, 1277, 802, 1209, 1107, 1153, 798, 1184, 1287, 1250, 1167, 759, 730, 994, 1370, 1310, 1369, 1794, 692, 700, 1287, 1426, 711, 1907, 1918, 1720, 1335, 679, 670, 1788, 1929, 1953, 1949, 1809, 1824, 1963, 1964, 1818, 1991, 1990, 2007, 2016, 1522, 2042, 2052, 1821, 1898, 2043, 2061, 2053, 2062, 606, 0, 593, 0, 1438, 1447, 1526, 1286, 1429, 519, 512, 3643, 1455, 1455, 498, 1583, 491, 3643, 1534, 3643, 3643, 1556, 3643, 3643, 488, 461, 3643, 1634, 1594, 2094, 449, 1658, 2095, 2004, 2091, 2131, 2105, 2106, 2137, 2141, 3643, 2147, 2180, 2184, 2164, 2153, 2188, 3643, 447, 398, 3643, 406, 3643, 1685, 3643, 1744, 3643, 1581, 3643, 399, 315, 2201, 307, 2192, 2232, 2241, 2200, 2235, 2251, 2274, 2283, 2298, 2294, 2284, 2319, 1688, 1774, 1789, 1628, 289, 3643, 249, 2238, 2325, 2329, 2250, 2366, 2367, 2378, 2335, 2387, 2381, 2558, 2566, 3643, 3643, 3643, 3643, 0, 2567, 2343, 2390, 2576, 2619, 2633, 2415, 2622, 2649, 2425, 2659, 2426, 2676, 2660, 2429, 2679, 2438, 2680, 2691, 2701, 2702, 2713, 2714, 3643, 2771, 2782, 2793, 2804, 2815, 2826, 2837, 2848, 2858, 2865, 2875, 2885, 2895, 2905, 2915, 2925, 2935, 2945, 2955, 2965, 2975, 2984, 203, 2993, 3002, 3011, 3016, 3024, 3032, 3039, 3048, 3057, 3066, 3075, 3084, 3093, 3102, 3111, 3120, 3129, 3138, 3147, 3156, 3165, 3174, 3183, 3192, 3201, 3209, 3219, 3226, 3231, 3241, 3246, 3256, 3261, 3271, 3276, 3286, 3291, 3301, 3306, 3316, 3321, 3331, 3336, 3346, 3351, 3361, 3366, 3376, 3381, 3391, 3396, 3401, 3410, 3419, 3427, 3436, 3441, 3449, 3456, 3465, 3474, 3483, 3492, 3501, 3510, 3519, 3528, 3537, 3546, 3555, 3564, 3573, 3582, 3591, 3600, 3609, 3618, 3626, 196, 3631 } ; static yyconst flex_int16_t yy_def[712] = { 0, 609, 608, 610, 610, 608, 5, 608, 7, 609, 9, 611, 611, 608, 13, 612, 612, 5, 17, 613, 613, 5, 21, 7, 608, 17, 17, 7, 27, 27, 27, 614, 614, 17, 33, 615, 615, 616, 616, 27, 27, 27, 27, 608, 608, 608, 608, 608, 608, 608, 608, 617, 617, 608, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 608, 608, 608, 608, 608, 608, 630, 608, 608, 608, 631, 630, 630, 630, 632, 630, 630, 630, 630, 630, 630, 633, 634, 634, 634, 634, 634, 634, 634, 634, 634, 634, 608, 635, 636, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 608, 608, 608, 608, 630, 630, 630, 638, 630, 630, 630, 630, 608, 634, 634, 634, 634, 634, 634, 634, 634, 634, 634, 634, 634, 634, 608, 608, 53, 639, 640, 641, 642, 643, 644, 645, 646, 640, 647, 648, 649, 640, 650, 651, 652, 644, 653, 654, 655, 630, 630, 634, 656, 608, 608, 608, 608, 608, 608, 630, 630, 630, 630, 630, 608, 608, 608, 608, 608, 657, 634, 608, 608, 608, 608, 658, 608, 608, 658, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 608, 608, 608, 608, 630, 608, 608, 233, 233, 608, 236, 237, 237, 237, 683, 630, 630, 630, 630, 630, 684, 630, 630, 630, 630, 630, 630, 630, 630, 630, 685, 685, 685, 686, 687, 687, 687, 687, 687, 687, 687, 687, 687, 233, 233, 271, 271, 271, 688, 689, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 630, 630, 690, 630, 630, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 608, 608, 691, 691, 692, 692, 693, 694, 695, 696, 697, 698, 698, 692, 699, 700, 700, 701, 701, 702, 702, 703, 703, 704, 696, 705, 706, 707, 707, 630, 687, 708, 608, 608, 608, 630, 630, 630, 630, 630, 608, 608, 709, 687, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 271, 608, 236, 237, 683, 710, 630, 630, 630, 630, 630, 630, 630, 687, 687, 687, 687, 233, 271, 686, 686, 686, 686, 686, 686, 686, 630, 630, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 608, 691, 692, 698, 692, 700, 701, 702, 703, 703, 696, 707, 608, 630, 630, 630, 630, 630, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 233, 711, 630, 630, 630, 630, 687, 687, 687, 686, 630, 630, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 608, 691, 698, 692, 700, 701, 702, 703, 703, 608, 630, 630, 630, 630, 630, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 711, 608, 630, 630, 687, 686, 630, 687, 687, 687, 687, 687, 687, 687, 687, 608, 691, 698, 701, 702, 703, 703, 608, 630, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 630, 630, 687, 686, 687, 687, 687, 687, 687, 687, 687, 691, 698, 701, 702, 703, 630, 608, 608, 608, 608, 608, 630, 687, 687, 687, 687, 687, 687, 687, 691, 698, 701, 702, 703, 608, 608, 608, 608, 630, 687, 687, 687, 687, 687, 698, 701, 702, 703, 687, 687, 687, 698, 701, 702, 703, 687, 698, 701, 703, 687, 703, 703, 0, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608 } ; static yyconst flex_int16_t yy_nxt[3703] = { 0, 608, 45, 46, 47, 48, 608, 49, 45, 49, 183, 184, 50, 44, 51, 46, 47, 48, 44, 49, 45, 52, 44, 44, 53, 44, 54, 54, 54, 44, 44, 44, 54, 55, 56, 54, 57, 58, 57, 58, 59, 54, 60, 56, 54, 54, 61, 54, 54, 56, 62, 63, 64, 59, 65, 66, 54, 54, 44, 44, 44, 57, 58, 57, 59, 60, 56, 54, 54, 54, 63, 64, 68, 69, 70, 68, 69, 70, 68, 188, 189, 68, 44, 45, 71, 72, 44, 73, 49, 45, 49, 74, 74, 75, 44, 76, 76, 76, 44, 44, 77, 78, 73, 73, 79, 80, 73, 73, 73, 81, 73, 73, 82, 73, 83, 84, 85, 73, 73, 86, 87, 73, 88, 73, 73, 73, 73, 44, 44, 73, 80, 73, 73, 81, 73, 82, 73, 83, 85, 87, 73, 44, 45, 71, 72, 44, 73, 49, 45, 49, 74, 74, 75, 44, 76, 76, 76, 44, 44, 44, 89, 90, 90, 91, 90, 90, 90, 90, 92, 90, 90, 93, 90, 94, 95, 96, 90, 97, 90, 98, 90, 90, 93, 90, 90, 90, 44, 44, 73, 90, 90, 90, 92, 90, 93, 90, 94, 96, 98, 90, 45, 71, 72, 186, 453, 49, 45, 49, 74, 74, 75, 241, 99, 99, 99, 113, 71, 114, 188, 189, 115, 113, 115, 227, 228, 113, 71, 114, 186, 100, 115, 113, 115, 166, 167, 168, 229, 230, 169, 166, 169, 166, 167, 168, 229, 230, 169, 166, 169, 340, 341, 170, 100, 44, 45, 46, 47, 44, 44, 49, 45, 49, 44, 44, 44, 44, 187, 188, 189, 44, 44, 44, 177, 178, 179, 278, 584, 180, 177, 180, 177, 178, 179, 183, 184, 180, 177, 180, 183, 184, 185, 234, 234, 234, 278, 185, 348, 349, 44, 44, 44, 45, 46, 47, 44, 44, 49, 45, 49, 44, 44, 44, 44, 183, 184, 248, 44, 44, 44, 232, 185, 233, 233, 233, 251, 231, 252, 583, 231, 253, 260, 231, 260, 260, 397, 260, 260, 567, 260, 248, 337, 337, 337, 251, 264, 44, 44, 44, 45, 46, 47, 44, 44, 49, 45, 49, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 102, 102, 103, 104, 102, 102, 102, 102, 102, 102, 102, 105, 102, 106, 102, 107, 102, 108, 109, 102, 110, 111, 102, 102, 102, 102, 44, 44, 44, 102, 102, 102, 102, 102, 105, 102, 106, 107, 102, 110, 44, 116, 242, 292, 117, 254, 256, 285, 289, 73, 231, 243, 243, 352, 73, 260, 118, 260, 183, 184, 73, 259, 73, 563, 292, 242, 562, 244, 263, 254, 293, 245, 285, 73, 243, 243, 352, 73, 118, 73, 44, 45, 71, 72, 44, 44, 49, 45, 49, 44, 44, 44, 244, 263, 293, 245, 44, 44, 44, 379, 251, 231, 252, 561, 231, 548, 260, 231, 260, 260, 231, 260, 260, 231, 260, 260, 372, 260, 260, 251, 260, 267, 379, 266, 262, 44, 44, 44, 45, 71, 72, 44, 44, 49, 45, 49, 44, 44, 44, 262, 372, 265, 512, 44, 44, 44, 267, 231, 266, 544, 231, 231, 260, 362, 260, 260, 260, 260, 260, 541, 231, 234, 234, 234, 262, 260, 294, 260, 268, 269, 539, 186, 44, 44, 120, 362, 342, 121, 73, 262, 536, 279, 122, 268, 280, 73, 231, 281, 73, 123, 535, 260, 73, 260, 269, 282, 186, 231, 283, 284, 295, 342, 260, 73, 260, 358, 122, 280, 73, 281, 231, 123, 48, 231, 381, 260, 359, 260, 260, 124, 260, 283, 284, 234, 234, 234, 393, 125, 126, 127, 90, 296, 298, 309, 289, 90, 381, 128, 129, 359, 130, 131, 132, 133, 90, 134, 135, 534, 136, 90, 296, 393, 137, 187, 188, 189, 298, 289, 309, 90, 128, 129, 533, 130, 132, 135, 44, 138, 71, 72, 48, 73, 49, 45, 139, 74, 74, 140, 44, 76, 76, 76, 44, 44, 44, 125, 141, 142, 143, 144, 145, 144, 145, 146, 147, 148, 149, 150, 130, 151, 132, 152, 153, 154, 155, 156, 157, 158, 159, 90, 160, 44, 44, 73, 144, 145, 144, 146, 148, 149, 150, 130, 132, 155, 156, 73, 382, 231, 73, 73, 393, 289, 260, 244, 260, 393, 73, 290, 253, 73, 73, 188, 189, 73, 231, 297, 161, 517, 231, 260, 382, 260, 393, 260, 73, 260, 188, 189, 244, 73, 393, 290, 73, 73, 231, 514, 73, 73, 513, 260, 297, 260, 299, 512, 73, 231, 301, 73, 73, 355, 260, 73, 260, 231, 161, 356, 507, 302, 260, 231, 260, 289, 73, 300, 260, 383, 260, 73, 227, 228, 73, 44, 44, 44, 429, 162, 162, 162, 304, 356, 289, 90, 229, 230, 90, 300, 231, 303, 383, 90, 305, 260, 90, 260, 90, 163, 90, 304, 90, 429, 90, 506, 164, 90, 231, 231, 303, 394, 437, 260, 260, 260, 260, 90, 306, 90, 395, 90, 90, 90, 73, 231, 307, 73, 73, 171, 260, 437, 260, 183, 184, 172, 394, 381, 73, 173, 185, 231, 73, 174, 501, 175, 260, 497, 260, 183, 184, 307, 489, 73, 171, 311, 185, 487, 172, 313, 381, 173, 174, 44, 45, 71, 72, 44, 44, 49, 45, 49, 44, 44, 44, 44, 381, 231, 313, 44, 44, 44, 260, 393, 260, 231, 231, 340, 341, 231, 260, 260, 260, 260, 260, 231, 260, 486, 231, 381, 260, 430, 260, 260, 320, 260, 393, 321, 44, 44, 44, 45, 71, 72, 44, 44, 49, 45, 49, 44, 44, 44, 44, 430, 324, 442, 44, 44, 44, 320, 231, 321, 326, 231, 231, 260, 477, 260, 260, 260, 260, 260, 231, 231, 442, 416, 324, 260, 260, 260, 260, 326, 394, 183, 184, 44, 44, 74, 74, 75, 185, 76, 76, 76, 428, 330, 328, 231, 416, 183, 184, 332, 260, 231, 260, 92, 185, 231, 260, 394, 260, 90, 260, 286, 260, 328, 231, 428, 90, 231, 431, 260, 433, 260, 260, 336, 260, 348, 349, 92, 74, 74, 75, 363, 76, 76, 76, 231, 266, 364, 394, 435, 260, 431, 260, 433, 338, 365, 92, 396, 336, 366, 444, 351, 90, 367, 363, 369, 370, 183, 184, 90, 454, 266, 435, 394, 185, 508, 273, 338, 371, 368, 92, 74, 74, 75, 444, 76, 76, 76, 367, 454, 369, 370, 234, 234, 234, 374, 374, 508, 368, 375, 375, 375, 183, 184, 608, 90, 234, 234, 234, 185, 182, 608, 90, 234, 234, 234, 373, 231, 457, 461, 231, 231, 260, 271, 260, 260, 260, 260, 260, 182, 74, 74, 75, 231, 76, 76, 76, 231, 260, 456, 260, 373, 260, 461, 260, 270, 270, 270, 271, 462, 262, 231, 386, 455, 90, 378, 260, 231, 260, 182, 239, 90, 260, 446, 260, 262, 231, 440, 462, 231, 387, 260, 441, 260, 260, 388, 260, 499, 182, 191, 448, 192, 193, 186, 194, 401, 446, 195, 337, 337, 337, 196, 197, 198, 199, 387, 441, 200, 201, 231, 388, 202, 499, 448, 260, 231, 260, 463, 186, 194, 260, 195, 260, 491, 196, 197, 199, 201, 190, 188, 189, 292, 190, 500, 190, 190, 463, 190, 190, 190, 403, 389, 491, 190, 190, 374, 374, 505, 231, 390, 390, 390, 231, 260, 292, 260, 231, 260, 500, 260, 488, 260, 231, 260, 389, 402, 231, 260, 502, 260, 404, 260, 505, 260, 204, 190, 188, 189, 450, 190, 490, 190, 190, 488, 190, 190, 190, 302, 405, 449, 190, 190, 502, 231, 411, 404, 498, 231, 260, 410, 260, 231, 260, 490, 260, 447, 260, 231, 260, 445, 302, 412, 260, 443, 260, 390, 390, 390, 410, 498, 231, 206, 190, 188, 189, 260, 190, 260, 190, 190, 495, 190, 190, 190, 413, 231, 231, 190, 190, 504, 260, 260, 260, 260, 413, 493, 494, 231, 231, 495, 414, 302, 260, 260, 260, 260, 231, 439, 183, 184, 403, 260, 504, 260, 417, 185, 438, 292, 208, 190, 188, 189, 496, 190, 415, 190, 190, 436, 190, 190, 190, 231, 503, 403, 190, 190, 260, 418, 260, 231, 231, 496, 292, 231, 260, 260, 260, 260, 260, 231, 260, 503, 231, 231, 260, 510, 260, 260, 260, 260, 260, 492, 493, 494, 434, 210, 190, 188, 189, 432, 190, 419, 190, 190, 510, 190, 190, 190, 231, 231, 516, 190, 190, 260, 260, 260, 260, 231, 231, 452, 452, 452, 260, 260, 260, 260, 419, 231, 231, 516, 308, 231, 260, 260, 260, 260, 260, 400, 260, 509, 420, 231, 212, 190, 188, 189, 260, 190, 260, 190, 190, 421, 190, 190, 190, 422, 231, 399, 190, 190, 231, 260, 509, 260, 423, 260, 231, 260, 493, 494, 421, 260, 398, 260, 423, 286, 231, 231, 397, 392, 424, 260, 260, 260, 260, 286, 381, 391, 231, 214, 190, 188, 189, 260, 190, 260, 190, 190, 487, 190, 190, 190, 426, 231, 425, 190, 190, 487, 260, 231, 260, 381, 231, 231, 260, 256, 260, 260, 260, 260, 260, 231, 538, 487, 256, 426, 260, 385, 260, 451, 451, 537, 487, 452, 452, 452, 216, 190, 188, 189, 427, 190, 384, 190, 190, 538, 190, 190, 190, 231, 537, 231, 190, 190, 260, 608, 260, 375, 375, 375, 492, 493, 494, 231, 492, 493, 494, 237, 260, 231, 260, 380, 231, 231, 260, 289, 260, 260, 260, 260, 260, 378, 231, 218, 190, 188, 189, 260, 190, 260, 190, 190, 237, 190, 190, 190, 526, 458, 460, 190, 190, 459, 608, 231, 390, 390, 390, 376, 260, 542, 260, 361, 360, 357, 271, 464, 458, 354, 231, 231, 460, 353, 543, 260, 260, 260, 260, 347, 542, 465, 220, 190, 188, 189, 464, 190, 468, 190, 190, 271, 190, 190, 190, 540, 231, 543, 190, 190, 466, 260, 231, 260, 465, 231, 346, 260, 566, 260, 260, 231, 260, 468, 345, 546, 260, 344, 260, 343, 540, 231, 466, 308, 467, 470, 260, 566, 260, 222, 190, 188, 189, 469, 190, 464, 190, 190, 546, 190, 190, 190, 471, 231, 231, 190, 190, 545, 260, 260, 260, 260, 231, 468, 464, 582, 253, 260, 231, 260, 473, 231, 231, 260, 289, 260, 260, 260, 260, 260, 288, 545, 545, 474, 582, 231, 224, 190, 188, 189, 260, 190, 260, 190, 190, 472, 190, 190, 190, 475, 287, 476, 190, 190, 231, 474, 545, 564, 231, 260, 487, 260, 231, 260, 472, 260, 231, 260, 480, 260, 476, 260, 475, 260, 231, 482, 286, 277, 255, 260, 250, 260, 564, 226, 231, 487, 481, 480, 249, 231, 235, 246, 236, 236, 236, 608, 90, 90, 237, 237, 237, 237, 238, 237, 239, 237, 237, 237, 239, 237, 239, 237, 237, 237, 237, 237, 237, 239, 237, 237, 237, 237, 237, 237, 608, 565, 231, 238, 239, 239, 237, 239, 237, 240, 239, 239, 237, 239, 256, 231, 608, 608, 231, 608, 260, 231, 260, 260, 565, 260, 260, 608, 260, 580, 608, 258, 452, 452, 452, 608, 259, 581, 608, 231, 259, 478, 271, 259, 260, 259, 260, 608, 231, 608, 479, 231, 580, 260, 231, 260, 260, 608, 260, 260, 259, 260, 581, 259, 478, 259, 235, 271, 270, 270, 270, 464, 479, 608, 271, 271, 271, 271, 272, 271, 273, 271, 271, 271, 273, 271, 273, 271, 271, 271, 271, 271, 271, 273, 271, 271, 271, 271, 271, 271, 608, 608, 608, 272, 273, 273, 271, 273, 271, 274, 273, 273, 271, 273, 190, 188, 189, 608, 190, 608, 190, 190, 608, 190, 190, 190, 608, 231, 231, 190, 190, 231, 260, 260, 260, 260, 260, 231, 260, 608, 231, 608, 260, 608, 260, 260, 608, 260, 231, 608, 608, 608, 608, 260, 608, 260, 483, 262, 484, 231, 204, 190, 188, 189, 260, 190, 260, 190, 190, 608, 190, 190, 190, 485, 515, 608, 190, 190, 483, 231, 608, 484, 262, 231, 260, 608, 260, 518, 260, 608, 260, 608, 485, 231, 231, 608, 608, 515, 260, 260, 260, 260, 608, 608, 608, 608, 520, 206, 190, 188, 189, 519, 190, 521, 190, 190, 522, 190, 190, 190, 231, 231, 608, 190, 190, 260, 260, 260, 260, 520, 608, 608, 608, 608, 231, 608, 608, 231, 521, 260, 522, 260, 260, 523, 260, 524, 231, 608, 608, 608, 608, 260, 608, 260, 208, 190, 188, 189, 608, 190, 608, 190, 190, 550, 190, 190, 190, 523, 524, 472, 190, 190, 231, 231, 525, 608, 608, 260, 260, 260, 260, 608, 231, 231, 608, 550, 608, 260, 260, 260, 260, 231, 231, 608, 608, 529, 260, 260, 260, 260, 527, 210, 190, 188, 189, 608, 190, 608, 190, 190, 528, 190, 190, 190, 608, 531, 530, 190, 190, 529, 532, 231, 608, 608, 231, 231, 260, 608, 260, 260, 260, 260, 260, 608, 608, 231, 231, 608, 608, 530, 260, 260, 260, 260, 608, 608, 608, 608, 212, 190, 188, 189, 547, 190, 551, 190, 190, 549, 190, 190, 190, 231, 552, 553, 190, 190, 260, 231, 260, 608, 608, 231, 260, 551, 260, 608, 260, 231, 260, 468, 608, 608, 260, 231, 260, 552, 553, 555, 260, 554, 260, 608, 608, 608, 231, 214, 190, 188, 189, 260, 190, 260, 190, 190, 468, 190, 190, 190, 608, 556, 231, 190, 190, 554, 231, 260, 559, 260, 231, 260, 608, 260, 231, 260, 608, 260, 608, 260, 608, 260, 231, 231, 568, 608, 560, 260, 260, 260, 260, 557, 559, 558, 216, 190, 188, 189, 608, 190, 268, 190, 190, 608, 190, 190, 190, 608, 608, 608, 190, 190, 608, 557, 231, 571, 558, 231, 608, 260, 231, 260, 260, 231, 260, 260, 608, 260, 260, 608, 260, 608, 231, 231, 571, 608, 569, 260, 260, 260, 260, 218, 190, 188, 189, 608, 190, 608, 190, 190, 572, 190, 190, 190, 570, 608, 231, 190, 190, 573, 569, 260, 608, 260, 608, 231, 231, 608, 608, 572, 260, 260, 260, 260, 608, 575, 231, 608, 608, 608, 231, 260, 573, 260, 574, 260, 608, 260, 220, 190, 188, 189, 578, 190, 608, 190, 190, 608, 190, 190, 190, 231, 576, 608, 190, 190, 260, 231, 260, 577, 608, 231, 260, 608, 260, 578, 260, 231, 260, 608, 608, 608, 260, 608, 260, 231, 576, 608, 577, 579, 260, 608, 260, 608, 585, 222, 190, 188, 189, 586, 190, 608, 190, 190, 608, 190, 190, 190, 231, 231, 571, 190, 190, 260, 260, 260, 260, 585, 608, 608, 231, 608, 608, 231, 608, 260, 587, 260, 260, 231, 260, 588, 231, 571, 260, 608, 260, 260, 608, 260, 608, 591, 224, 190, 188, 189, 589, 190, 608, 190, 190, 587, 190, 190, 190, 588, 590, 231, 190, 190, 608, 608, 260, 595, 260, 608, 591, 231, 231, 589, 608, 231, 260, 260, 260, 260, 260, 608, 260, 590, 231, 608, 601, 608, 608, 260, 608, 260, 598, 226, 235, 608, 233, 233, 233, 568, 605, 608, 271, 271, 271, 271, 272, 271, 273, 271, 271, 271, 273, 271, 273, 271, 271, 271, 271, 271, 271, 273, 271, 271, 271, 271, 271, 271, 608, 608, 608, 272, 273, 273, 271, 273, 271, 274, 273, 273, 271, 273, 231, 608, 608, 608, 608, 608, 235, 608, 236, 236, 236, 608, 608, 608, 237, 237, 237, 237, 238, 237, 239, 237, 237, 237, 239, 237, 239, 237, 237, 237, 237, 237, 237, 239, 237, 237, 237, 237, 237, 237, 608, 608, 231, 238, 239, 239, 237, 239, 237, 240, 239, 239, 237, 239, 608, 608, 231, 231, 231, 608, 608, 608, 231, 608, 608, 608, 237, 260, 237, 260, 231, 231, 237, 608, 237, 260, 260, 260, 260, 608, 231, 237, 608, 608, 592, 260, 608, 260, 608, 608, 594, 237, 237, 237, 608, 237, 593, 237, 237, 237, 608, 237, 608, 608, 608, 608, 608, 608, 592, 608, 608, 608, 608, 571, 271, 594, 271, 608, 608, 593, 271, 608, 271, 231, 608, 608, 231, 608, 260, 271, 260, 260, 571, 260, 608, 608, 608, 231, 608, 271, 271, 271, 260, 271, 260, 271, 271, 271, 608, 271, 231, 608, 596, 231, 608, 260, 597, 260, 260, 599, 260, 608, 608, 231, 231, 608, 406, 407, 260, 260, 260, 260, 608, 608, 596, 608, 408, 608, 599, 409, 231, 597, 600, 231, 231, 260, 608, 260, 260, 260, 260, 260, 571, 603, 608, 231, 608, 604, 608, 408, 260, 409, 260, 608, 600, 231, 231, 608, 602, 608, 260, 260, 260, 260, 571, 603, 608, 231, 231, 608, 608, 606, 260, 260, 260, 260, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 464, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 607, 608, 608, 608, 608, 608, 608, 608, 464, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 607, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 190, 190, 190, 190, 190, 190, 190, 203, 203, 203, 203, 203, 203, 203, 608, 608, 203, 205, 205, 205, 205, 205, 205, 205, 608, 608, 205, 207, 207, 207, 207, 207, 207, 207, 608, 608, 207, 209, 209, 209, 209, 209, 209, 209, 608, 608, 209, 211, 211, 211, 211, 211, 211, 211, 608, 608, 211, 213, 213, 213, 213, 213, 213, 213, 608, 608, 213, 215, 215, 215, 215, 215, 215, 215, 608, 608, 215, 217, 217, 217, 217, 217, 217, 217, 608, 608, 217, 219, 219, 219, 219, 219, 219, 219, 608, 608, 219, 221, 221, 221, 221, 221, 221, 221, 608, 608, 221, 223, 223, 223, 223, 223, 223, 223, 608, 608, 223, 225, 225, 225, 225, 225, 225, 225, 608, 608, 225, 231, 608, 608, 608, 231, 231, 608, 608, 231, 247, 608, 608, 608, 247, 247, 608, 608, 247, 257, 608, 608, 608, 257, 257, 608, 608, 257, 261, 261, 608, 261, 261, 261, 608, 608, 261, 275, 275, 608, 608, 275, 276, 608, 276, 276, 276, 608, 608, 276, 260, 608, 260, 260, 260, 608, 608, 260, 291, 291, 291, 291, 608, 608, 291, 310, 310, 608, 310, 310, 310, 608, 608, 310, 312, 312, 608, 312, 312, 312, 608, 608, 312, 314, 314, 608, 314, 314, 314, 608, 608, 314, 315, 315, 608, 315, 315, 315, 608, 608, 315, 316, 316, 608, 316, 316, 316, 608, 608, 316, 317, 317, 608, 317, 317, 317, 608, 608, 317, 318, 318, 608, 318, 318, 318, 608, 608, 318, 319, 319, 608, 319, 319, 319, 608, 608, 319, 322, 322, 608, 322, 322, 322, 608, 608, 322, 323, 323, 608, 323, 323, 323, 608, 608, 323, 325, 325, 608, 325, 325, 325, 608, 608, 325, 327, 327, 608, 327, 327, 327, 608, 608, 327, 329, 329, 608, 329, 329, 329, 608, 608, 329, 331, 331, 608, 331, 331, 331, 608, 608, 331, 333, 333, 608, 333, 333, 333, 608, 608, 333, 334, 334, 608, 334, 334, 334, 608, 608, 334, 335, 335, 608, 335, 335, 335, 608, 608, 335, 339, 339, 608, 339, 339, 339, 608, 608, 339, 350, 608, 350, 350, 350, 608, 608, 350, 190, 190, 190, 190, 190, 190, 190, 203, 203, 203, 203, 203, 203, 203, 608, 608, 203, 204, 204, 608, 608, 204, 205, 205, 205, 205, 205, 205, 205, 608, 608, 205, 206, 206, 608, 608, 206, 207, 207, 207, 207, 207, 207, 207, 608, 608, 207, 208, 208, 608, 608, 208, 209, 209, 209, 209, 209, 209, 209, 608, 608, 209, 210, 210, 608, 608, 210, 211, 211, 211, 211, 211, 211, 211, 608, 608, 211, 212, 212, 608, 608, 212, 213, 213, 213, 213, 213, 213, 213, 608, 608, 213, 214, 214, 608, 608, 214, 215, 215, 215, 215, 215, 215, 215, 608, 608, 215, 216, 216, 608, 608, 216, 217, 217, 217, 217, 217, 217, 217, 608, 608, 217, 218, 218, 608, 608, 218, 219, 219, 219, 219, 219, 219, 219, 608, 608, 219, 220, 220, 608, 608, 220, 221, 221, 221, 221, 221, 221, 221, 608, 608, 221, 222, 222, 608, 608, 222, 223, 223, 223, 223, 223, 223, 223, 608, 608, 223, 224, 224, 608, 608, 224, 225, 225, 225, 225, 225, 225, 225, 608, 608, 225, 226, 226, 608, 608, 226, 377, 377, 377, 608, 377, 247, 608, 608, 608, 247, 247, 608, 608, 247, 257, 608, 608, 608, 257, 257, 608, 608, 257, 260, 608, 260, 260, 260, 608, 608, 260, 261, 261, 608, 261, 261, 261, 608, 608, 261, 275, 275, 608, 608, 275, 276, 608, 276, 276, 276, 608, 608, 276, 291, 291, 291, 291, 608, 608, 291, 310, 310, 608, 310, 310, 310, 608, 608, 310, 312, 312, 608, 312, 312, 312, 608, 608, 312, 314, 314, 608, 314, 314, 314, 608, 608, 314, 315, 315, 608, 315, 315, 315, 608, 608, 315, 316, 316, 608, 316, 316, 316, 608, 608, 316, 317, 317, 608, 317, 317, 317, 608, 608, 317, 318, 318, 608, 318, 318, 318, 608, 608, 318, 319, 319, 608, 319, 319, 319, 608, 608, 319, 322, 322, 608, 322, 322, 322, 608, 608, 322, 323, 323, 608, 323, 323, 323, 608, 608, 323, 325, 325, 608, 325, 325, 325, 608, 608, 325, 327, 327, 608, 327, 327, 327, 608, 608, 327, 329, 329, 608, 329, 329, 329, 608, 608, 329, 331, 331, 608, 331, 331, 331, 608, 608, 331, 333, 333, 608, 333, 333, 333, 608, 608, 333, 334, 334, 608, 334, 334, 334, 608, 608, 334, 335, 335, 608, 335, 335, 335, 608, 608, 335, 339, 339, 608, 339, 339, 339, 608, 608, 339, 350, 608, 350, 350, 350, 608, 608, 350, 511, 511, 608, 511, 511, 43, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608 } ; static yyconst flex_int16_t yy_chk[3703] = { 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 47, 47, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 3, 52, 52, 4, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 9, 9, 9, 50, 710, 9, 9, 9, 9, 9, 9, 631, 9, 9, 9, 15, 15, 15, 54, 54, 15, 15, 15, 70, 70, 16, 16, 16, 50, 9, 16, 16, 16, 31, 31, 31, 72, 72, 31, 31, 31, 32, 32, 32, 114, 114, 32, 32, 32, 168, 168, 32, 9, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 51, 51, 51, 11, 11, 11, 35, 35, 35, 105, 567, 35, 35, 35, 36, 36, 36, 46, 46, 36, 36, 36, 69, 69, 46, 75, 75, 75, 105, 69, 179, 179, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 71, 71, 82, 12, 12, 12, 74, 71, 74, 74, 74, 85, 90, 85, 565, 92, 85, 90, 93, 90, 92, 548, 92, 93, 546, 93, 82, 162, 162, 162, 85, 92, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 17, 17, 78, 120, 17, 86, 258, 108, 545, 17, 91, 78, 120, 186, 17, 91, 17, 91, 184, 184, 17, 258, 17, 537, 121, 79, 535, 79, 91, 86, 121, 79, 108, 17, 78, 120, 186, 17, 17, 17, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 79, 91, 121, 79, 19, 19, 19, 243, 118, 97, 118, 534, 95, 516, 97, 89, 97, 95, 94, 95, 89, 143, 89, 94, 202, 94, 143, 118, 143, 97, 243, 95, 89, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 89, 202, 94, 511, 20, 20, 20, 97, 96, 95, 510, 125, 98, 96, 198, 96, 125, 98, 125, 98, 502, 144, 124, 124, 124, 96, 144, 125, 144, 98, 98, 500, 124, 20, 20, 21, 198, 170, 21, 21, 96, 496, 106, 21, 98, 106, 21, 126, 106, 21, 21, 495, 126, 21, 126, 98, 107, 124, 127, 107, 107, 126, 170, 127, 21, 127, 195, 21, 106, 21, 106, 129, 21, 23, 145, 246, 129, 195, 129, 145, 23, 145, 107, 107, 140, 140, 140, 279, 23, 23, 23, 23, 127, 129, 140, 248, 23, 246, 23, 23, 195, 23, 23, 23, 23, 23, 23, 23, 488, 23, 23, 127, 279, 23, 187, 187, 187, 129, 248, 140, 23, 23, 23, 486, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 25, 249, 128, 25, 25, 284, 117, 128, 117, 128, 282, 25, 117, 463, 25, 25, 189, 189, 25, 130, 128, 25, 462, 132, 130, 249, 130, 284, 132, 25, 132, 190, 190, 117, 25, 282, 117, 25, 26, 131, 457, 26, 26, 454, 131, 128, 131, 130, 453, 26, 134, 132, 26, 26, 193, 134, 26, 134, 133, 26, 193, 447, 132, 133, 135, 133, 250, 26, 131, 135, 251, 135, 26, 228, 228, 26, 27, 27, 27, 343, 27, 27, 27, 134, 193, 250, 27, 230, 230, 27, 131, 136, 133, 251, 27, 135, 136, 27, 136, 27, 27, 27, 134, 27, 343, 27, 446, 27, 27, 137, 146, 133, 280, 357, 137, 146, 137, 146, 27, 136, 27, 280, 27, 27, 27, 33, 142, 137, 33, 33, 33, 142, 357, 142, 167, 167, 33, 280, 252, 33, 33, 167, 141, 33, 33, 441, 33, 141, 437, 141, 178, 178, 137, 431, 33, 33, 141, 178, 429, 33, 142, 252, 33, 33, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 254, 147, 142, 37, 37, 37, 147, 281, 147, 149, 148, 341, 341, 150, 149, 148, 149, 148, 150, 151, 150, 428, 152, 254, 151, 344, 151, 152, 148, 152, 281, 149, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 344, 151, 362, 38, 38, 38, 148, 153, 149, 152, 154, 155, 153, 416, 153, 154, 155, 154, 155, 156, 157, 362, 309, 151, 156, 157, 156, 157, 152, 396, 183, 183, 38, 38, 39, 39, 39, 183, 39, 39, 39, 342, 155, 154, 158, 309, 227, 227, 157, 158, 159, 158, 39, 227, 160, 159, 395, 159, 39, 160, 392, 160, 154, 164, 342, 39, 163, 345, 164, 347, 164, 163, 160, 163, 349, 349, 39, 40, 40, 40, 199, 40, 40, 40, 182, 163, 199, 283, 354, 182, 345, 182, 347, 163, 199, 40, 283, 160, 200, 364, 182, 40, 200, 199, 201, 201, 229, 229, 40, 380, 163, 354, 283, 229, 448, 391, 163, 201, 200, 40, 41, 41, 41, 364, 41, 41, 41, 200, 380, 201, 201, 232, 232, 232, 238, 238, 448, 200, 238, 238, 238, 340, 340, 234, 41, 234, 234, 234, 340, 41, 235, 41, 235, 235, 235, 234, 261, 385, 398, 262, 264, 261, 235, 261, 262, 264, 262, 264, 41, 42, 42, 42, 265, 42, 42, 42, 263, 265, 383, 265, 234, 263, 398, 263, 270, 270, 270, 235, 399, 265, 266, 263, 382, 42, 377, 266, 267, 266, 42, 376, 42, 267, 367, 267, 265, 268, 361, 399, 294, 266, 268, 361, 268, 294, 267, 294, 439, 42, 53, 369, 53, 53, 53, 53, 294, 367, 53, 337, 337, 337, 53, 53, 53, 53, 266, 361, 53, 53, 296, 267, 53, 439, 369, 296, 269, 296, 400, 53, 53, 269, 53, 269, 433, 53, 53, 53, 53, 55, 55, 55, 384, 55, 440, 55, 55, 400, 55, 55, 55, 296, 269, 433, 55, 55, 272, 272, 445, 295, 272, 272, 272, 297, 295, 384, 295, 298, 297, 440, 297, 430, 298, 301, 298, 269, 295, 300, 301, 442, 301, 297, 300, 445, 300, 55, 56, 56, 56, 372, 56, 432, 56, 56, 430, 56, 56, 56, 301, 298, 371, 56, 56, 442, 302, 301, 297, 438, 303, 302, 300, 302, 304, 303, 432, 303, 368, 304, 310, 304, 366, 301, 303, 310, 363, 310, 374, 374, 374, 300, 438, 307, 56, 57, 57, 57, 307, 57, 307, 57, 57, 435, 57, 57, 57, 304, 306, 305, 57, 57, 444, 306, 305, 306, 305, 304, 493, 493, 311, 312, 435, 305, 307, 311, 312, 311, 312, 313, 360, 348, 348, 306, 313, 444, 313, 311, 348, 359, 455, 57, 58, 58, 58, 436, 58, 305, 58, 58, 356, 58, 58, 58, 314, 443, 306, 58, 58, 314, 313, 314, 315, 316, 436, 455, 317, 315, 316, 315, 316, 317, 318, 317, 443, 319, 320, 318, 450, 318, 319, 320, 319, 320, 434, 434, 434, 352, 58, 59, 59, 59, 346, 59, 320, 59, 59, 450, 59, 59, 59, 321, 322, 461, 59, 59, 321, 322, 321, 322, 323, 324, 451, 451, 451, 323, 324, 323, 324, 320, 325, 327, 461, 308, 328, 325, 327, 325, 327, 328, 293, 328, 449, 321, 326, 59, 60, 60, 60, 326, 60, 326, 60, 60, 324, 60, 60, 60, 326, 329, 290, 60, 60, 331, 329, 449, 329, 328, 331, 330, 331, 494, 494, 324, 330, 288, 330, 328, 287, 333, 332, 285, 278, 330, 333, 332, 333, 332, 277, 456, 274, 334, 60, 61, 61, 61, 334, 61, 334, 61, 61, 490, 61, 61, 61, 332, 335, 330, 61, 61, 491, 335, 336, 335, 456, 338, 339, 336, 259, 336, 338, 339, 338, 339, 351, 499, 490, 257, 332, 351, 256, 351, 373, 373, 498, 491, 373, 373, 373, 61, 62, 62, 62, 336, 62, 255, 62, 62, 499, 62, 62, 62, 387, 498, 247, 62, 62, 387, 375, 387, 375, 375, 375, 477, 477, 477, 386, 492, 492, 492, 375, 386, 389, 386, 245, 403, 388, 389, 244, 389, 403, 388, 403, 388, 241, 401, 62, 63, 63, 63, 401, 63, 401, 63, 63, 375, 63, 63, 63, 477, 386, 389, 63, 63, 388, 390, 402, 390, 390, 390, 240, 402, 504, 402, 197, 196, 194, 390, 401, 386, 192, 407, 404, 389, 191, 507, 407, 404, 407, 404, 175, 504, 402, 63, 64, 64, 64, 401, 64, 407, 64, 64, 390, 64, 64, 64, 501, 406, 507, 64, 64, 404, 406, 405, 406, 402, 408, 174, 405, 543, 405, 408, 409, 408, 407, 173, 514, 409, 172, 409, 171, 501, 410, 404, 138, 406, 409, 410, 543, 410, 64, 65, 65, 65, 408, 65, 405, 65, 65, 514, 65, 65, 65, 409, 412, 413, 65, 65, 513, 412, 413, 412, 413, 411, 410, 405, 564, 123, 411, 415, 411, 412, 418, 414, 415, 116, 415, 418, 414, 418, 414, 111, 517, 513, 413, 564, 420, 65, 66, 66, 66, 420, 66, 420, 66, 66, 411, 66, 66, 66, 414, 110, 415, 66, 66, 421, 413, 517, 539, 422, 421, 561, 421, 426, 422, 411, 422, 427, 426, 420, 426, 415, 427, 414, 427, 460, 422, 109, 103, 87, 460, 84, 460, 539, 66, 76, 561, 421, 420, 83, 81, 76, 80, 76, 76, 76, 43, 30, 29, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 0, 541, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 88, 417, 0, 0, 464, 0, 417, 419, 417, 464, 541, 464, 419, 0, 419, 562, 452, 88, 452, 452, 452, 0, 88, 563, 0, 468, 88, 417, 452, 88, 468, 88, 468, 0, 472, 0, 419, 480, 562, 472, 469, 472, 480, 0, 480, 469, 88, 469, 563, 88, 417, 88, 99, 452, 99, 99, 99, 469, 419, 0, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 0, 0, 0, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 203, 203, 203, 0, 203, 0, 203, 203, 0, 203, 203, 203, 0, 423, 481, 203, 203, 424, 423, 481, 423, 481, 424, 458, 424, 0, 425, 0, 458, 0, 458, 425, 0, 425, 459, 0, 0, 0, 0, 459, 0, 459, 423, 458, 424, 465, 203, 205, 205, 205, 465, 205, 465, 205, 205, 0, 205, 205, 205, 425, 459, 0, 205, 205, 423, 467, 0, 424, 458, 466, 467, 0, 467, 465, 466, 0, 466, 0, 425, 470, 471, 0, 0, 459, 470, 471, 470, 471, 0, 0, 0, 0, 467, 205, 207, 207, 207, 466, 207, 470, 207, 207, 471, 207, 207, 207, 474, 473, 0, 207, 207, 474, 473, 474, 473, 467, 0, 0, 0, 0, 519, 0, 0, 475, 470, 519, 471, 519, 475, 473, 475, 474, 476, 0, 0, 0, 0, 476, 0, 476, 207, 209, 209, 209, 0, 209, 0, 209, 209, 519, 209, 209, 209, 473, 474, 475, 209, 209, 478, 482, 476, 0, 0, 478, 482, 478, 482, 0, 479, 484, 0, 519, 0, 479, 484, 479, 484, 483, 485, 0, 0, 482, 483, 485, 483, 485, 478, 209, 211, 211, 211, 0, 211, 0, 211, 211, 479, 211, 211, 211, 0, 484, 483, 211, 211, 482, 485, 520, 0, 0, 515, 518, 520, 0, 520, 515, 518, 515, 518, 0, 0, 522, 523, 0, 0, 483, 522, 523, 522, 523, 0, 0, 0, 0, 211, 213, 213, 213, 515, 213, 520, 213, 213, 518, 213, 213, 213, 521, 522, 523, 213, 213, 521, 524, 521, 0, 0, 525, 524, 520, 524, 0, 525, 527, 525, 521, 0, 0, 527, 531, 527, 522, 523, 525, 531, 524, 531, 0, 0, 0, 530, 213, 215, 215, 215, 530, 215, 530, 215, 215, 521, 215, 215, 215, 0, 527, 528, 215, 215, 524, 529, 528, 530, 528, 532, 529, 0, 529, 549, 532, 0, 532, 0, 549, 0, 549, 552, 547, 549, 0, 532, 552, 547, 552, 547, 528, 530, 529, 215, 217, 217, 217, 0, 217, 547, 217, 217, 0, 217, 217, 217, 0, 0, 0, 217, 217, 0, 528, 550, 552, 529, 553, 0, 550, 568, 550, 553, 551, 553, 568, 0, 568, 551, 0, 551, 0, 571, 554, 552, 0, 550, 571, 554, 571, 554, 217, 219, 219, 219, 0, 219, 0, 219, 219, 553, 219, 219, 219, 551, 0, 555, 219, 219, 554, 550, 555, 0, 555, 0, 556, 559, 0, 0, 553, 556, 559, 556, 559, 0, 556, 558, 0, 0, 0, 557, 558, 554, 558, 555, 557, 0, 557, 219, 221, 221, 221, 559, 221, 0, 221, 221, 0, 221, 221, 221, 560, 557, 0, 221, 221, 560, 569, 560, 558, 0, 570, 569, 0, 569, 559, 570, 575, 570, 0, 0, 0, 575, 0, 575, 586, 557, 0, 558, 560, 586, 0, 586, 0, 569, 221, 223, 223, 223, 570, 223, 0, 223, 223, 0, 223, 223, 223, 572, 573, 586, 223, 223, 572, 573, 572, 573, 569, 0, 0, 574, 0, 0, 577, 0, 574, 572, 574, 577, 576, 577, 573, 587, 586, 576, 0, 576, 587, 0, 587, 0, 577, 223, 225, 225, 225, 574, 225, 0, 225, 225, 572, 225, 225, 225, 573, 576, 591, 225, 225, 0, 0, 591, 587, 591, 0, 577, 594, 596, 574, 0, 599, 594, 596, 594, 596, 599, 0, 599, 576, 601, 0, 596, 0, 0, 601, 0, 601, 591, 225, 233, 0, 233, 233, 233, 594, 601, 0, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 0, 0, 0, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 236, 0, 0, 0, 0, 0, 236, 0, 236, 236, 236, 0, 0, 0, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 0, 0, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 237, 0, 237, 237, 237, 0, 0, 0, 578, 0, 0, 0, 237, 578, 237, 578, 579, 585, 237, 0, 237, 579, 585, 579, 585, 0, 588, 237, 0, 0, 578, 588, 0, 588, 0, 0, 585, 237, 237, 237, 0, 237, 579, 237, 237, 237, 0, 237, 271, 0, 271, 271, 271, 0, 578, 0, 0, 0, 0, 588, 271, 585, 271, 0, 0, 579, 271, 0, 271, 589, 0, 0, 592, 0, 589, 271, 589, 592, 588, 592, 0, 0, 0, 590, 0, 271, 271, 271, 590, 271, 590, 271, 271, 271, 0, 271, 299, 0, 589, 593, 0, 299, 590, 299, 593, 592, 593, 0, 0, 595, 598, 0, 299, 299, 595, 598, 595, 598, 0, 0, 589, 0, 299, 0, 592, 299, 597, 590, 593, 600, 602, 597, 0, 597, 600, 602, 600, 602, 595, 598, 0, 603, 0, 600, 0, 299, 603, 299, 603, 0, 593, 604, 605, 0, 597, 0, 604, 605, 604, 605, 595, 598, 0, 606, 607, 0, 0, 604, 606, 607, 606, 607, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 605, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 606, 0, 0, 0, 0, 0, 0, 0, 605, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 606, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 612, 613, 613, 613, 613, 613, 613, 613, 613, 613, 613, 613, 614, 614, 614, 614, 614, 614, 614, 614, 614, 614, 614, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 616, 616, 616, 616, 616, 616, 616, 616, 616, 616, 616, 617, 617, 617, 617, 617, 617, 617, 618, 618, 618, 618, 618, 618, 618, 0, 0, 618, 619, 619, 619, 619, 619, 619, 619, 0, 0, 619, 620, 620, 620, 620, 620, 620, 620, 0, 0, 620, 621, 621, 621, 621, 621, 621, 621, 0, 0, 621, 622, 622, 622, 622, 622, 622, 622, 0, 0, 622, 623, 623, 623, 623, 623, 623, 623, 0, 0, 623, 624, 624, 624, 624, 624, 624, 624, 0, 0, 624, 625, 625, 625, 625, 625, 625, 625, 0, 0, 625, 626, 626, 626, 626, 626, 626, 626, 0, 0, 626, 627, 627, 627, 627, 627, 627, 627, 0, 0, 627, 628, 628, 628, 628, 628, 628, 628, 0, 0, 628, 629, 629, 629, 629, 629, 629, 629, 0, 0, 629, 630, 0, 0, 0, 630, 630, 0, 0, 630, 632, 0, 0, 0, 632, 632, 0, 0, 632, 633, 0, 0, 0, 633, 633, 0, 0, 633, 634, 634, 0, 634, 634, 634, 0, 0, 634, 635, 635, 0, 0, 635, 636, 0, 636, 636, 636, 0, 0, 636, 637, 0, 637, 637, 637, 0, 0, 637, 638, 638, 638, 638, 0, 0, 638, 639, 639, 0, 639, 639, 639, 0, 0, 639, 640, 640, 0, 640, 640, 640, 0, 0, 640, 641, 641, 0, 641, 641, 641, 0, 0, 641, 642, 642, 0, 642, 642, 642, 0, 0, 642, 643, 643, 0, 643, 643, 643, 0, 0, 643, 644, 644, 0, 644, 644, 644, 0, 0, 644, 645, 645, 0, 645, 645, 645, 0, 0, 645, 646, 646, 0, 646, 646, 646, 0, 0, 646, 647, 647, 0, 647, 647, 647, 0, 0, 647, 648, 648, 0, 648, 648, 648, 0, 0, 648, 649, 649, 0, 649, 649, 649, 0, 0, 649, 650, 650, 0, 650, 650, 650, 0, 0, 650, 651, 651, 0, 651, 651, 651, 0, 0, 651, 652, 652, 0, 652, 652, 652, 0, 0, 652, 653, 653, 0, 653, 653, 653, 0, 0, 653, 654, 654, 0, 654, 654, 654, 0, 0, 654, 655, 655, 0, 655, 655, 655, 0, 0, 655, 656, 656, 0, 656, 656, 656, 0, 0, 656, 657, 0, 657, 657, 657, 0, 0, 657, 658, 658, 658, 658, 658, 658, 658, 659, 659, 659, 659, 659, 659, 659, 0, 0, 659, 660, 660, 0, 0, 660, 661, 661, 661, 661, 661, 661, 661, 0, 0, 661, 662, 662, 0, 0, 662, 663, 663, 663, 663, 663, 663, 663, 0, 0, 663, 664, 664, 0, 0, 664, 665, 665, 665, 665, 665, 665, 665, 0, 0, 665, 666, 666, 0, 0, 666, 667, 667, 667, 667, 667, 667, 667, 0, 0, 667, 668, 668, 0, 0, 668, 669, 669, 669, 669, 669, 669, 669, 0, 0, 669, 670, 670, 0, 0, 670, 671, 671, 671, 671, 671, 671, 671, 0, 0, 671, 672, 672, 0, 0, 672, 673, 673, 673, 673, 673, 673, 673, 0, 0, 673, 674, 674, 0, 0, 674, 675, 675, 675, 675, 675, 675, 675, 0, 0, 675, 676, 676, 0, 0, 676, 677, 677, 677, 677, 677, 677, 677, 0, 0, 677, 678, 678, 0, 0, 678, 679, 679, 679, 679, 679, 679, 679, 0, 0, 679, 680, 680, 0, 0, 680, 681, 681, 681, 681, 681, 681, 681, 0, 0, 681, 682, 682, 0, 0, 682, 683, 683, 683, 0, 683, 684, 0, 0, 0, 684, 684, 0, 0, 684, 685, 0, 0, 0, 685, 685, 0, 0, 685, 686, 0, 686, 686, 686, 0, 0, 686, 687, 687, 0, 687, 687, 687, 0, 0, 687, 688, 688, 0, 0, 688, 689, 0, 689, 689, 689, 0, 0, 689, 690, 690, 690, 690, 0, 0, 690, 691, 691, 0, 691, 691, 691, 0, 0, 691, 692, 692, 0, 692, 692, 692, 0, 0, 692, 693, 693, 0, 693, 693, 693, 0, 0, 693, 694, 694, 0, 694, 694, 694, 0, 0, 694, 695, 695, 0, 695, 695, 695, 0, 0, 695, 696, 696, 0, 696, 696, 696, 0, 0, 696, 697, 697, 0, 697, 697, 697, 0, 0, 697, 698, 698, 0, 698, 698, 698, 0, 0, 698, 699, 699, 0, 699, 699, 699, 0, 0, 699, 700, 700, 0, 700, 700, 700, 0, 0, 700, 701, 701, 0, 701, 701, 701, 0, 0, 701, 702, 702, 0, 702, 702, 702, 0, 0, 702, 703, 703, 0, 703, 703, 703, 0, 0, 703, 704, 704, 0, 704, 704, 704, 0, 0, 704, 705, 705, 0, 705, 705, 705, 0, 0, 705, 706, 706, 0, 706, 706, 706, 0, 0, 706, 707, 707, 0, 707, 707, 707, 0, 0, 707, 708, 708, 0, 708, 708, 708, 0, 0, 708, 709, 0, 709, 709, 709, 0, 0, 709, 711, 711, 0, 711, 711, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608 } ; /* Table of booleans, true if rule could match eol. */ static yyconst flex_int32_t yy_rule_can_match_eol[93] = { 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, }; static yy_state_type yy_last_accepting_state; static char *yy_last_accepting_cpos; extern int spice__flex_debug; int spice__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 *spice_text; #line 1 "scan_spice.l" /* -*-c-*- */ #line 4 "scan_spice.l" /* * scan_spice.l - scanner for a Spice netlist * * Copyright (C) 2004, 2005, 2006, 2007 Stefan Jahn * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this package; see the file COPYING. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, * Boston, MA 02110-1301, USA. * * $Id: scan_spice.l,v 1.26 2007/05/31 16:12:48 ela Exp $ * */ #if HAVE_CONFIG_H # include #endif #include #include #include #include #ifdef __MINGW32__ #include #endif #ifdef HAVE_UNISTD_H #include #endif #include "check_spice.h" #include "tokens_spice.h" #if !HAVE_STRCHR # define strchr index # define strrchr rindex #endif /* fixing invalid identifiers */ static void spice_fix_identifier (char * ident) { char * p; for (p = ident; *p != '\0'; p++) if (*p == '-' || *p == '/') *p = '_'; } /* Source functions */ /* Device Models */ /* Voltage derivatives */ /* Options specials */ /* Model specific properties */ /* Plot/Print specific identifiers */ /* MOS specific device properties */ /* analog behavioural */ #line 1589 "scan_spice.cpp" #define INITIAL 0 #define COMMENT 1 #define IVREF 2 #define DEVPROP 3 #define LREF 4 #define MODREF1 5 #define MODREF2 6 #define IGNORE 7 #define FUNREF 8 #define FILEREF 9 #define VREF 10 #define STARTUP 11 #define VSINGLE 12 #define ISWITCH 13 #define VSWITCH 14 #define CONTROL 15 #define GEVALS 16 #define INLINE 17 #define SUBCKT 18 #define TLPROP 19 #define RLCPROP 20 #ifndef YY_EXTRA_TYPE #define YY_EXTRA_TYPE void * #endif static int yy_init_globals (void ); /* Macros after this point can all be overridden by user definitions in * section 1. */ #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus extern "C" int spice_wrap (void ); #else extern int spice_wrap (void ); #endif #endif #ifndef yytext_ptr static void yy_flex_strncpy (char *,yyconst char *,int ); #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen (yyconst 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 #define YY_READ_BUF_SIZE 8192 #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 (void) fwrite( spice_text, spice_leng, 1, spice_out ) #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 = '*'; \ size_t n; \ for ( n = 0; n < max_size && \ (c = getc( spice_in )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ if ( c == '\n' ) \ buf[n++] = (char) c; \ if ( c == EOF && ferror( spice_in ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ result = n; \ } \ else \ { \ errno=0; \ while ( (result = fread(buf, 1, max_size, spice_in))==0 && ferror(spice_in)) \ { \ if( errno != EINTR) \ { \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ break; \ } \ errno=0; \ clearerr(spice_in); \ } \ }\ \ #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 spice_lex (void); #define YY_DECL int spice_lex (void) #endif /* !YY_DECL */ /* Code executed at the beginning of each rule, after spice_text and spice_leng * 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 break; #endif #define YY_RULE_SETUP \ if ( spice_leng > 0 ) \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \ (spice_text[spice_leng - 1] == '\n'); \ YY_USER_ACTION /** The main scanner function which does all the work. */ YY_DECL { register yy_state_type yy_current_state; register char *yy_cp, *yy_bp; register int yy_act; #line 134 "scan_spice.l" #line 1758 "scan_spice.cpp" if ( !(yy_init) ) { (yy_init) = 1; #ifdef YY_USER_INIT YY_USER_INIT; #endif if ( ! (yy_start) ) (yy_start) = 1; /* first start state */ if ( ! spice_in ) spice_in = stdin; if ( ! spice_out ) spice_out = stdout; if ( ! YY_CURRENT_BUFFER ) { spice_ensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = spice__create_buffer(spice_in,YY_BUF_SIZE ); } spice__load_buffer_state( ); } while ( 1 ) /* loops until end-of-file is reached */ { yy_cp = (yy_c_buf_p); /* Support of spice_text. */ *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_current_state += YY_AT_BOL(); yy_match: do { register 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 >= 609 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; ++yy_cp; } while ( yy_base[yy_current_state] != 3643 ); 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; if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] ) { int yyl; for ( yyl = 0; yyl < spice_leng; ++yyl ) if ( spice_text[yyl] == '\n' ) spice_lineno++; ; } 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: /* rule 1 can match eol */ YY_RULE_SETUP #line 136 "scan_spice.l" { /* detect initial title lines */ spice_lval.str = strdup (spice_text); BEGIN(STARTUP); return TitleLine; } YY_BREAK case 2: YY_RULE_SETUP #line 142 "scan_spice.l" { /* Spice3 ignores any lines starting spaces */ BEGIN(COMMENT); } YY_BREAK case 3: YY_RULE_SETUP #line 146 "scan_spice.l" { /* ignored region begins here */ BEGIN(COMMENT); } YY_BREAK case 4: YY_RULE_SETUP #line 152 "scan_spice.l" { /* ignored inline region begins here (3f5, 2g6 and hspice) */ BEGIN(INLINE); } YY_BREAK case 5: YY_RULE_SETUP #line 157 "scan_spice.l" { /* control (interactive) region start */ BEGIN(CONTROL); } YY_BREAK case 6: YY_RULE_SETUP #line 162 "scan_spice.l" { /* skip any character in here */ } YY_BREAK case 7: /* rule 7 can match eol */ YY_RULE_SETUP #line 163 "scan_spice.l" { /* skip any character in here */ } YY_BREAK case 8: YY_RULE_SETUP #line 165 "scan_spice.l" { BEGIN(STARTUP); } YY_BREAK case 9: YY_RULE_SETUP #line 169 "scan_spice.l" { /* skip EOF character */ } YY_BREAK case 10: YY_RULE_SETUP #line 173 "scan_spice.l" { /* subcircuit definition start */ spice_lval.ident = strdup (&spice_text[1]); BEGIN(SUBCKT); return SUBCKT_Action; } YY_BREAK case 11: YY_RULE_SETUP #line 180 "scan_spice.l" { /* subcircuit definition end */ BEGIN(SUBCKT); return ENDS_Action; } YY_BREAK case 12: YY_RULE_SETUP #line 185 "scan_spice.l" { /* R, L and C instances */ spice_lval.ident = strdup (spice_text); BEGIN(RLCPROP); return RLC_Device; } YY_BREAK case 13: YY_RULE_SETUP #line 191 "scan_spice.l" { /* Mutual inductor instances */ spice_lval.ident = strdup (spice_text); BEGIN(LREF); return K_Device; } YY_BREAK case 14: YY_RULE_SETUP #line 197 "scan_spice.l" { /* voltage and current source instances */ spice_lval.ident = strdup (spice_text); BEGIN(FUNREF); return IV_Source; } YY_BREAK case 15: YY_RULE_SETUP #line 204 "scan_spice.l" { /* voltage controlled source instances */ spice_lval.ident = strdup (spice_text); BEGIN(GEVALS); return GE_Source; } YY_BREAK case 16: YY_RULE_SETUP #line 211 "scan_spice.l" { /* current controlled source instances */ spice_lval.ident = strdup (spice_text); BEGIN(IVREF); return FH_Source; } YY_BREAK case 17: YY_RULE_SETUP #line 218 "scan_spice.l" { /* non-linear dependent source instances */ spice_lval.ident = strdup (spice_text); BEGIN(IGNORE); return B_Source; } YY_BREAK case 18: YY_RULE_SETUP #line 225 "scan_spice.l" { /* subcircuit instances */ spice_lval.ident = strdup (spice_text); BEGIN(STARTUP); return X_Device; } YY_BREAK case 19: YY_RULE_SETUP #line 231 "scan_spice.l" { /* lossy transline */ spice_lval.ident = strdup (spice_text); BEGIN(STARTUP); return O_Device; } YY_BREAK case 20: YY_RULE_SETUP #line 237 "scan_spice.l" { /* lossless transline */ spice_lval.ident = strdup (spice_text); BEGIN(TLPROP); return T_Device; } YY_BREAK case 21: YY_RULE_SETUP #line 243 "scan_spice.l" { /* distributed lossy transline */ spice_lval.ident = strdup (spice_text); BEGIN(STARTUP); return U_Device; } YY_BREAK case 22: YY_RULE_SETUP #line 249 "scan_spice.l" { /* voltage controlled switch */ spice_lval.ident = strdup (spice_text); BEGIN(VSWITCH); return S_Device; } YY_BREAK case 23: YY_RULE_SETUP #line 255 "scan_spice.l" { /* current controlled switch */ spice_lval.ident = strdup (spice_text); BEGIN(ISWITCH); return W_Device; } YY_BREAK case 24: YY_RULE_SETUP #line 261 "scan_spice.l" { /* device Model definitions */ spice_lval.ident = strdup (&spice_text[1]); BEGIN(MODREF1); return MODEL_Action; } YY_BREAK case 25: YY_RULE_SETUP #line 267 "scan_spice.l" { /* transient analysis */ spice_lval.ident = strdup (&spice_text[1]); BEGIN(STARTUP); return TRAN_Action; } YY_BREAK case 26: YY_RULE_SETUP #line 273 "scan_spice.l" { /* plotting action */ spice_lval.ident = strdup (&spice_text[1]); BEGIN(IVREF); return PLOT_Action; } YY_BREAK case 27: YY_RULE_SETUP #line 279 "scan_spice.l" { /* AC analysis */ spice_lval.ident = strdup (&spice_text[1]); BEGIN(FUNREF); return AC_Action; } YY_BREAK case 28: YY_RULE_SETUP #line 285 "scan_spice.l" { /* distortion analysis */ spice_lval.ident = strdup (&spice_text[1]); BEGIN(FUNREF); return DISTO_Action; } YY_BREAK case 29: YY_RULE_SETUP #line 291 "scan_spice.l" { /* nodeset functionality */ spice_lval.ident = strdup (&spice_text[1]); BEGIN(VSINGLE); return NODESET_Action; } YY_BREAK case 30: YY_RULE_SETUP #line 297 "scan_spice.l" { /* nodeset functionality */ spice_lval.ident = strdup (&spice_text[1]); BEGIN(VSINGLE); return NODESET_Action; } YY_BREAK case 31: YY_RULE_SETUP #line 303 "scan_spice.l" { /* DC analysis */ spice_lval.ident = strdup (&spice_text[1]); BEGIN(IVREF); return DC_Action; } YY_BREAK case 32: YY_RULE_SETUP #line 309 "scan_spice.l" { /* operating point analysis */ spice_lval.ident = strdup (&spice_text[1]); BEGIN(STARTUP); return OP_Action; } YY_BREAK case 33: YY_RULE_SETUP #line 315 "scan_spice.l" { /* temperature analysis (Spice 2g6) */ spice_lval.ident = strdup (&spice_text[1]); BEGIN(STARTUP); return TEMP_Action; } YY_BREAK case 34: YY_RULE_SETUP #line 321 "scan_spice.l" { /* printing action */ spice_lval.ident = strdup (&spice_text[1]); BEGIN(VREF); return PRINT_Action; } YY_BREAK case 35: YY_RULE_SETUP #line 327 "scan_spice.l" { /* general options */ spice_lval.ident = strdup (&spice_text[1]); BEGIN(STARTUP); return OPTIONS_Action; } YY_BREAK case 36: YY_RULE_SETUP #line 333 "scan_spice.l" { /* general options (abbrev.) */ spice_lval.ident = strdup (&spice_text[1]); BEGIN(STARTUP); return OPTIONS_Action; } YY_BREAK case 37: YY_RULE_SETUP #line 339 "scan_spice.l" { /* general options (abbrev.) */ spice_lval.ident = strdup (&spice_text[1]); BEGIN(STARTUP); return OPTIONS_Action; } YY_BREAK case 38: YY_RULE_SETUP #line 345 "scan_spice.l" { /* special width of ??? */ spice_lval.ident = strdup (&spice_text[1]); BEGIN(STARTUP); return WIDTH_Action; } YY_BREAK case 39: YY_RULE_SETUP #line 351 "scan_spice.l" { /* noise analysis */ spice_lval.ident = strdup (&spice_text[1]); BEGIN(IVREF); return NOISE_Action; } YY_BREAK case 40: YY_RULE_SETUP #line 357 "scan_spice.l" { /* file include */ spice_lval.ident = strdup (&spice_text[1]); BEGIN(FILEREF); return INCLUDE_Action; } YY_BREAK case 41: YY_RULE_SETUP #line 363 "scan_spice.l" { /* pole-zero analysis */ spice_lval.ident = strdup (&spice_text[1]); BEGIN(STARTUP); return PZ_Action; } YY_BREAK case 42: YY_RULE_SETUP #line 369 "scan_spice.l" { /* save line */ spice_lval.ident = strdup (&spice_text[1]); BEGIN(IGNORE); return SAVE_Action; } YY_BREAK case 43: YY_RULE_SETUP #line 375 "scan_spice.l" { /* sensitivity analysis */ spice_lval.ident = strdup (&spice_text[1]); BEGIN(IGNORE); return SENS_Action; } YY_BREAK case 44: YY_RULE_SETUP #line 381 "scan_spice.l" { /* transfer function analysis */ spice_lval.ident = strdup (&spice_text[1]); BEGIN(IGNORE); return TF_Action; } YY_BREAK case 45: YY_RULE_SETUP #line 387 "scan_spice.l" { /* fourier analysis */ spice_lval.ident = strdup (&spice_text[1]); BEGIN(IGNORE); return FOUR_Action; } YY_BREAK case 46: YY_RULE_SETUP #line 393 "scan_spice.l" { /* pole-zero specials */ spice_lval.ident = strdup (spice_text); return CurVol; } YY_BREAK case 47: YY_RULE_SETUP #line 398 "scan_spice.l" { /* other pole-zero specials */ spice_lval.ident = strdup (spice_text); return PoleZero; } YY_BREAK case 48: YY_RULE_SETUP #line 403 "scan_spice.l" { /* a file reference */ spice_lval.ident = strdup (spice_text); return File; } YY_BREAK case 49: YY_RULE_SETUP #line 408 "scan_spice.l" { /* a print special */ spice_lval.ident = strdup (spice_text); return ALL_Special; } YY_BREAK case 50: YY_RULE_SETUP #line 413 "scan_spice.l" { /* a TC special */ spice_lval.ident = strdup (spice_text); return TC_Special; } YY_BREAK case 51: YY_RULE_SETUP #line 418 "scan_spice.l" { /* a device special */ spice_lval.ident = strdup (spice_text); return OFF_Special; } YY_BREAK case 52: YY_RULE_SETUP #line 423 "scan_spice.l" { /* a device special */ spice_lval.ident = strdup (spice_text); return ON_Special; } YY_BREAK case 53: YY_RULE_SETUP #line 428 "scan_spice.l" { /* another device special */ spice_lval.ident = strdup (spice_text); return IC_Special; } YY_BREAK case 54: YY_RULE_SETUP #line 433 "scan_spice.l" { /* another device special */ spice_lval.ident = strdup (spice_text); return TEMP_Special; } YY_BREAK case 55: YY_RULE_SETUP #line 438 "scan_spice.l" { /* another device special */ spice_lval.ident = strdup (spice_text); return MOS_Special; } YY_BREAK case 56: YY_RULE_SETUP #line 443 "scan_spice.l" { /* voltage derivatives (plotting and printing) */ spice_lval.ident = strdup (spice_text); return VoltFunc; } YY_BREAK case 57: YY_RULE_SETUP #line 448 "scan_spice.l" { /* voltage derivatives (plotting and printing) */ spice_lval.ident = strdup (spice_text); return VoltFunc; } YY_BREAK case 58: YY_RULE_SETUP #line 453 "scan_spice.l" { /* option specials */ spice_lval.ident = strdup (spice_text); return Options; } YY_BREAK case 59: YY_RULE_SETUP #line 458 "scan_spice.l" { /* Model specials */ spice_lval.ident = strdup (spice_text); return ModelProps; } YY_BREAK case 60: YY_RULE_SETUP #line 463 "scan_spice.l" { /* voltage source references */ spice_lval.ident = strdup (spice_text); return V_Source; } YY_BREAK case 61: YY_RULE_SETUP #line 468 "scan_spice.l" { /* current source references */ spice_lval.ident = strdup (spice_text); return I_Source; } YY_BREAK case 62: YY_RULE_SETUP #line 473 "scan_spice.l" { /* I function (plotting and printing) */ spice_lval.ident = strdup (spice_text); return CurrFunc; } YY_BREAK case 63: YY_RULE_SETUP #line 478 "scan_spice.l" { /* print/plot specific identifiers */ spice_lval.ident = strdup (spice_text); return SIM_Type; } YY_BREAK case 64: YY_RULE_SETUP #line 483 "scan_spice.l" { /* inductor references */ spice_lval.ident = strdup (spice_text); return L_Device; } YY_BREAK case 65: YY_RULE_SETUP #line 488 "scan_spice.l" { /* diode instances */ spice_lval.ident = strdup (spice_text); BEGIN(DEVPROP); return Diode_Device; } YY_BREAK case 66: YY_RULE_SETUP #line 494 "scan_spice.l" { /* BJT instances */ spice_lval.ident = strdup (spice_text); BEGIN(DEVPROP); return Bipolar_Device; } YY_BREAK case 67: YY_RULE_SETUP #line 500 "scan_spice.l" { /* JFET instances */ spice_lval.ident = strdup (spice_text); BEGIN(DEVPROP); return JFET_Device; } YY_BREAK case 68: YY_RULE_SETUP #line 506 "scan_spice.l" { /* MOSFET instances */ spice_lval.ident = strdup (spice_text); BEGIN(DEVPROP); return MOSFET_Device; } YY_BREAK case 69: YY_RULE_SETUP #line 512 "scan_spice.l" { /* MESFET instances */ spice_lval.ident = strdup (spice_text); BEGIN(DEVPROP); return MESFET_Device; } YY_BREAK case 70: /* rule 70 can match eol */ YY_RULE_SETUP #line 518 "scan_spice.l" { /* identify end of netlist */ return End; } YY_BREAK case 71: YY_RULE_SETUP #line 523 "scan_spice.l" { /* identify node (containing digits) */ spice_lval.ident = strdup (spice_text); return Digits; } YY_BREAK case 72: YY_RULE_SETUP #line 530 "scan_spice.l" { /* identify float (any kind) */ spice_lval.ident = strdup (spice_text); return Floats; } YY_BREAK case 73: YY_RULE_SETUP #line 536 "scan_spice.l" { /* identify analog behaviour */ spice_lval.ident = strdup (spice_text); return GE_Type; } YY_BREAK case 74: YY_RULE_SETUP #line 542 "scan_spice.l" { /* identify analog behaviour */ spice_lval.ident = strdup (spice_text); BEGIN(IGNORE); return GE_Type; } YY_BREAK case 75: YY_RULE_SETUP #line 549 "scan_spice.l" { /* function specials (e.g. in sources) */ spice_lval.ident = strdup (spice_text); return Function; } YY_BREAK case 76: YY_RULE_SETUP #line 554 "scan_spice.l" { /* Model specification specials */ spice_lval.ident = strdup (spice_text); BEGIN(STARTUP); return MODEL_Spec; } YY_BREAK case 77: YY_RULE_SETUP #line 561 "scan_spice.l" { /* arbitrary identifier */ spice_lval.ident = strdup (spice_text); spice_fix_identifier (spice_lval.ident); return Identifier; } YY_BREAK case 78: YY_RULE_SETUP #line 567 "scan_spice.l" { /* arbitrary identifier */ spice_lval.ident = strdup (spice_text); spice_fix_identifier (spice_lval.ident); BEGIN(STARTUP); return Identifier; } YY_BREAK case 79: YY_RULE_SETUP #line 574 "scan_spice.l" { /* arbitrary identifier */ spice_lval.ident = strdup (spice_text); spice_fix_identifier (spice_lval.ident); BEGIN(MODREF2); return Identifier; } YY_BREAK case 80: YY_RULE_SETUP #line 581 "scan_spice.l" { /* I function (plotting and printing) */ spice_lval.ident = strdup (spice_text); return BranchFunc; } YY_BREAK case 81: YY_RULE_SETUP #line 587 "scan_spice.l" { /* operating point (plotting and printing) */ spice_lval.ident = strdup (spice_text); return OpFunc; } YY_BREAK case 82: YY_RULE_SETUP #line 594 "scan_spice.l" { /* identify node */ spice_lval.ident = strdup (spice_text); return Nodes; } YY_BREAK case 83: /* rule 83 can match eol */ YY_RULE_SETUP #line 601 "scan_spice.l" { /* detect end of line */ BEGIN(STARTUP); return Eol; } YY_BREAK case 84: /* rule 84 can match eol */ YY_RULE_SETUP #line 607 "scan_spice.l" { /* skip spaces, '=', '(', ')', ',' and the leading '+' */ } YY_BREAK case 85: /* rule 85 can match eol */ YY_RULE_SETUP #line 611 "scan_spice.l" { BEGIN(STARTUP); /* skipping ends here */ } YY_BREAK case 86: YY_RULE_SETUP #line 612 "scan_spice.l" { /* skip any character in here */ } YY_BREAK case 87: YY_RULE_SETUP #line 613 "scan_spice.l" { /* skip any character in here */ } YY_BREAK case 88: /* rule 88 can match eol */ YY_RULE_SETUP #line 615 "scan_spice.l" { BEGIN(STARTUP); return Eol; /* skipping ends here */ } YY_BREAK case 89: YY_RULE_SETUP #line 616 "scan_spice.l" { /* skip any character in here */ } YY_BREAK case 90: YY_RULE_SETUP #line 617 "scan_spice.l" { /* skip any character in here */ } YY_BREAK case 91: YY_RULE_SETUP #line 619 "scan_spice.l" { /* any other character is invalid */ fprintf (stderr, "line %d: syntax error, unrecognized character: `%s'\n", spice_lineno, spice_text); return InvalidCharacter; } YY_BREAK case 92: YY_RULE_SETUP #line 626 "scan_spice.l" ECHO; YY_BREAK #line 2625 "scan_spice.cpp" case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(COMMENT): case YY_STATE_EOF(IVREF): case YY_STATE_EOF(DEVPROP): case YY_STATE_EOF(LREF): case YY_STATE_EOF(MODREF1): case YY_STATE_EOF(MODREF2): case YY_STATE_EOF(IGNORE): case YY_STATE_EOF(FUNREF): case YY_STATE_EOF(FILEREF): case YY_STATE_EOF(VREF): case YY_STATE_EOF(STARTUP): case YY_STATE_EOF(VSINGLE): case YY_STATE_EOF(ISWITCH): case YY_STATE_EOF(VSWITCH): case YY_STATE_EOF(CONTROL): case YY_STATE_EOF(GEVALS): case YY_STATE_EOF(INLINE): case YY_STATE_EOF(SUBCKT): case YY_STATE_EOF(TLPROP): case YY_STATE_EOF(RLCPROP): yyterminate(); 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 spice_in at a new source and called * spice_lex(). 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 = spice_in; 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 ( spice_wrap( ) ) { /* Note: because we've taken care in * yy_get_next_buffer() to have set up * spice_text, 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 spice_lex */ /* 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) { register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; register char *source = (yytext_ptr); register 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; 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. */ spice_realloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); } else /* Can't grow it, we don't own it. */ b->yy_ch_buf = 0; 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), (size_t) 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; spice_restart(spice_in ); } 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; (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) { register yy_state_type yy_current_state; register char *yy_cp; yy_current_state = (yy_start); yy_current_state += YY_AT_BOL(); for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) { register 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 >= 609 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) 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 ) { register int yy_is_jam; register char *yy_cp = (yy_c_buf_p); register 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 >= 609 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; yy_is_jam = (yy_current_state == 608); return yy_is_jam ? 0 : yy_current_state; } #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 = (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. */ spice_restart(spice_in ); /*FALLTHROUGH*/ case EOB_ACT_END_OF_FILE: { if ( spice_wrap( ) ) return EOF; 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 spice_text */ (yy_hold_char) = *++(yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n'); if ( YY_CURRENT_BUFFER_LVALUE->yy_at_bol ) spice_lineno++; ; 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 spice_restart (FILE * input_file ) { if ( ! YY_CURRENT_BUFFER ){ spice_ensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = spice__create_buffer(spice_in,YY_BUF_SIZE ); } spice__init_buffer(YY_CURRENT_BUFFER,input_file ); spice__load_buffer_state( ); } /** Switch to a different input buffer. * @param new_buffer The new input buffer. * */ void spice__switch_to_buffer (YY_BUFFER_STATE new_buffer ) { /* TODO. We should be able to replace this entire function body * with * spice_pop_buffer_state(); * spice_push_buffer_state(new_buffer); */ spice_ensure_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; spice__load_buffer_state( ); /* We don't actually know whether we did this switch during * EOF (spice_wrap()) processing, but the only time this flag * is looked at is after spice_wrap() is called, so it's safe * to go ahead and always set it. */ (yy_did_buffer_switch_on_eof) = 1; } static void spice__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; spice_in = 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 spice__create_buffer (FILE * file, int size ) { YY_BUFFER_STATE b; b = (YY_BUFFER_STATE) spice_alloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in spice__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 *) spice_alloc(b->yy_buf_size + 2 ); if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in spice__create_buffer()" ); b->yy_is_our_buffer = 1; spice__init_buffer(b,file ); return b; } /** Destroy the buffer. * @param b a buffer created with spice__create_buffer() * */ void spice__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 ) spice_free((void *) b->yy_ch_buf ); spice_free((void *) b ); } #ifndef __cplusplus extern int isatty (int ); #endif /* __cplusplus */ /* Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, * such as during a spice_restart() or at EOF. */ static void spice__init_buffer (YY_BUFFER_STATE b, FILE * file ) { int oerrno = errno; spice__flush_buffer(b ); b->yy_input_file = file; b->yy_fill_buffer = 1; /* If b is the current buffer, then spice__init_buffer was _probably_ * called from spice_restart() 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 spice__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 ) spice__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 spice_push_buffer_state (YY_BUFFER_STATE new_buffer ) { if (new_buffer == NULL) return; spice_ensure_buffer_stack(); /* This block is copied from spice__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 spice__switch_to_buffer. */ spice__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 spice_pop_buffer_state (void) { if (!YY_CURRENT_BUFFER) return; spice__delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; if ((yy_buffer_stack_top) > 0) --(yy_buffer_stack_top); if (YY_CURRENT_BUFFER) { spice__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 spice_ensure_buffer_stack (void) { int num_to_alloc; if (!(yy_buffer_stack)) { /* First allocation is just for 2 elements, since we don't know if this * scanner will even need a stack. We use 2 instead of 1 to avoid an * immediate realloc on the next call. */ num_to_alloc = 1; (yy_buffer_stack) = (struct yy_buffer_state**)spice_alloc (num_to_alloc * sizeof(struct yy_buffer_state*) ); memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); (yy_buffer_stack_max) = num_to_alloc; (yy_buffer_stack_top) = 0; return; } if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ /* Increase the buffer to prepare for a possible push. */ int grow_size = 8 /* arbitrary grow size */; num_to_alloc = (yy_buffer_stack_max) + grow_size; (yy_buffer_stack) = (struct yy_buffer_state**)spice_realloc ((yy_buffer_stack), num_to_alloc * sizeof(struct yy_buffer_state*) ); /* zero only the new slots.*/ memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); (yy_buffer_stack_max) = num_to_alloc; } } /** 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 spice__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 0; b = (YY_BUFFER_STATE) spice_alloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in spice__scan_buffer()" ); b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ b->yy_buf_pos = b->yy_ch_buf = base; b->yy_is_our_buffer = 0; b->yy_input_file = 0; b->yy_n_chars = b->yy_buf_size; b->yy_is_interactive = 0; b->yy_at_bol = 1; b->yy_fill_buffer = 0; b->yy_buffer_status = YY_BUFFER_NEW; spice__switch_to_buffer(b ); return b; } /** Setup the input buffer state to scan a string. The next call to spice_lex() 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 * spice__scan_bytes() instead. */ YY_BUFFER_STATE spice__scan_string (yyconst char * yystr ) { return spice__scan_bytes(yystr,strlen(yystr) ); } /** Setup the input buffer state to scan the given bytes. The next call to spice_lex() will * scan from a @e copy of @a bytes. * @param bytes the byte buffer to scan * @param len the number of bytes in the buffer pointed to by @a bytes. * * @return the newly allocated buffer state object. */ YY_BUFFER_STATE spice__scan_bytes (yyconst 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 = _yybytes_len + 2; buf = (char *) spice_alloc(n ); if ( ! buf ) YY_FATAL_ERROR( "out of dynamic memory in spice__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 = spice__scan_buffer(buf,n ); if ( ! b ) YY_FATAL_ERROR( "bad buffer in spice__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 yy_fatal_error (yyconst char* msg ) { (void) fprintf( stderr, "%s\n", msg ); exit( YY_EXIT_FAILURE ); } /* Redefine yyless() so it works in section 3 code. */ #undef yyless #define yyless(n) \ do \ { \ /* Undo effects of setting up spice_text. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ spice_text[spice_leng] = (yy_hold_char); \ (yy_c_buf_p) = spice_text + yyless_macro_arg; \ (yy_hold_char) = *(yy_c_buf_p); \ *(yy_c_buf_p) = '\0'; \ spice_leng = yyless_macro_arg; \ } \ while ( 0 ) /* Accessor methods (get/set functions) to struct members. */ /** Get the current line number. * */ int spice_get_lineno (void) { return spice_lineno; } /** Get the input stream. * */ FILE *spice_get_in (void) { return spice_in; } /** Get the output stream. * */ FILE *spice_get_out (void) { return spice_out; } /** Get the length of the current token. * */ int spice_get_leng (void) { return spice_leng; } /** Get the current token. * */ char *spice_get_text (void) { return spice_text; } /** Set the current line number. * @param line_number * */ void spice_set_lineno (int line_number ) { spice_lineno = line_number; } /** Set the input stream. This does not discard the current * input buffer. * @param in_str A readable stream. * * @see spice__switch_to_buffer */ void spice_set_in (FILE * in_str ) { spice_in = in_str ; } void spice_set_out (FILE * out_str ) { spice_out = out_str ; } int spice_get_debug (void) { return spice__flex_debug; } void spice_set_debug (int bdebug ) { spice__flex_debug = bdebug ; } static int yy_init_globals (void) { /* Initialization is the same as for the non-reentrant scanner. * This function is called from spice_lex_destroy(), so don't allocate here. */ /* We do not touch spice_lineno unless the option is enabled. */ spice_lineno = 1; (yy_buffer_stack) = 0; (yy_buffer_stack_top) = 0; (yy_buffer_stack_max) = 0; (yy_c_buf_p) = (char *) 0; (yy_init) = 0; (yy_start) = 0; /* Defined in main.c */ #ifdef YY_STDINIT spice_in = stdin; spice_out = stdout; #else spice_in = (FILE *) 0; spice_out = (FILE *) 0; #endif /* For future reference: Set errno on error, since we are called by * spice_lex_init() */ return 0; } /* spice_lex_destroy is for both reentrant and non-reentrant scanners. */ int spice_lex_destroy (void) { /* Pop the buffer stack, destroying each element. */ while(YY_CURRENT_BUFFER){ spice__delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; spice_pop_buffer_state(); } /* Destroy the stack itself. */ spice_free((yy_buffer_stack) ); (yy_buffer_stack) = NULL; /* Reset the globals. This is important in a non-reentrant scanner so the next time * spice_lex() is called, initialization will occur. */ yy_init_globals( ); return 0; } /* * Internal utility routines. */ #ifndef yytext_ptr static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) { register int i; for ( i = 0; i < n; ++i ) s1[i] = s2[i]; } #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen (yyconst char * s ) { register int n; for ( n = 0; s[n]; ++n ) ; return n; } #endif void *spice_alloc (yy_size_t size ) { return (void *) malloc( size ); } void *spice_realloc (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. */ return (void *) realloc( (char *) ptr, size ); } void spice_free (void * ptr ) { free( (char *) ptr ); /* see spice_realloc() for (char *) cast */ } #define YYTABLES_NAME "yytables" #line 626 "scan_spice.l"