#line 2 "levcomp.lex.cc" #line 4 "levcomp.lex.cc" #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 yyrestart(yyin ) #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 yyleng; extern FILE *yyin, *yyout; #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 yylex. * One obvious solution it to make yy_act a global. I tried that, and saw * a 5% performance hit in a non-yylineno 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 < yyleng; ++yyl )\ if ( yytext[yyl] == '\n' )\ --yylineno;\ }while(0) /* Return all but the first "n" matched characters back to the input stream. */ #define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ *yy_cp = (yy_hold_char); \ YY_RESTORE_YY_MORE_OFFSET \ (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ YY_DO_BEFORE_ACTION; /* set up yytext again */ \ } \ while ( 0 ) #define unput(c) yyunput( c, (yytext_ptr) ) /* 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 yyrestart()), so that the user can continue scanning by * just pointing yyin at a new input file. */ #define YY_BUFFER_EOF_PENDING 2 }; #endif /* !YY_STRUCT_YY_BUFFER_STATE */ /* Stack of input buffers. */ static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ static YY_BUFFER_STATE * yy_buffer_stack = 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 yytext is formed. */ static char yy_hold_char; static int yy_n_chars; /* number of characters read into yy_ch_buf */ int yyleng; /* Points to current character in buffer. */ static char *yy_c_buf_p = (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 yywrap()'s to do buffer switches * instead of setting up a fresh yyin. A bit of a hack ... */ static int yy_did_buffer_switch_on_eof; void yyrestart (FILE *input_file ); void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ); YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ); void yy_delete_buffer (YY_BUFFER_STATE b ); void yy_flush_buffer (YY_BUFFER_STATE b ); void yypush_buffer_state (YY_BUFFER_STATE new_buffer ); void yypop_buffer_state (void ); static void yyensure_buffer_stack (void ); static void yy_load_buffer_state (void ); static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ); #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ) YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ); YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ); YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len ); void *yyalloc (yy_size_t ); void *yyrealloc (void *,yy_size_t ); void yyfree (void * ); #define yy_new_buffer yy_create_buffer #define yy_set_interactive(is_interactive) \ { \ if ( ! YY_CURRENT_BUFFER ){ \ yyensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ yy_create_buffer(yyin,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ } #define yy_set_bol(at_bol) \ { \ if ( ! YY_CURRENT_BUFFER ){\ yyensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ yy_create_buffer(yyin,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ } #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) /* Begin user sect3 */ typedef unsigned char YY_CHAR; FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; typedef int yy_state_type; extern int yylineno; int yylineno = 1; extern char *yytext; #define yytext_ptr yytext static yy_state_type yy_get_previous_state (void ); static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); static int yy_get_next_buffer (void ); static void yy_fatal_error (yyconst char msg[] ); /* Done after the current pattern has been matched and before the * corresponding action - sets up yytext. */ #define YY_DO_BEFORE_ACTION \ (yytext_ptr) = yy_bp; \ yyleng = (size_t) (yy_cp - yy_bp); \ (yy_hold_char) = *yy_cp; \ *yy_cp = '\0'; \ (yy_c_buf_p) = yy_cp; #define YY_NUM_RULES 58 #define YY_END_OF_BUFFER 59 /* 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[747] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 57, 55, 56, 57, 53, 54, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 55, 27, 29, 57, 57, 57, 57, 57, 57, 58, 6, 58, 58, 4, 2, 3, 58, 2, 2, 2, 2, 9, 10, 58, 9, 9, 58, 12, 58, 57, 26, 57, 53, 54, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 27, 29, 57, 57, 57, 57, 57, 57, 57, 24, 21, 24, 23, 54, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 24, 27, 29, 57, 57, 57, 57, 57, 57, 14, 15, 57, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 13, 13, 13, 13, 13, 17, 19, 20, 58, 18, 55, 56, 54, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 55, 27, 29, 0, 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 0, 32, 6, 5, 0, 0, 2, 3, 2, 0, 2, 2, 2, 2, 9, 9, 10, 9, 9, 9, 0, 11, 12, 25, 0, 26, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 27, 25, 25, 25, 25, 25, 25, 25, 25, 0, 24, 21, 24, 21, 54, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 27, 0, 0, 0, 0, 0, 0, 0, 32, 14, 15, 0, 15, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 13, 13, 13, 13, 13, 13, 13, 16, 0, 19, 20, 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, 2, 9, 9, 9, 7, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 0, 0, 0, 2, 9, 8, 9, 7, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 0, 0, 25, 25, 25, 25, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 0, 0, 22, 22, 22, 22, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 0, 0, 0, 47, 0, 0, 0, 0, 46, 35, 0, 0, 0, 0, 0, 43, 0, 0, 31, 0, 0, 0, 0, 2, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 0, 25, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 0, 22, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 0, 37, 42, 50, 51, 52, 0, 0, 0, 39, 0, 44, 0, 0, 0, 0, 34, 1, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 13, 13, 13, 13, 13, 13, 13, 13, 13, 40, 48, 45, 38, 0, 41, 0, 0, 0, 1, 25, 25, 25, 25, 25, 25, 25, 25, 25, 22, 22, 22, 22, 22, 22, 22, 22, 22, 13, 13, 13, 13, 49, 0, 0, 0, 0, 25, 25, 0, 25, 25, 22, 22, 0, 22, 22, 13, 13, 0, 30, 0, 0, 25, 25, 0, 25, 22, 22, 0, 22, 13, 0, 33, 25, 25, 22, 22, 13, 0, 25, 22, 13, 0, 25, 22, 13, 0, 25, 22, 13, 36, 25, 22, 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, 1, 1, 1, 1, 1, 1, 5, 1, 1, 6, 1, 1, 1, 1, 1, 1, 1, 1, 7, 8, 1, 1, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 1, 1, 1, 1, 1, 1, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 20, 27, 28, 29, 30, 20, 31, 20, 20, 20, 1, 1, 1, 1, 20, 1, 32, 20, 20, 33, 34, 35, 20, 36, 37, 20, 20, 38, 20, 20, 39, 40, 20, 41, 42, 43, 44, 45, 20, 20, 20, 20, 46, 1, 47, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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[48] = { 0, 1, 2, 3, 4, 1, 1, 5, 6, 6, 1, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 1, 1 } ; static yyconst flex_int16_t yy_base[766] = { 0, 0, 46, 54, 59, 51, 63, 46, 67, 110, 156, 202, 248, 294, 340, 73, 92, 1893, 1894, 77, 1894, 1889, 1894, 1882, 1872, 1874, 1866, 1858, 84, 62, 57, 1859, 1863, 72, 1873, 1868, 1848, 385, 0, 1894, 148, 1837, 1839, 30, 49, 1833, 1894, 1894, 1875, 160, 1894, 0, 1894, 1874, 165, 0, 1852, 145, 1828, 1894, 1871, 62, 1826, 1869, 1894, 1868, 170, 1894, 1867, 176, 180, 255, 259, 263, 347, 351, 364, 360, 356, 392, 397, 186, 274, 401, 278, 405, 415, 432, 437, 441, 445, 449, 0, 453, 1894, 457, 1894, 1860, 1850, 1852, 1844, 1836, 176, 175, 78, 1837, 1841, 153, 1851, 1846, 1826, 463, 248, 0, 245, 1815, 1817, 239, 243, 1811, 467, 1894, 1853, 0, 1846, 1836, 1838, 1830, 1822, 268, 332, 165, 1823, 1827, 329, 1837, 1832, 1812, 482, 368, 1801, 1803, 331, 366, 264, 486, 1894, 1840, 1894, 379, 1894, 1833, 1830, 1814, 1825, 1817, 1816, 1801, 1801, 1798, 1800, 1795, 1784, 1794, 1801, 1776, 1788, 1778, 1770, 1753, 0, 0, 1894, 1733, 1735, 379, 1729, 0, 395, 1732, 1693, 1715, 406, 1687, 1681, 1894, 1894, 1894, 1720, 470, 0, 1894, 0, 1718, 477, 1706, 1695, 362, 1669, 1654, 1894, 386, 1653, 491, 1683, 1894, 1894, 495, 499, 1894, 503, 509, 513, 517, 521, 525, 529, 539, 543, 547, 551, 555, 561, 571, 579, 584, 588, 593, 597, 602, 606, 611, 615, 619, 623, 631, 637, 641, 646, 504, 653, 1894, 657, 1894, 661, 567, 662, 589, 663, 667, 647, 669, 675, 530, 681, 685, 687, 694, 693, 695, 707, 706, 708, 0, 712, 724, 716, 725, 726, 730, 731, 736, 624, 742, 1894, 1675, 1894, 0, 1661, 1657, 1638, 1643, 1625, 1620, 1604, 1603, 1590, 1589, 1576, 1552, 1545, 1548, 1528, 1540, 1533, 1523, 1503, 0, 535, 1502, 1496, 1515, 421, 1477, 1454, 737, 747, 752, 1894, 1482, 1452, 1443, 1446, 1436, 1444, 1435, 1422, 1420, 1412, 1421, 1420, 1413, 1400, 1391, 1362, 1352, 1355, 1335, 758, 760, 1322, 1324, 1312, 1299, 1307, 765, 771, 775, 1894, 779, 784, 788, 792, 796, 806, 812, 821, 825, 829, 833, 844, 850, 856, 860, 864, 869, 873, 877, 885, 889, 893, 897, 902, 780, 838, 898, 906, 907, 797, 865, 908, 912, 916, 923, 924, 928, 940, 941, 942, 947, 948, 954, 955, 959, 965, 960, 967, 972, 977, 976, 978, 984, 1302, 1293, 1301, 1282, 1293, 1283, 1269, 1271, 1260, 1269, 1268, 1261, 1259, 1251, 1232, 1228, 1233, 1213, 988, 990, 1201, 1212, 1196, 1189, 1211, 1188, 1166, 1178, 1149, 1153, 1129, 1133, 1134, 1130, 1102, 1105, 1106, 1101, 1083, 1101, 1084, 1049, 998, 1894, 992, 1042, 1040, 1050, 1002, 1063, 1006, 1894, 1011, 1894, 1015, 1022, 1027, 1037, 1041, 1052, 1057, 1061, 1067, 1076, 1085, 1090, 1094, 1099, 1103, 1114, 1118, 1047, 1123, 1129, 1133, 1137, 1141, 1145, 1020, 1032, 1149, 1150, 1077, 1157, 1156, 1095, 1161, 1162, 1168, 1163, 1180, 1181, 1187, 1188, 1151, 1197, 1198, 1202, 1203, 1207, 1209, 1208, 1060, 1050, 1032, 1034, 1006, 1007, 993, 997, 1000, 992, 968, 961, 969, 957, 919, 928, 914, 876, 872, 882, 1213, 881, 875, 874, 1894, 873, 847, 846, 824, 1894, 1894, 821, 812, 829, 810, 818, 1894, 795, 781, 1894, 776, 772, 1215, 749, 765, 1217, 1221, 1225, 1232, 1242, 1253, 1260, 1264, 1269, 1273, 1277, 1281, 1285, 1292, 1297, 1307, 1311, 1315, 1319, 1323, 1327, 1331, 1337, 1238, 1298, 1341, 1062, 1342, 1352, 1353, 1343, 1332, 1359, 1363, 1364, 1369, 1373, 1371, 1380, 1382, 1384, 1386, 1392, 1394, 1396, 1398, 772, 765, 761, 756, 754, 748, 713, 705, 693, 710, 681, 691, 664, 653, 652, 649, 669, 1894, 1894, 1894, 1894, 1894, 634, 630, 621, 1894, 615, 1894, 612, 575, 580, 560, 1894, 582, 1400, 1404, 1410, 1414, 1419, 1425, 1429, 1433, 1443, 1447, 1452, 1456, 1460, 1464, 1469, 1473, 1477, 1478, 1415, 1482, 1484, 1488, 1489, 1490, 1494, 1496, 1500, 1506, 1507, 1508, 1512, 1517, 1518, 1522, 569, 567, 558, 557, 535, 536, 499, 503, 481, 1894, 1894, 1894, 1894, 506, 1894, 502, 1523, 468, 493, 1527, 1531, 1535, 1539, 1543, 1552, 1558, 1563, 1568, 1544, 1569, 1573, 1574, 1575, 1579, 1581, 1585, 1586, 482, 444, 1590, 404, 1894, 399, 1591, 378, 1592, 1596, 1601, 1606, 1610, 1614, 1602, 1620, 1619, 1621, 1625, 385, 1627, 382, 1894, 1637, 366, 1641, 1645, 1653, 1657, 1646, 1639, 1661, 1667, 374, 352, 1894, 1672, 1677, 1682, 1683, 332, 305, 1687, 1688, 301, 256, 1692, 1693, 236, 241, 1700, 1704, 167, 1894, 1713, 1706, 1894, 1731, 1737, 1743, 1749, 1755, 1761, 1767, 1773, 1779, 1785, 1791, 1797, 1803, 1809, 1815, 102, 1821, 1827, 1833 } ; static yyconst flex_int16_t yy_def[766] = { 0, 746, 1, 747, 748, 749, 749, 750, 750, 746, 9, 746, 11, 746, 13, 751, 751, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 752, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 753, 746, 754, 746, 746, 755, 754, 754, 754, 756, 746, 746, 756, 756, 757, 746, 746, 758, 746, 746, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 759, 758, 758, 758, 758, 758, 758, 758, 760, 746, 746, 746, 746, 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, 37, 761, 760, 760, 760, 760, 760, 760, 760, 746, 746, 746, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 37, 762, 762, 762, 762, 762, 763, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 37, 752, 746, 746, 746, 746, 746, 752, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 754, 746, 754, 746, 754, 754, 754, 754, 756, 756, 746, 756, 756, 756, 757, 746, 746, 758, 758, 746, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 759, 759, 758, 758, 758, 758, 758, 758, 758, 758, 764, 746, 746, 746, 746, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 111, 765, 764, 764, 764, 764, 764, 764, 764, 764, 746, 746, 746, 746, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 138, 762, 762, 762, 762, 762, 762, 762, 763, 763, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 754, 756, 756, 756, 746, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 765, 764, 764, 764, 764, 764, 764, 764, 764, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 754, 756, 746, 756, 746, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 754, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 754, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 762, 762, 762, 762, 762, 762, 762, 762, 762, 746, 746, 746, 746, 746, 746, 746, 746, 746, 754, 758, 758, 758, 758, 758, 758, 758, 758, 758, 764, 764, 764, 764, 764, 764, 764, 764, 764, 762, 762, 762, 762, 746, 746, 746, 746, 746, 758, 758, 758, 758, 758, 764, 764, 764, 764, 764, 762, 762, 746, 746, 746, 746, 758, 758, 758, 758, 764, 764, 764, 764, 762, 746, 746, 758, 758, 764, 764, 762, 746, 758, 764, 762, 746, 758, 764, 762, 746, 758, 764, 762, 746, 758, 764, 0, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746 } ; static yyconst flex_int16_t yy_nxt[1942] = { 0, 18, 19, 20, 21, 19, 18, 22, 18, 23, 18, 18, 18, 24, 25, 18, 26, 18, 18, 27, 18, 28, 18, 29, 30, 31, 32, 18, 33, 34, 18, 35, 18, 36, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 37, 64, 65, 37, 38, 181, 59, 60, 39, 47, 48, 49, 50, 46, 52, 53, 54, 55, 59, 60, 161, 40, 64, 65, 182, 159, 56, 145, 146, 147, 145, 149, 148, 183, 149, 184, 41, 162, 42, 160, 43, 254, 165, 44, 45, 61, 145, 146, 147, 145, 62, 148, 156, 57, 166, 157, 201, 61, 255, 158, 277, 202, 62, 66, 19, 67, 68, 19, 66, 69, 66, 70, 66, 66, 66, 71, 72, 66, 73, 66, 66, 74, 66, 75, 66, 76, 77, 78, 79, 66, 80, 81, 66, 82, 66, 83, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 37, 178, 196, 37, 84, 186, 188, 189, 85, 187, 191, 193, 194, 258, 208, 160, 208, 208, 288, 743, 208, 86, 208, 208, 208, 259, 208, 208, 252, 197, 208, 210, 208, 208, 249, 289, 87, 250, 88, 226, 89, 251, 253, 90, 91, 92, 93, 94, 95, 93, 92, 96, 92, 97, 92, 92, 92, 98, 99, 92, 100, 92, 92, 101, 92, 102, 92, 103, 104, 105, 106, 92, 107, 108, 92, 109, 92, 110, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 111, 743, 177, 111, 112, 177, 265, 208, 113, 208, 208, 208, 268, 208, 208, 208, 306, 208, 208, 306, 253, 114, 742, 211, 212, 270, 208, 271, 208, 208, 230, 269, 230, 230, 283, 213, 115, 284, 116, 227, 117, 285, 739, 118, 119, 18, 120, 121, 122, 120, 18, 22, 123, 124, 18, 123, 123, 125, 126, 123, 127, 123, 123, 128, 123, 129, 123, 130, 131, 132, 133, 123, 134, 135, 123, 136, 123, 137, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 18, 18, 138, 286, 738, 138, 38, 292, 735, 208, 39, 208, 208, 208, 301, 208, 208, 287, 208, 293, 208, 208, 208, 139, 208, 208, 208, 215, 208, 208, 216, 220, 734, 302, 217, 218, 214, 196, 140, 298, 141, 149, 142, 222, 149, 143, 45, 170, 221, 219, 170, 171, 731, 287, 208, 172, 208, 208, 303, 208, 304, 208, 208, 208, 197, 208, 208, 208, 730, 208, 208, 183, 725, 184, 223, 224, 724, 208, 723, 208, 208, 328, 317, 173, 712, 174, 231, 225, 201, 181, 175, 176, 711, 202, 208, 228, 208, 208, 710, 208, 219, 208, 208, 208, 301, 208, 208, 208, 182, 208, 208, 208, 709, 208, 208, 240, 241, 242, 240, 242, 243, 242, 242, 302, 234, 263, 241, 242, 263, 273, 274, 275, 273, 186, 188, 189, 232, 236, 233, 237, 191, 193, 194, 235, 297, 274, 275, 297, 307, 308, 309, 307, 694, 337, 338, 238, 337, 208, 671, 208, 208, 208, 698, 208, 208, 208, 239, 208, 208, 239, 695, 208, 210, 208, 208, 208, 694, 208, 208, 208, 339, 208, 208, 208, 693, 208, 208, 208, 341, 208, 208, 208, 239, 208, 208, 239, 342, 692, 335, 340, 343, 208, 691, 208, 208, 208, 667, 208, 208, 208, 690, 208, 208, 208, 373, 208, 208, 208, 344, 208, 208, 410, 399, 208, 345, 208, 208, 665, 664, 239, 346, 347, 239, 208, 348, 208, 208, 663, 365, 662, 350, 208, 351, 208, 208, 349, 208, 671, 208, 208, 208, 239, 208, 208, 239, 208, 353, 208, 208, 208, 367, 208, 208, 670, 230, 354, 230, 230, 230, 352, 230, 230, 355, 208, 669, 208, 208, 208, 668, 208, 208, 208, 667, 208, 208, 208, 239, 208, 208, 239, 666, 665, 356, 208, 360, 208, 208, 357, 346, 208, 664, 208, 208, 208, 663, 208, 208, 358, 208, 239, 208, 208, 239, 359, 234, 240, 241, 242, 240, 242, 241, 242, 242, 239, 239, 239, 239, 239, 239, 239, 364, 239, 239, 235, 239, 361, 370, 239, 368, 662, 239, 661, 369, 239, 362, 660, 239, 239, 366, 239, 239, 659, 239, 658, 371, 239, 239, 239, 239, 239, 239, 612, 372, 657, 374, 377, 376, 379, 239, 239, 239, 239, 239, 239, 264, 375, 177, 264, 239, 177, 610, 239, 656, 378, 380, 381, 239, 239, 239, 239, 239, 239, 239, 239, 655, 239, 239, 387, 239, 306, 654, 239, 306, 382, 273, 274, 275, 273, 385, 306, 384, 372, 306, 388, 307, 308, 309, 307, 606, 386, 434, 435, 436, 434, 605, 436, 604, 442, 443, 390, 442, 603, 389, 444, 445, 602, 444, 337, 338, 391, 337, 208, 239, 208, 208, 239, 208, 653, 208, 208, 208, 618, 208, 208, 208, 617, 208, 208, 208, 239, 208, 208, 239, 446, 616, 448, 437, 450, 208, 615, 208, 208, 335, 447, 208, 449, 208, 208, 335, 614, 473, 451, 199, 208, 613, 208, 208, 208, 612, 208, 208, 208, 611, 208, 208, 208, 452, 208, 208, 610, 239, 609, 453, 239, 455, 456, 208, 364, 208, 208, 608, 607, 208, 454, 208, 208, 606, 605, 208, 457, 208, 208, 208, 458, 208, 208, 208, 239, 208, 208, 239, 208, 459, 208, 208, 208, 474, 208, 208, 464, 435, 208, 464, 604, 603, 602, 462, 465, 460, 208, 465, 208, 461, 208, 208, 208, 601, 208, 208, 208, 239, 208, 208, 239, 208, 463, 208, 208, 239, 239, 239, 239, 239, 239, 239, 600, 599, 239, 239, 357, 598, 239, 470, 475, 472, 239, 239, 467, 239, 239, 239, 466, 597, 239, 468, 471, 476, 477, 530, 479, 480, 469, 239, 239, 239, 239, 239, 239, 596, 239, 239, 478, 239, 239, 482, 481, 239, 239, 483, 239, 239, 264, 489, 177, 264, 489, 177, 488, 435, 239, 488, 486, 239, 595, 239, 484, 485, 239, 239, 239, 239, 239, 239, 239, 594, 593, 239, 487, 387, 239, 434, 435, 436, 434, 436, 436, 592, 436, 384, 388, 434, 435, 524, 434, 536, 491, 490, 536, 442, 443, 523, 442, 591, 444, 445, 492, 444, 208, 389, 208, 208, 590, 239, 493, 208, 239, 208, 208, 539, 208, 589, 208, 208, 562, 239, 588, 437, 239, 437, 208, 540, 208, 208, 208, 518, 208, 208, 542, 537, 208, 563, 208, 208, 199, 208, 541, 208, 208, 199, 208, 587, 208, 208, 208, 239, 208, 208, 239, 586, 208, 543, 208, 208, 585, 538, 544, 546, 547, 208, 239, 208, 208, 239, 535, 534, 545, 548, 208, 533, 208, 208, 556, 208, 532, 208, 208, 208, 239, 208, 208, 239, 208, 531, 208, 208, 208, 566, 208, 208, 551, 569, 530, 529, 549, 550, 552, 208, 528, 208, 208, 208, 527, 208, 208, 554, 464, 435, 208, 464, 526, 525, 465, 553, 208, 465, 208, 555, 208, 208, 208, 524, 208, 208, 208, 523, 208, 208, 560, 522, 208, 560, 239, 239, 239, 239, 239, 239, 521, 239, 239, 565, 239, 239, 239, 239, 239, 239, 239, 239, 578, 239, 570, 571, 239, 559, 466, 520, 564, 519, 557, 567, 558, 239, 239, 568, 239, 239, 573, 518, 239, 239, 561, 239, 239, 517, 574, 572, 575, 577, 239, 488, 435, 239, 488, 489, 239, 516, 489, 239, 239, 583, 239, 239, 583, 239, 536, 576, 536, 536, 208, 536, 208, 208, 208, 515, 208, 208, 208, 514, 208, 208, 620, 619, 513, 208, 621, 208, 208, 410, 512, 239, 579, 582, 239, 208, 511, 208, 208, 490, 580, 510, 581, 622, 636, 584, 208, 509, 208, 208, 537, 508, 537, 208, 623, 208, 208, 208, 507, 208, 208, 624, 208, 506, 208, 208, 208, 505, 208, 208, 208, 504, 208, 208, 208, 503, 208, 208, 208, 502, 208, 208, 625, 501, 500, 208, 628, 208, 208, 499, 208, 239, 208, 208, 239, 498, 497, 626, 630, 637, 208, 627, 208, 208, 208, 629, 208, 208, 208, 496, 208, 208, 208, 495, 208, 208, 208, 494, 208, 208, 208, 441, 208, 208, 560, 239, 208, 560, 239, 440, 208, 631, 208, 208, 239, 239, 239, 239, 239, 239, 439, 328, 638, 639, 632, 239, 239, 633, 239, 239, 634, 438, 239, 640, 641, 239, 239, 239, 433, 239, 239, 642, 239, 432, 239, 239, 239, 239, 561, 239, 645, 431, 647, 239, 635, 239, 239, 239, 239, 239, 239, 430, 239, 643, 644, 239, 646, 239, 239, 583, 239, 239, 583, 208, 239, 208, 208, 208, 429, 208, 208, 672, 648, 208, 428, 208, 208, 208, 239, 208, 208, 239, 208, 649, 208, 208, 650, 651, 208, 427, 208, 208, 208, 426, 208, 208, 208, 425, 208, 208, 673, 424, 423, 584, 674, 652, 208, 422, 208, 208, 208, 421, 208, 208, 675, 208, 420, 208, 208, 208, 419, 208, 208, 208, 418, 208, 208, 208, 676, 208, 208, 677, 208, 417, 208, 208, 208, 416, 208, 208, 208, 239, 208, 208, 239, 239, 308, 239, 239, 681, 239, 239, 239, 239, 239, 239, 239, 239, 415, 239, 239, 682, 239, 239, 679, 683, 239, 684, 678, 239, 239, 239, 239, 239, 239, 239, 414, 680, 239, 686, 239, 239, 685, 239, 239, 239, 696, 413, 239, 696, 208, 412, 208, 208, 208, 411, 208, 208, 208, 409, 208, 208, 208, 408, 208, 208, 208, 239, 208, 208, 239, 407, 688, 406, 699, 208, 687, 208, 208, 405, 404, 208, 689, 208, 208, 403, 701, 700, 208, 701, 697, 208, 239, 208, 208, 239, 239, 239, 239, 239, 239, 239, 239, 402, 239, 239, 704, 239, 706, 239, 705, 706, 239, 696, 696, 713, 696, 696, 713, 208, 401, 208, 208, 703, 208, 239, 208, 208, 239, 701, 702, 208, 701, 208, 400, 208, 208, 717, 399, 208, 717, 708, 706, 239, 239, 706, 239, 239, 721, 398, 713, 721, 707, 713, 397, 715, 396, 697, 697, 714, 713, 395, 239, 713, 208, 239, 208, 208, 208, 239, 208, 208, 239, 702, 719, 394, 717, 716, 208, 717, 208, 718, 208, 208, 721, 393, 707, 721, 720, 392, 239, 278, 722, 239, 714, 208, 726, 208, 208, 274, 208, 728, 208, 208, 714, 239, 239, 205, 239, 239, 208, 239, 208, 208, 239, 208, 239, 208, 208, 239, 718, 336, 335, 208, 727, 208, 208, 239, 722, 239, 239, 744, 239, 732, 729, 745, 208, 199, 208, 208, 195, 334, 191, 733, 186, 333, 332, 331, 330, 740, 741, 736, 737, 46, 46, 46, 46, 46, 46, 51, 51, 51, 51, 51, 51, 58, 58, 58, 58, 58, 58, 63, 63, 63, 63, 63, 63, 144, 144, 144, 144, 144, 144, 177, 177, 329, 177, 177, 177, 187, 187, 187, 187, 187, 187, 190, 185, 180, 179, 190, 190, 192, 192, 192, 192, 192, 192, 198, 198, 327, 326, 198, 198, 204, 204, 204, 325, 204, 204, 207, 207, 324, 207, 207, 207, 229, 229, 323, 229, 229, 229, 239, 239, 322, 321, 320, 239, 264, 264, 319, 264, 264, 264, 305, 305, 318, 317, 316, 305, 363, 363, 315, 314, 313, 363, 383, 383, 312, 383, 383, 383, 311, 310, 151, 308, 300, 299, 296, 295, 294, 291, 290, 282, 281, 280, 279, 278, 276, 272, 267, 266, 262, 261, 260, 257, 256, 248, 247, 246, 245, 244, 209, 206, 205, 203, 200, 199, 195, 191, 186, 185, 180, 179, 169, 168, 167, 164, 163, 155, 154, 153, 152, 151, 150, 746, 17, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746 } ; static yyconst flex_int16_t yy_chk[1942] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 7, 7, 2, 2, 43, 5, 5, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 6, 6, 30, 2, 8, 8, 43, 29, 4, 15, 15, 15, 15, 19, 15, 44, 19, 44, 2, 30, 2, 29, 2, 104, 33, 2, 2, 5, 16, 16, 16, 16, 5, 16, 28, 4, 33, 28, 61, 6, 104, 28, 762, 61, 6, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 40, 57, 10, 10, 49, 49, 49, 10, 54, 54, 54, 54, 107, 66, 40, 66, 66, 131, 742, 69, 10, 69, 69, 70, 107, 70, 70, 103, 57, 81, 70, 81, 81, 102, 131, 10, 102, 10, 81, 10, 102, 103, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 739, 112, 12, 12, 112, 114, 71, 12, 71, 71, 72, 117, 72, 72, 73, 144, 73, 73, 144, 114, 12, 738, 71, 72, 118, 82, 118, 82, 82, 84, 117, 84, 84, 129, 73, 12, 129, 12, 82, 12, 129, 735, 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, 14, 130, 734, 14, 14, 134, 731, 74, 14, 74, 74, 75, 142, 75, 75, 130, 78, 134, 78, 78, 77, 14, 77, 77, 76, 75, 76, 76, 75, 77, 730, 142, 75, 76, 74, 197, 14, 139, 14, 149, 14, 78, 149, 14, 14, 37, 77, 76, 37, 37, 724, 139, 79, 37, 79, 79, 143, 80, 143, 80, 80, 83, 197, 83, 83, 85, 723, 85, 85, 175, 714, 175, 79, 80, 711, 86, 709, 86, 86, 178, 178, 37, 697, 37, 86, 80, 201, 182, 37, 37, 695, 201, 87, 83, 87, 87, 693, 88, 86, 88, 88, 89, 302, 89, 89, 90, 182, 90, 90, 91, 691, 91, 91, 93, 93, 93, 93, 95, 95, 95, 95, 302, 89, 111, 111, 111, 111, 120, 120, 120, 120, 189, 189, 189, 87, 90, 88, 90, 194, 194, 194, 89, 138, 138, 138, 138, 145, 145, 145, 145, 690, 203, 203, 91, 203, 207, 671, 207, 207, 208, 670, 208, 208, 210, 239, 210, 210, 239, 668, 211, 210, 211, 211, 212, 666, 212, 212, 213, 211, 213, 213, 214, 661, 214, 214, 215, 213, 215, 215, 216, 253, 216, 216, 253, 214, 660, 203, 212, 215, 217, 659, 217, 217, 218, 658, 218, 218, 219, 657, 219, 219, 220, 253, 220, 220, 221, 216, 221, 221, 298, 298, 222, 217, 222, 222, 656, 655, 245, 218, 219, 245, 223, 220, 223, 223, 654, 245, 653, 222, 224, 223, 224, 224, 221, 225, 618, 225, 225, 226, 247, 226, 226, 247, 227, 225, 227, 227, 228, 247, 228, 228, 616, 229, 226, 229, 229, 230, 224, 230, 230, 227, 231, 615, 231, 231, 232, 614, 232, 232, 233, 613, 233, 233, 234, 272, 234, 234, 272, 611, 609, 228, 235, 234, 235, 235, 231, 231, 236, 608, 236, 236, 237, 607, 237, 237, 232, 238, 250, 238, 238, 250, 233, 235, 240, 240, 240, 240, 242, 242, 242, 242, 244, 246, 248, 244, 246, 248, 249, 244, 251, 249, 235, 251, 236, 250, 252, 248, 601, 252, 600, 249, 254, 237, 599, 254, 255, 246, 256, 255, 598, 256, 597, 251, 258, 257, 259, 258, 257, 259, 596, 252, 595, 254, 257, 256, 259, 261, 260, 262, 261, 260, 262, 264, 255, 264, 264, 266, 264, 594, 266, 593, 258, 260, 261, 265, 267, 268, 265, 267, 268, 269, 270, 592, 269, 270, 268, 271, 305, 591, 271, 305, 262, 273, 273, 273, 273, 266, 306, 265, 265, 306, 269, 307, 307, 307, 307, 590, 267, 328, 328, 329, 328, 589, 329, 588, 335, 335, 270, 335, 587, 269, 336, 336, 586, 336, 337, 337, 271, 337, 339, 363, 339, 339, 363, 340, 585, 340, 340, 341, 538, 341, 341, 342, 537, 342, 342, 343, 368, 343, 343, 368, 339, 535, 341, 329, 343, 344, 534, 344, 344, 335, 340, 345, 342, 345, 345, 336, 532, 368, 344, 337, 346, 531, 346, 346, 347, 529, 347, 347, 348, 528, 348, 348, 349, 345, 349, 349, 527, 364, 526, 346, 364, 348, 349, 350, 364, 350, 350, 525, 522, 351, 347, 351, 351, 521, 520, 352, 350, 352, 352, 353, 351, 353, 353, 354, 369, 354, 354, 369, 355, 352, 355, 355, 356, 369, 356, 356, 357, 357, 357, 357, 519, 517, 516, 355, 358, 353, 358, 358, 359, 354, 359, 359, 360, 515, 360, 360, 361, 365, 361, 361, 365, 362, 356, 362, 362, 366, 367, 370, 366, 367, 370, 371, 513, 512, 371, 372, 360, 511, 372, 365, 370, 367, 373, 374, 359, 373, 374, 375, 358, 510, 375, 361, 366, 371, 372, 509, 374, 375, 362, 376, 377, 378, 376, 377, 378, 508, 379, 380, 373, 379, 380, 377, 376, 381, 382, 378, 381, 382, 383, 385, 383, 383, 385, 383, 384, 384, 386, 384, 381, 386, 507, 387, 379, 380, 387, 389, 388, 390, 389, 388, 390, 506, 505, 391, 382, 388, 391, 410, 410, 411, 410, 436, 411, 504, 436, 387, 389, 434, 434, 503, 434, 440, 386, 385, 440, 442, 442, 502, 442, 501, 444, 444, 390, 444, 446, 389, 446, 446, 500, 470, 391, 447, 470, 447, 447, 446, 448, 499, 448, 448, 470, 471, 498, 411, 471, 436, 449, 447, 449, 449, 450, 497, 450, 450, 449, 440, 463, 471, 463, 463, 442, 451, 448, 451, 451, 444, 452, 496, 452, 452, 453, 565, 453, 453, 565, 495, 454, 450, 454, 454, 494, 441, 451, 453, 454, 455, 474, 455, 455, 474, 439, 438, 452, 455, 456, 437, 456, 456, 463, 457, 433, 457, 457, 458, 477, 458, 458, 477, 459, 432, 459, 459, 460, 474, 460, 460, 458, 477, 431, 430, 456, 457, 459, 461, 429, 461, 461, 462, 428, 462, 462, 461, 464, 464, 464, 464, 427, 426, 465, 460, 465, 465, 466, 462, 466, 466, 467, 425, 467, 467, 468, 424, 468, 468, 469, 423, 469, 469, 472, 473, 486, 472, 473, 486, 422, 476, 475, 473, 476, 475, 478, 479, 481, 478, 479, 481, 486, 480, 478, 479, 480, 468, 465, 421, 472, 420, 466, 475, 467, 482, 483, 476, 482, 483, 481, 419, 484, 485, 469, 484, 485, 418, 482, 480, 483, 485, 487, 488, 488, 487, 488, 489, 490, 417, 489, 490, 491, 493, 492, 491, 493, 492, 514, 484, 536, 514, 539, 536, 539, 539, 540, 416, 540, 540, 541, 415, 541, 541, 540, 539, 414, 542, 541, 542, 542, 413, 412, 562, 487, 492, 562, 543, 409, 543, 543, 489, 490, 408, 491, 543, 562, 493, 544, 407, 544, 544, 514, 406, 536, 545, 544, 545, 545, 546, 405, 546, 546, 545, 547, 404, 547, 547, 548, 403, 548, 548, 549, 402, 549, 549, 550, 401, 550, 550, 551, 400, 551, 551, 546, 399, 398, 552, 551, 552, 552, 397, 553, 563, 553, 553, 563, 396, 395, 549, 553, 563, 554, 550, 554, 554, 555, 552, 555, 555, 556, 394, 556, 556, 557, 393, 557, 557, 558, 392, 558, 558, 559, 334, 559, 559, 560, 570, 560, 560, 570, 333, 561, 555, 561, 561, 564, 566, 569, 564, 566, 569, 332, 331, 564, 566, 556, 567, 568, 558, 567, 568, 559, 330, 571, 567, 568, 571, 572, 573, 327, 572, 573, 569, 574, 326, 576, 574, 575, 576, 560, 575, 574, 325, 576, 577, 561, 578, 577, 579, 578, 580, 579, 324, 580, 572, 573, 581, 575, 582, 581, 583, 582, 584, 583, 619, 584, 619, 619, 620, 323, 620, 620, 619, 578, 621, 322, 621, 621, 622, 637, 622, 622, 637, 623, 579, 623, 623, 581, 582, 624, 321, 624, 624, 625, 320, 625, 625, 626, 319, 626, 626, 625, 318, 317, 583, 626, 584, 627, 316, 627, 627, 628, 315, 628, 628, 627, 629, 314, 629, 629, 630, 313, 630, 630, 631, 312, 631, 631, 632, 629, 632, 632, 631, 633, 311, 633, 633, 634, 310, 634, 634, 635, 636, 635, 635, 636, 638, 309, 639, 638, 636, 639, 640, 641, 642, 640, 641, 642, 643, 304, 644, 643, 642, 644, 645, 633, 643, 645, 644, 632, 646, 647, 648, 646, 647, 648, 649, 303, 634, 649, 648, 650, 651, 646, 650, 651, 652, 669, 301, 652, 669, 672, 300, 672, 672, 673, 299, 673, 673, 674, 296, 674, 674, 675, 295, 675, 675, 676, 681, 676, 676, 681, 294, 650, 293, 676, 677, 649, 677, 677, 292, 291, 678, 651, 678, 678, 290, 679, 678, 679, 679, 669, 680, 682, 680, 680, 682, 683, 684, 685, 683, 684, 685, 686, 289, 687, 686, 685, 687, 688, 689, 687, 688, 689, 692, 696, 698, 692, 696, 698, 699, 288, 699, 699, 680, 700, 704, 700, 700, 704, 701, 679, 701, 701, 702, 287, 702, 702, 703, 286, 703, 703, 689, 706, 705, 707, 706, 705, 707, 708, 285, 710, 708, 688, 710, 284, 700, 283, 692, 696, 698, 713, 282, 720, 713, 715, 720, 715, 715, 716, 719, 716, 716, 719, 701, 705, 281, 717, 702, 717, 717, 718, 703, 718, 718, 721, 280, 706, 721, 707, 279, 722, 278, 708, 722, 710, 726, 715, 726, 726, 275, 727, 719, 727, 727, 713, 728, 729, 204, 728, 729, 732, 733, 732, 732, 733, 736, 737, 736, 736, 737, 717, 202, 199, 740, 718, 740, 740, 741, 721, 745, 741, 740, 745, 726, 722, 741, 744, 198, 744, 744, 196, 195, 193, 728, 188, 184, 183, 181, 180, 736, 737, 732, 733, 747, 747, 747, 747, 747, 747, 748, 748, 748, 748, 748, 748, 749, 749, 749, 749, 749, 749, 750, 750, 750, 750, 750, 750, 751, 751, 751, 751, 751, 751, 752, 752, 179, 752, 752, 752, 753, 753, 753, 753, 753, 753, 754, 176, 174, 173, 754, 754, 755, 755, 755, 755, 755, 755, 756, 756, 169, 168, 756, 756, 757, 757, 757, 167, 757, 757, 758, 758, 166, 758, 758, 758, 759, 759, 165, 759, 759, 759, 760, 760, 164, 163, 162, 760, 761, 761, 161, 761, 761, 761, 763, 763, 160, 159, 158, 763, 764, 764, 157, 156, 155, 764, 765, 765, 154, 765, 765, 765, 153, 152, 151, 147, 141, 140, 137, 136, 135, 133, 132, 128, 127, 126, 125, 124, 122, 119, 116, 115, 110, 109, 108, 106, 105, 101, 100, 99, 98, 97, 68, 65, 63, 62, 60, 58, 56, 53, 48, 45, 42, 41, 36, 35, 34, 32, 31, 27, 26, 25, 24, 23, 21, 17, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746 } ; /* Table of booleans, true if rule could match eol. */ static yyconst flex_int32_t yy_rule_can_match_eol[59] = { 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 1, 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, 1, 0, 0, }; static yy_state_type yy_last_accepting_state; static char *yy_last_accepting_cpos; extern int yy_flex_debug; int yy_flex_debug = 0; /* The intent behind this definition is that it'll catch * any uses of REJECT which flex missed. */ #define REJECT reject_used_but_not_detected #define yymore() yymore_used_but_not_detected #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET char *yytext; #line 1 "levcomp.lpp" #line 2 "levcomp.lpp" // levcomp.lpp: // Level compiler lexer for Dungeon Crawl Stone Soup. // // Based loosely on NetHack's lev_comp.l #include "AppHdr.h" #include "mapdef.h" #include "levcomp.tab.h" #include #include static bool alloced = false; std::queue free_queue; static void flush_free_queue(unsigned int max_allowed) { while (free_queue.size() > max_allowed) { const char *s = free_queue.front(); free((void *) s); free_queue.pop(); } } static void add_to_queue(const char *s) { free_queue.push(s); flush_free_queue(100); } static void clean() { if (yylval.text && alloced) add_to_queue(yylval.text); yylval.text = NULL; alloced = false; } static void settext(bool trim_right = false, int strip_trailing = 0) { clean(); char *newstring = NULL; if ((yylval.text = newstring = strdup(yytext))) { alloced = true; char *s = NULL; if (trim_right) { s = newstring + strlen(newstring) - 1; while (isspace(*s) && s >= newstring) *s-- = 0; } if (strip_trailing) { if (!s) s = newstring + strlen(newstring) - 1; while (s >= newstring && --strip_trailing >= 0) *s-- = 0; } } } #line 1224 "levcomp.lex.cc" #define INITIAL 0 #define MAPDEF 1 #define LUA 2 #define LUA_ONELINER 3 #define ARGUMENT 4 #define MNAME 5 #define KEYWORDS 6 #define ITEM_LIST 7 #ifndef YY_NO_UNISTD_H /* Special case for "unistd.h", since it is non-ANSI. We include it way * down here because we want the user's section 1 to have been scanned first. * The user has a chance to override it with an option. */ #include #endif #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 yywrap (void ); #else extern int yywrap (void ); #endif #endif static void yyunput (int c,char *buf_ptr ); #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( yytext, yyleng, 1, yyout ) #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( yyin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ if ( c == '\n' ) \ buf[n++] = (char) c; \ if ( c == EOF && ferror( yyin ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ result = n; \ } \ else \ { \ errno=0; \ while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ { \ if( errno != EINTR) \ { \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ break; \ } \ errno=0; \ clearerr(yyin); \ } \ }\ \ #endif /* No semi-colon after return; correct usage is to write "yyterminate();" - * we don't want an extra ';' after the "return" because that will cause * some compilers to complain about unreachable statements. */ #ifndef yyterminate #define yyterminate() return YY_NULL #endif /* Number of entries by which start-condition stack grows. */ #ifndef YY_START_STACK_INCR #define YY_START_STACK_INCR 25 #endif /* Report a fatal error. */ #ifndef YY_FATAL_ERROR #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) #endif /* end tables serialization structures and prototypes */ /* Default declaration of generated scanner - a define so the user can * easily add parameters. */ #ifndef YY_DECL #define YY_DECL_IS_OURS 1 extern int yylex (void); #define YY_DECL int yylex (void) #endif /* !YY_DECL */ /* Code executed at the beginning of each rule, after yytext and yyleng * have been set up. */ #ifndef YY_USER_ACTION #define YY_USER_ACTION #endif /* Code executed at the end of each rule. */ #ifndef YY_BREAK #define YY_BREAK break; #endif #define YY_RULE_SETUP \ if ( yyleng > 0 ) \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \ (yytext[yyleng - 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 82 "levcomp.lpp" #line 1390 "levcomp.lex.cc" if ( !(yy_init) ) { (yy_init) = 1; #ifdef YY_USER_INIT YY_USER_INIT; #endif if ( ! (yy_start) ) (yy_start) = 1; /* first start state */ if ( ! yyin ) yyin = stdin; if ( ! yyout ) yyout = stdout; if ( ! YY_CURRENT_BUFFER ) { yyensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin,YY_BUF_SIZE ); } yy_load_buffer_state( ); } while ( 1 ) /* loops until end-of-file is reached */ { yy_cp = (yy_c_buf_p); /* Support of yytext. */ *yy_cp = (yy_hold_char); /* yy_bp points to the position in yy_ch_buf of the start of * the current run. */ yy_bp = yy_cp; yy_current_state = (yy_start); yy_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 >= 747 ) 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_current_state != 746 ); yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); yy_find_action: 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 < yyleng; ++yyl ) if ( yytext[yyl] == '\n' ) yylineno++; ; } do_action: /* This label is used only to access EOF actions. */ switch ( yy_act ) { /* beginning of action switch */ case 0: /* must back up */ /* undo the effects of YY_DO_BEFORE_ACTION */ *yy_cp = (yy_hold_char); yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); goto yy_find_action; case 1: YY_RULE_SETUP #line 84 "levcomp.lpp" { BEGIN(INITIAL); } YY_BREAK case 2: YY_RULE_SETUP #line 86 "levcomp.lpp" { settext(true); return MAP_LINE; } YY_BREAK case 3: /* rule 3 can match eol */ YY_RULE_SETUP #line 91 "levcomp.lpp" return CHARACTER; YY_BREAK case 4: YY_RULE_SETUP #line 92 "levcomp.lpp" return CHARACTER; YY_BREAK case 5: YY_RULE_SETUP #line 93 "levcomp.lpp" return CHARACTER; YY_BREAK case 6: /* rule 6 can match eol */ YY_RULE_SETUP #line 95 "levcomp.lpp" ; YY_BREAK case 7: *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 97 "levcomp.lpp" { BEGIN(INITIAL); } YY_BREAK case 8: *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 98 "levcomp.lpp" { settext(true, 2); BEGIN(INITIAL); return LUA_LINE; } YY_BREAK case 9: YY_RULE_SETUP #line 103 "levcomp.lpp" { settext(); return LUA_LINE; } YY_BREAK case 10: /* rule 10 can match eol */ YY_RULE_SETUP #line 107 "levcomp.lpp" ; YY_BREAK case 11: *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 109 "levcomp.lpp" { settext(); return LUA_LINE; } YY_BREAK case 12: /* rule 12 can match eol */ YY_RULE_SETUP #line 113 "levcomp.lpp" { BEGIN(INITIAL); } YY_BREAK case 13: YY_RULE_SETUP #line 115 "levcomp.lpp" { settext(); return STRING; } YY_BREAK case 14: YY_RULE_SETUP #line 120 "levcomp.lpp" ; YY_BREAK case 15: /* rule 15 can match eol */ YY_RULE_SETUP #line 121 "levcomp.lpp" { BEGIN(INITIAL); } YY_BREAK case 16: YY_RULE_SETUP #line 123 "levcomp.lpp" { settext(); return ITEM_INFO; } YY_BREAK case 17: YY_RULE_SETUP #line 128 "levcomp.lpp" { settext(); return ITEM_INFO; } YY_BREAK case 18: YY_RULE_SETUP #line 133 "levcomp.lpp" return COMMA; YY_BREAK case 19: YY_RULE_SETUP #line 134 "levcomp.lpp" ; YY_BREAK case 20: /* rule 20 can match eol */ YY_RULE_SETUP #line 135 "levcomp.lpp" { BEGIN(INITIAL); } YY_BREAK case 21: /* rule 21 can match eol */ YY_RULE_SETUP #line 137 "levcomp.lpp" { BEGIN(INITIAL); } YY_BREAK case 22: YY_RULE_SETUP #line 139 "levcomp.lpp" { settext(); return MONSTER_NAME; } YY_BREAK case 23: YY_RULE_SETUP #line 144 "levcomp.lpp" return COMMA; YY_BREAK case 24: YY_RULE_SETUP #line 145 "levcomp.lpp" ; YY_BREAK case 25: YY_RULE_SETUP #line 147 "levcomp.lpp" { BEGIN(INITIAL); settext(); return STRING; } YY_BREAK case 26: /* rule 26 can match eol */ YY_RULE_SETUP #line 153 "levcomp.lpp" { BEGIN(INITIAL); } YY_BREAK case 27: YY_RULE_SETUP #line 155 "levcomp.lpp" ; YY_BREAK case 28: *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 157 "levcomp.lpp" { BEGIN(MAPDEF); } YY_BREAK case 29: YY_RULE_SETUP #line 159 "levcomp.lpp" { BEGIN(LUA_ONELINER); return MAIN; } YY_BREAK case 30: YY_RULE_SETUP #line 161 "levcomp.lpp" { BEGIN(LUA); return PRELUDE; } YY_BREAK case 31: YY_RULE_SETUP #line 162 "levcomp.lpp" { BEGIN(LUA); return MAIN; } YY_BREAK case 32: YY_RULE_SETUP #line 163 "levcomp.lpp" { BEGIN(LUA); return MAIN; } YY_BREAK case 33: YY_RULE_SETUP #line 164 "levcomp.lpp" { BEGIN(LUA); return VALIDATE; } YY_BREAK case 34: YY_RULE_SETUP #line 165 "levcomp.lpp" { BEGIN(LUA); return VETO; } YY_BREAK case 35: YY_RULE_SETUP #line 168 "levcomp.lpp" { BEGIN(ARGUMENT); return NAME; } YY_BREAK case 36: YY_RULE_SETUP #line 169 "levcomp.lpp" { BEGIN(ARGUMENT); return DEFAULT_DEPTH; } YY_BREAK case 37: YY_RULE_SETUP #line 170 "levcomp.lpp" { BEGIN(ARGUMENT); return DEPTH; } YY_BREAK case 38: YY_RULE_SETUP #line 171 "levcomp.lpp" { BEGIN(ARGUMENT); return ORIENT; } YY_BREAK case 39: YY_RULE_SETUP #line 172 "levcomp.lpp" { BEGIN(ARGUMENT); return PLACE; } YY_BREAK case 40: YY_RULE_SETUP #line 173 "levcomp.lpp" return CHANCE; YY_BREAK case 41: YY_RULE_SETUP #line 174 "levcomp.lpp" return CHANCE; YY_BREAK case 42: YY_RULE_SETUP #line 175 "levcomp.lpp" { BEGIN(KEYWORDS); return TAGS; } YY_BREAK case 43: YY_RULE_SETUP #line 176 "levcomp.lpp" { BEGIN(KEYWORDS); return TAGS; } YY_BREAK case 44: YY_RULE_SETUP #line 177 "levcomp.lpp" { BEGIN(ITEM_LIST); return SUBST; } YY_BREAK case 45: YY_RULE_SETUP #line 178 "levcomp.lpp" { BEGIN(ITEM_LIST); return NSUBST; } YY_BREAK case 46: YY_RULE_SETUP #line 179 "levcomp.lpp" { BEGIN(MNAME); return MONS; } YY_BREAK case 47: YY_RULE_SETUP #line 180 "levcomp.lpp" { BEGIN(ITEM_LIST); return ITEM; } YY_BREAK case 48: YY_RULE_SETUP #line 181 "levcomp.lpp" { BEGIN(ITEM_LIST); return MARKER; } YY_BREAK case 49: YY_RULE_SETUP #line 182 "levcomp.lpp" { BEGIN(ITEM_LIST); return SHUFFLE; } YY_BREAK case 50: YY_RULE_SETUP #line 184 "levcomp.lpp" { BEGIN(ARGUMENT); return KFEAT; } YY_BREAK case 51: YY_RULE_SETUP #line 185 "levcomp.lpp" { BEGIN(ARGUMENT); return KITEM; } YY_BREAK case 52: YY_RULE_SETUP #line 186 "levcomp.lpp" { BEGIN(ARGUMENT); return KMONS; } YY_BREAK case 53: YY_RULE_SETUP #line 188 "levcomp.lpp" return COMMA; YY_BREAK case 54: YY_RULE_SETUP #line 190 "levcomp.lpp" { clean(); yylval.i = atoi(yytext); return INTEGER; } YY_BREAK case 55: YY_RULE_SETUP #line 196 "levcomp.lpp" ; YY_BREAK case 56: /* rule 56 can match eol */ YY_RULE_SETUP #line 197 "levcomp.lpp" ; YY_BREAK case 57: YY_RULE_SETUP #line 198 "levcomp.lpp" return CHARACTER; YY_BREAK case 58: YY_RULE_SETUP #line 200 "levcomp.lpp" ECHO; YY_BREAK #line 1824 "levcomp.lex.cc" case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(MAPDEF): case YY_STATE_EOF(LUA): case YY_STATE_EOF(LUA_ONELINER): case YY_STATE_EOF(ARGUMENT): case YY_STATE_EOF(MNAME): case YY_STATE_EOF(KEYWORDS): case YY_STATE_EOF(ITEM_LIST): 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 yyin at a new source and called * yylex(). If so, then we have to assure * consistency between YY_CURRENT_BUFFER and our * globals. Here is the right place to do so, because * this is the first action (other than possibly a * back-up) that will match for the new input source. */ (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; } /* Note that here we test for yy_c_buf_p "<=" to the position * of the first EOB in the buffer, since yy_c_buf_p will * already have been incremented past the NUL character * (since all states make transitions on EOB to the * end-of-buffer state). Contrast this with the test * in input(). */ if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) { /* This was really a NUL. */ yy_state_type yy_next_state; (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state( ); /* Okay, we're now positioned to make the NUL * transition. We couldn't have * yy_get_previous_state() go ahead and do it * for us because it doesn't know how to deal * with the possibility of jamming (and we don't * want to build jamming into it because then it * will run more slowly). */ yy_next_state = yy_try_NUL_trans( yy_current_state ); yy_bp = (yytext_ptr) + YY_MORE_ADJ; if ( yy_next_state ) { /* Consume the NUL. */ yy_cp = ++(yy_c_buf_p); yy_current_state = yy_next_state; goto yy_match; } else { yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); goto yy_find_action; } } else switch ( yy_get_next_buffer( ) ) { case EOB_ACT_END_OF_FILE: { (yy_did_buffer_switch_on_eof) = 0; if ( yywrap( ) ) { /* Note: because we've taken care in * yy_get_next_buffer() to have set up * yytext, we can now set up * yy_c_buf_p so that if some total * hoser (like flex itself) wants to * call the scanner after we return the * YY_NULL, it'll still work - another * YY_NULL will get returned. */ (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; yy_act = YY_STATE_EOF(YY_START); goto do_action; } else { if ( ! (yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; } break; } case EOB_ACT_CONTINUE_SCAN: (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state( ); yy_cp = (yy_c_buf_p); yy_bp = (yytext_ptr) + YY_MORE_ADJ; goto yy_match; case EOB_ACT_LAST_MATCH: (yy_c_buf_p) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; yy_current_state = yy_get_previous_state( ); yy_cp = (yy_c_buf_p); yy_bp = (yytext_ptr) + YY_MORE_ADJ; goto yy_find_action; } break; } default: YY_FATAL_ERROR( "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ } /* end of yylex */ /* yy_get_next_buffer - try to read in a new buffer * * Returns a code representing an action: * EOB_ACT_LAST_MATCH - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position * EOB_ACT_END_OF_FILE - end of file */ static int yy_get_next_buffer (void) { 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. */ yyrealloc((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), num_to_read ); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } if ( (yy_n_chars) == 0 ) { if ( number_to_move == YY_MORE_ADJ ) { ret_val = EOB_ACT_END_OF_FILE; yyrestart(yyin ); } else { ret_val = EOB_ACT_LAST_MATCH; YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_EOF_PENDING; } } else ret_val = EOB_ACT_CONTINUE_SCAN; (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 >= 747 ) 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 >= 747 ) 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 == 746); return yy_is_jam ? 0 : yy_current_state; } static void yyunput (int c, register char * yy_bp ) { register char *yy_cp; yy_cp = (yy_c_buf_p); /* undo effects of setting up yytext */ *yy_cp = (yy_hold_char); if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) { /* need to shift things up to make room */ /* +2 for EOB chars. */ register int number_to_move = (yy_n_chars) + 2; register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; register char *source = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) *--dest = *--source; yy_cp += (int) (dest - source); yy_bp += (int) (dest - source); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size; if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) YY_FATAL_ERROR( "flex scanner push-back overflow" ); } *--yy_cp = (char) c; if ( c == '\n' ){ --yylineno; } (yytext_ptr) = yy_bp; (yy_hold_char) = *yy_cp; (yy_c_buf_p) = yy_cp; } #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. */ yyrestart(yyin ); /*FALLTHROUGH*/ case EOB_ACT_END_OF_FILE: { if ( yywrap( ) ) 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 yytext */ (yy_hold_char) = *++(yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n'); if ( YY_CURRENT_BUFFER_LVALUE->yy_at_bol ) yylineno++; ; return c; } #endif /* ifndef YY_NO_INPUT */ /** Immediately switch to a different input stream. * @param input_file A readable stream. * * @note This function does not reset the start condition to @c INITIAL . */ void yyrestart (FILE * input_file ) { if ( ! YY_CURRENT_BUFFER ){ yyensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin,YY_BUF_SIZE ); } yy_init_buffer(YY_CURRENT_BUFFER,input_file ); yy_load_buffer_state( ); } /** Switch to a different input buffer. * @param new_buffer The new input buffer. * */ void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) { /* TODO. We should be able to replace this entire function body * with * yypop_buffer_state(); * yypush_buffer_state(new_buffer); */ yyensure_buffer_stack (); if ( YY_CURRENT_BUFFER == new_buffer ) return; if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ *(yy_c_buf_p) = (yy_hold_char); YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } YY_CURRENT_BUFFER_LVALUE = new_buffer; yy_load_buffer_state( ); /* We don't actually know whether we did this switch during * EOF (yywrap()) processing, but the only time this flag * is looked at is after yywrap() is called, so it's safe * to go ahead and always set it. */ (yy_did_buffer_switch_on_eof) = 1; } static void yy_load_buffer_state (void) { (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; (yy_hold_char) = *(yy_c_buf_p); } /** Allocate and initialize an input buffer state. * @param file A readable stream. * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. * * @return the allocated buffer state. */ YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) { YY_BUFFER_STATE b; b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_buf_size = size; /* yy_ch_buf has to be 2 characters longer than the size given because * we need to put in 2 end-of-buffer characters. */ b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ); if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_is_our_buffer = 1; yy_init_buffer(b,file ); return b; } /** Destroy the buffer. * @param b a buffer created with yy_create_buffer() * */ void yy_delete_buffer (YY_BUFFER_STATE b ) { if ( ! b ) return; if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; if ( b->yy_is_our_buffer ) yyfree((void *) b->yy_ch_buf ); yyfree((void *) b ); } /* Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, * such as during a yyrestart() or at EOF. */ static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) { int oerrno = errno; yy_flush_buffer(b ); b->yy_input_file = file; b->yy_fill_buffer = 1; /* If b is the current buffer, then yy_init_buffer was _probably_ * called from yyrestart() or through yy_get_next_buffer. * In that case, we don't want to reset the lineno or column. */ if (b != YY_CURRENT_BUFFER){ b->yy_bs_lineno = 1; b->yy_bs_column = 0; } b->yy_is_interactive = 0; errno = oerrno; } /** Discard all buffered characters. On the next scan, YY_INPUT will be called. * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. * */ void yy_flush_buffer (YY_BUFFER_STATE b ) { if ( ! b ) return; b->yy_n_chars = 0; /* We always need two end-of-buffer characters. The first causes * a transition to the end-of-buffer state. The second causes * a jam in that state. */ b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; b->yy_buf_pos = &b->yy_ch_buf[0]; b->yy_at_bol = 1; b->yy_buffer_status = YY_BUFFER_NEW; if ( b == YY_CURRENT_BUFFER ) yy_load_buffer_state( ); } /** Pushes the new state onto the stack. The new state becomes * the current state. This function will allocate the stack * if necessary. * @param new_buffer The new state. * */ void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) { if (new_buffer == NULL) return; yyensure_buffer_stack(); /* This block is copied from yy_switch_to_buffer. */ if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ *(yy_c_buf_p) = (yy_hold_char); YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } /* Only push if top exists. Otherwise, replace top. */ if (YY_CURRENT_BUFFER) (yy_buffer_stack_top)++; YY_CURRENT_BUFFER_LVALUE = new_buffer; /* copied from yy_switch_to_buffer. */ yy_load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } /** Removes and deletes the top of the stack, if present. * The next element becomes the new top. * */ void yypop_buffer_state (void) { if (!YY_CURRENT_BUFFER) return; yy_delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; if ((yy_buffer_stack_top) > 0) --(yy_buffer_stack_top); if (YY_CURRENT_BUFFER) { yy_load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } } /* Allocates the stack if it does not exist. * Guarantees space for at least one push. */ static void yyensure_buffer_stack (void) { 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**)yyalloc (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**)yyrealloc ((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 yy_scan_buffer (char * base, yy_size_t size ) { YY_BUFFER_STATE b; if ( size < 2 || base[size-2] != YY_END_OF_BUFFER_CHAR || base[size-1] != YY_END_OF_BUFFER_CHAR ) /* They forgot to leave room for the EOB's. */ return 0; b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); b->yy_buf_size = 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; yy_switch_to_buffer(b ); return b; } /** Setup the input buffer state to scan a string. The next call to yylex() will * scan from a @e copy of @a str. * @param yystr a NUL-terminated string to scan * * @return the newly allocated buffer state object. * @note If you want to scan bytes that may contain NUL values, then use * yy_scan_bytes() instead. */ YY_BUFFER_STATE yy_scan_string (yyconst char * yystr ) { return yy_scan_bytes(yystr,strlen(yystr) ); } /** Setup the input buffer state to scan the given bytes. The next call to yylex() will * scan from a @e copy of @a bytes. * @param 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 yy_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 *) yyalloc(n ); if ( ! buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); for ( i = 0; i < _yybytes_len; ++i ) buf[i] = yybytes[i]; buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; b = yy_scan_buffer(buf,n ); if ( ! b ) YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); /* It's okay to grow etc. this buffer, and we should throw it * away when we're done. */ b->yy_is_our_buffer = 1; return b; } #ifndef YY_EXIT_FAILURE #define YY_EXIT_FAILURE 2 #endif static void 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 yytext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ yytext[yyleng] = (yy_hold_char); \ (yy_c_buf_p) = yytext + yyless_macro_arg; \ (yy_hold_char) = *(yy_c_buf_p); \ *(yy_c_buf_p) = '\0'; \ yyleng = yyless_macro_arg; \ } \ while ( 0 ) /* Accessor methods (get/set functions) to struct members. */ /** Get the current line number. * */ int yyget_lineno (void) { return yylineno; } /** Get the input stream. * */ FILE *yyget_in (void) { return yyin; } /** Get the output stream. * */ FILE *yyget_out (void) { return yyout; } /** Get the length of the current token. * */ int yyget_leng (void) { return yyleng; } /** Get the current token. * */ char *yyget_text (void) { return yytext; } /** Set the current line number. * @param line_number * */ void yyset_lineno (int line_number ) { yylineno = line_number; } /** Set the input stream. This does not discard the current * input buffer. * @param in_str A readable stream. * * @see yy_switch_to_buffer */ void yyset_in (FILE * in_str ) { yyin = in_str ; } void yyset_out (FILE * out_str ) { yyout = out_str ; } int yyget_debug (void) { return yy_flex_debug; } void yyset_debug (int bdebug ) { yy_flex_debug = bdebug ; } static int yy_init_globals (void) { /* Initialization is the same as for the non-reentrant scanner. * This function is called from yylex_destroy(), so don't allocate here. */ /* We do not touch yylineno unless the option is enabled. */ yylineno = 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 yyin = stdin; yyout = stdout; #else yyin = (FILE *) 0; yyout = (FILE *) 0; #endif /* For future reference: Set errno on error, since we are called by * yylex_init() */ return 0; } /* yylex_destroy is for both reentrant and non-reentrant scanners. */ int yylex_destroy (void) { /* Pop the buffer stack, destroying each element. */ while(YY_CURRENT_BUFFER){ yy_delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; yypop_buffer_state(); } /* Destroy the stack itself. */ yyfree((yy_buffer_stack) ); (yy_buffer_stack) = NULL; /* Reset the globals. This is important in a non-reentrant scanner so the next time * yylex() is called, initialization will occur. */ yy_init_globals( ); return 0; } /* * Internal utility routines. */ #ifndef yytext_ptr static void yy_flex_strncpy (char* s1, 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 *yyalloc (yy_size_t size ) { return (void *) malloc( size ); } void *yyrealloc (void * ptr, yy_size_t size ) { /* The cast to (char *) in the following accommodates both * implementations that use char* generic pointers, and those * that use void* generic pointers. It works with the latter * because both ANSI C and C++ allow castless assignment from * any pointer type to void*, and deal with argument conversions * as though doing an assignment. */ return (void *) realloc( (char *) ptr, size ); } void yyfree (void * ptr ) { free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ } #define YYTABLES_NAME "yytables" #line 200 "levcomp.lpp" int yywrap() { clean(); flush_free_queue(0); return 1; }