#ifdef HAVE_CONFIG_H #include #endif #ifdef WIN32 #include #endif #line 10 "turtle_lexer.c" #line 12 "turtle_lexer.c" #define YY_INT_ALIGNED short int /* A lexical scanner generated by flex */ #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 5 #define YY_FLEX_SUBMINOR_VERSION 35 #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 defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, * if you want the limit (max/min) macros for int types. */ #ifndef __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS 1 #endif #include typedef int8_t flex_int8_t; typedef uint8_t flex_uint8_t; typedef int16_t flex_int16_t; typedef uint16_t flex_uint16_t; typedef int32_t flex_int32_t; typedef uint32_t flex_uint32_t; #else typedef signed char flex_int8_t; typedef short int flex_int16_t; typedef int flex_int32_t; typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; /* Limits of integral types. */ #ifndef INT8_MIN #define INT8_MIN (-128) #endif #ifndef INT16_MIN #define INT16_MIN (-32767-1) #endif #ifndef INT32_MIN #define INT32_MIN (-2147483647-1) #endif #ifndef INT8_MAX #define INT8_MAX (127) #endif #ifndef INT16_MAX #define INT16_MAX (32767) #endif #ifndef INT32_MAX #define INT32_MAX (2147483647) #endif #ifndef UINT8_MAX #define UINT8_MAX (255U) #endif #ifndef UINT16_MAX #define UINT16_MAX (65535U) #endif #ifndef UINT32_MAX #define UINT32_MAX (4294967295U) #endif #endif /* ! C99 */ #endif /* ! FLEXINT_H */ #ifdef __cplusplus /* The "const" storage-class-modifier is valid. */ #define YY_USE_CONST #else /* ! __cplusplus */ /* C99 requires __STDC__ to be defined as 1. */ #if defined (__STDC__) #define YY_USE_CONST #endif /* defined (__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) /* An opaque pointer. */ #ifndef YY_TYPEDEF_YY_SCANNER_T #define YY_TYPEDEF_YY_SCANNER_T typedef void* yyscan_t; #endif /* For convenience, these vars (plus the bison vars far below) are macros in the reentrant scanner. */ #define yyin yyg->yyin_r #define yyout yyg->yyout_r #define yyextra yyg->yyextra_r #define yyleng yyg->yyleng_r #define yytext yyg->yytext_r #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) #define yy_flex_debug yyg->yy_flex_debug_r /* 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 yyg->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 ((yyg->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 turtle_lexer_restart(yyin ,yyscanner ) #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 #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 #define YY_LESS_LINENO(n) /* 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 = yyg->yy_hold_char; \ YY_RESTORE_YY_MORE_OFFSET \ yyg->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, yyg->yytext_ptr , yyscanner ) #ifndef YY_TYPEDEF_YY_SIZE_T #define YY_TYPEDEF_YY_SIZE_T typedef size_t 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 turtle_lexer_restart()), 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 */ /* 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 ( yyg->yy_buffer_stack \ ? yyg->yy_buffer_stack[yyg->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 yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] void turtle_lexer_restart (FILE *input_file ,yyscan_t yyscanner ); void turtle_lexer__switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner ); YY_BUFFER_STATE turtle_lexer__create_buffer (FILE *file,int size ,yyscan_t yyscanner ); void turtle_lexer__delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner ); void turtle_lexer__flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner ); void turtle_lexer_push_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner ); void turtle_lexer_pop_buffer_state (yyscan_t yyscanner ); static void turtle_lexer_ensure_buffer_stack (yyscan_t yyscanner ); static void turtle_lexer__load_buffer_state (yyscan_t yyscanner ); static void turtle_lexer__init_buffer (YY_BUFFER_STATE b,FILE *file ,yyscan_t yyscanner ); #define YY_FLUSH_BUFFER turtle_lexer__flush_buffer(YY_CURRENT_BUFFER ,yyscanner) YY_BUFFER_STATE turtle_lexer__scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner ); YY_BUFFER_STATE turtle_lexer__scan_string (yyconst char *yy_str ,yyscan_t yyscanner ); YY_BUFFER_STATE turtle_lexer__scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner ); void *turtle_lexer_alloc (yy_size_t ,yyscan_t yyscanner ); void *turtle_lexer_realloc (void *,yy_size_t ,yyscan_t yyscanner ); void turtle_lexer_free (void * ,yyscan_t yyscanner ); #define yy_new_buffer turtle_lexer__create_buffer #define yy_set_interactive(is_interactive) \ { \ if ( ! YY_CURRENT_BUFFER ){ \ turtle_lexer_ensure_buffer_stack (yyscanner); \ YY_CURRENT_BUFFER_LVALUE = \ turtle_lexer__create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ } #define yy_set_bol(at_bol) \ { \ if ( ! YY_CURRENT_BUFFER ){\ turtle_lexer_ensure_buffer_stack (yyscanner); \ YY_CURRENT_BUFFER_LVALUE = \ turtle_lexer__create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \ } \ 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; typedef int yy_state_type; #define yytext_ptr yytext_r static yy_state_type yy_get_previous_state (yyscan_t yyscanner ); static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,yyscan_t yyscanner); static int yy_get_next_buffer (yyscan_t yyscanner ); /* Done after the current pattern has been matched and before the * corresponding action - sets up yytext. */ #define YY_DO_BEFORE_ACTION \ yyg->yytext_ptr = yy_bp; \ yyleng = (size_t) (yy_cp - yy_bp); \ yyg->yy_hold_char = *yy_cp; \ *yy_cp = '\0'; \ yyg->yy_c_buf_p = yy_cp; #define YY_NUM_RULES 38 #define YY_END_OF_BUFFER 39 /* 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[627] = { 0, 0, 0, 0, 0, 23, 23, 39, 37, 2, 1, 1, 37, 36, 13, 14, 37, 5, 4, 28, 25, 6, 37, 11, 34, 7, 37, 8, 37, 37, 3, 34, 34, 15, 16, 32, 29, 31, 32, 23, 23, 23, 23, 2, 1, 0, 20, 0, 36, 35, 35, 0, 28, 26, 26, 0, 17, 25, 0, 33, 0, 0, 34, 0, 25, 0, 12, 0, 34, 34, 29, 0, 0, 30, 23, 23, 23, 0, 23, 23, 23, 23, 20, 21, 0, 26, 0, 0, 27, 25, 0, 0, 0, 24, 34, 34, 22, 23, 0, 23, 23, 0, 23, 0, 27, 0, 27, 0, 0, 24, 0, 34, 18, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 23, 23, 23, 10, 0, 19, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 0, 23, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 0, 23, 0, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 0, 23, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 9, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 0, 23, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 0, 23, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 0, 23, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 0, 23, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 0, 23, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 0, 23, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 0, 23, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 0, 23, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 0, 23, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 0, 23, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 0, 23, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 0, 23, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 0, 23, 23, 0, 23, 23, 23, 23, 23, 23, 0, 23, 23, 0, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 0 } ; static yyconst flex_int32_t yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 2, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 5, 6, 1, 1, 1, 1, 7, 8, 1, 9, 10, 11, 12, 1, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 15, 16, 1, 17, 1, 18, 19, 19, 19, 19, 20, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 21, 19, 19, 19, 19, 19, 22, 23, 24, 25, 26, 1, 27, 28, 19, 19, 29, 30, 19, 19, 31, 19, 19, 32, 19, 19, 19, 33, 19, 34, 35, 36, 37, 19, 19, 38, 19, 19, 39, 1, 40, 1, 1, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41 } ; static yyconst flex_int32_t yy_meta[42] = { 0, 1, 1, 2, 3, 4, 1, 1, 1, 1, 1, 5, 6, 6, 7, 1, 1, 1, 1, 8, 8, 8, 1, 8, 1, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 1, 8 } ; static yyconst flex_int16_t yy_base[1034] = { 0, 0, 0, 41, 0, 80, 81, 525, 5562, 515, 5562, 501, 82, 85, 5562, 5562, 78, 5562, 488, 80, 489, 5562, 482, 66, 83, 5562, 84, 5562, 468, 475, 96, 99, 80, 5562, 5562, 5562, 479, 5562, 103, 98, 109, 473, 113, 470, 5562, 97, 465, 0, 124, 5562, 464, 447, 118, 122, 126, 132, 5562, 447, 433, 5562, 418, 404, 408, 111, 420, 140, 5562, 0, 117, 121, 428, 145, 148, 5562, 130, 153, 158, 421, 161, 162, 165, 166, 5562, 5562, 164, 167, 181, 410, 396, 394, 392, 366, 357, 371, 139, 164, 5562, 194, 0, 195, 198, 0, 201, 366, 363, 357, 355, 326, 321, 331, 322, 178, 302, 205, 0, 206, 210, 231, 232, 236, 237, 0, 241, 242, 245, 253, 258, 5562, 291, 288, 268, 0, 272, 277, 280, 281, 284, 289, 0, 293, 294, 0, 303, 207, 220, 300, 226, 308, 315, 322, 330, 285, 336, 339, 276, 343, 234, 344, 0, 351, 355, 358, 366, 372, 379, 0, 387, 388, 0, 391, 394, 0, 395, 402, 410, 416, 417, 424, 0, 431, 438, 439, 443, 446, 452, 453, 460, 468, 474, 479, 482, 483, 489, 493, 504, 505, 510, 515, 518, 5562, 519, 0, 526, 532, 541, 545, 548, 551, 0, 554, 555, 0, 562, 567, 0, 581, 584, 589, 590, 593, 598, 0, 603, 612, 620, 625, 626, 629, 0, 633, 634, 642, 648, 655, 656, 0, 661, 669, 0, 670, 678, 264, 683, 691, 692, 700, 705, 706, 263, 713, 719, 254, 722, 728, 0, 735, 741, 744, 750, 757, 758, 0, 763, 771, 0, 772, 780, 0, 785, 793, 794, 802, 807, 808, 0, 815, 821, 824, 830, 837, 838, 0, 843, 851, 852, 860, 865, 866, 0, 873, 879, 0, 882, 888, 248, 895, 901, 904, 910, 917, 918, 223, 923, 931, 217, 932, 940, 0, 945, 953, 954, 962, 967, 968, 0, 975, 981, 0, 984, 990, 0, 997, 1003, 1006, 1012, 1019, 1020, 0, 1025, 1033, 1034, 1042, 1047, 1048, 1055, 1061, 1064, 1069, 1070, 1078, 1083, 1091, 1092, 1100, 1105, 1106, 1113, 1119, 1122, 247, 0, 1112, 296, 1127, 1134, 1138, 1141, 0, 1149, 1155, 0, 1160, 1164, 0, 1170, 1171, 1177, 1185, 1193, 1196, 0, 1200, 1206, 1207, 1210, 1215, 1221, 0, 1222, 1229, 1237, 1243, 1246, 1250, 0, 1251, 1258, 0, 1262, 1272, 216, 1273, 1279, 1284, 1288, 1295, 1298, 211, 1301, 1309, 180, 1310, 1314, 0, 1323, 1331, 1336, 1340, 1345, 1346, 0, 1350, 1353, 0, 1359, 1362, 0, 1367, 1376, 1386, 1389, 1390, 1395, 0, 1398, 1402, 1411, 1417, 1424, 305, 1425, 1418, 1428, 1439, 1440, 1447, 1453, 1461, 1462, 1466, 1470, 1475, 1476, 1483, 1489, 1492, 0, 1502, 1505, 1506, 1511, 1514, 1519, 0, 1528, 1533, 0, 1538, 1541, 0, 1547, 1550, 1555, 1564, 1569, 1574, 0, 1577, 1583, 1586, 1590, 1599, 1600, 0, 1605, 1612, 1613, 1616, 1626, 1627, 0, 1635, 1638, 0, 1641, 1642, 179, 1652, 1663, 1664, 1671, 1674, 1677, 175, 1678, 1688, 169, 1693, 1699, 1700, 1704, 1714, 1715, 1721, 1726, 1729, 327, 1730, 1734, 1740, 1751, 1756, 1757, 1762, 1765, 1773, 1779, 1784, 1787, 1792, 1798, 1801, 1809, 1814, 1820, 1823, 1828, 1831, 1837, 1842, 362, 1845, 1850, 1856, 1859, 1867, 1872, 1873, 1878, 1886, 1894, 1895, 1900, 1903, 1909, 1916, 1917, 1922, 1930, 1931, 1938, 1939, 1945, 1952, 1960, 1961, 1967, 1974, 1975, 1982, 1988, 1989, 1996, 1997, 2003, 2010, 2011, 2018, 2024, 2025, 2033, 2040, 2046, 2047, 2054, 2055, 2061, 2068, 2076, 2077, 2083, 2090, 2091, 2098, 2104, 2105, 2113, 2120, 2126, 2127, 2134, 2135, 2141, 2148, 2156, 2157, 2163, 2170, 2171, 2178, 2184, 2185, 2193, 2200, 2206, 2207, 2214, 2215, 2221, 2228, 2229, 2236, 2242, 2243, 2250, 2251, 2257, 2264, 2272, 2273, 2279, 2286, 2287, 2294, 2300, 2301, 5562, 2337, 2345, 2353, 2357, 2365, 2369, 2373, 2377, 2385, 2393, 2397, 121, 2405, 2413, 2417, 2425, 2433, 2441, 2449, 2457, 2465, 2473, 2481, 2489, 2497, 2505, 2513, 2521, 2529, 2537, 2545, 2553, 2561, 2569, 2577, 2585, 2593, 2601, 2609, 2617, 2625, 2633, 2641, 2649, 2657, 2665, 2673, 2681, 2689, 2697, 2705, 2713, 2721, 2729, 2737, 2745, 2753, 2761, 2769, 2777, 2785, 2793, 2801, 2809, 2817, 2825, 2833, 2841, 2849, 2857, 2865, 2873, 2881, 2889, 2897, 2905, 2913, 2921, 2929, 2937, 2945, 2953, 2961, 2969, 2977, 2985, 2993, 3001, 3009, 3017, 3025, 3033, 3041, 3049, 3057, 3065, 3073, 3081, 3089, 3097, 3105, 3113, 3121, 3129, 3137, 3145, 3153, 3161, 3169, 3177, 3185, 3193, 3201, 3209, 3217, 3225, 3233, 3241, 3249, 3257, 3265, 3273, 3281, 3289, 3297, 3305, 3313, 3321, 3329, 3337, 3345, 3353, 3361, 3369, 3377, 3385, 3393, 3401, 3409, 3417, 3425, 3433, 3441, 3449, 3457, 3465, 3473, 3481, 3489, 3497, 3505, 3513, 3521, 3529, 3537, 3545, 3553, 3561, 3569, 3577, 3585, 3593, 3601, 3609, 3617, 3625, 3633, 3641, 3649, 3657, 3665, 3673, 3681, 3689, 3697, 3705, 3713, 3721, 3729, 3737, 3745, 3753, 3761, 3769, 3777, 3785, 3793, 3801, 3809, 3817, 3825, 3833, 3841, 3849, 3857, 3865, 3873, 3881, 3889, 3897, 3905, 3913, 3921, 3929, 3937, 3945, 3953, 3961, 3969, 3977, 3985, 3993, 4001, 4009, 4017, 4025, 4033, 4041, 4049, 4057, 4065, 4073, 4081, 4089, 4097, 4105, 4113, 4121, 4129, 4137, 4145, 4153, 4161, 4169, 4177, 4185, 4193, 4201, 4209, 4217, 4225, 4233, 4241, 4249, 4257, 4265, 4273, 4281, 4289, 4297, 4305, 4313, 4321, 4329, 4337, 4345, 4353, 4361, 4369, 4377, 4385, 4393, 4401, 4409, 4417, 4425, 4433, 4441, 4449, 4457, 4465, 4473, 4481, 4489, 4497, 4505, 4513, 4521, 4529, 4537, 4545, 4553, 4561, 4569, 4577, 4585, 4593, 4601, 4609, 4617, 4625, 4633, 4641, 4649, 4657, 4665, 4673, 4681, 4689, 4697, 4705, 4713, 4721, 4729, 4737, 4745, 4753, 4761, 4769, 4777, 4785, 4793, 4801, 4809, 4817, 4825, 4833, 4841, 4849, 4857, 4865, 4873, 4881, 4889, 4897, 4905, 4913, 4921, 4929, 4937, 4945, 4953, 4961, 4969, 4977, 4985, 4993, 5001, 5009, 5017, 5025, 5033, 5041, 5049, 5057, 5065, 5073, 5081, 5089, 5097, 5105, 5113, 5121, 5129, 5137, 5145, 5153, 5161, 5169, 5177, 5185, 5193, 5201, 5209, 5217, 5225, 5233, 5241, 5249, 5257, 5265, 5273, 5281, 5289, 5297, 5305, 5313, 5321, 5329, 5337, 5345, 5353, 5361, 5369, 5377, 5385, 5393, 5401, 5409, 5417, 5425, 5433, 5441, 5449, 5457, 5465, 5473, 5481, 5489, 5497, 5505, 5513, 5521, 5529, 5537, 5545, 5553 } ; static yyconst flex_int16_t yy_def[1034] = { 0, 626, 1, 626, 3, 627, 627, 626, 626, 626, 626, 626, 628, 629, 626, 626, 626, 626, 626, 626, 630, 626, 631, 626, 632, 626, 633, 626, 626, 626, 632, 632, 31, 626, 626, 626, 626, 626, 634, 635, 635, 626, 636, 626, 626, 628, 626, 628, 629, 626, 626, 626, 626, 626, 626, 626, 626, 637, 631, 626, 626, 626, 31, 633, 630, 633, 626, 638, 31, 31, 626, 634, 634, 626, 635, 635, 636, 626, 635, 639, 636, 640, 626, 626, 626, 626, 626, 626, 626, 637, 637, 626, 626, 641, 31, 31, 626, 642, 643, 644, 645, 646, 647, 626, 626, 626, 626, 626, 626, 641, 641, 31, 31, 648, 649, 650, 648, 651, 650, 652, 653, 654, 655, 653, 656, 655, 657, 626, 626, 31, 658, 659, 660, 658, 661, 660, 662, 663, 664, 665, 666, 667, 668, 636, 635, 669, 636, 670, 669, 671, 644, 642, 672, 647, 645, 673, 626, 674, 675, 676, 674, 677, 676, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 685, 688, 687, 689, 690, 691, 692, 690, 693, 692, 694, 695, 636, 696, 642, 644, 645, 647, 697, 698, 699, 700, 701, 702, 703, 704, 626, 705, 706, 707, 705, 708, 707, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 716, 719, 718, 720, 721, 722, 723, 721, 724, 723, 725, 726, 727, 728, 726, 729, 728, 730, 731, 732, 733, 734, 735, 736, 707, 705, 737, 707, 738, 737, 739, 712, 710, 740, 715, 713, 741, 742, 743, 744, 742, 745, 744, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 753, 756, 755, 757, 758, 759, 760, 758, 761, 760, 762, 763, 764, 765, 763, 766, 765, 767, 768, 769, 770, 771, 772, 773, 744, 742, 774, 744, 775, 774, 776, 749, 747, 777, 752, 750, 778, 779, 780, 781, 779, 782, 781, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 790, 793, 792, 794, 795, 796, 797, 795, 798, 797, 799, 742, 800, 744, 801, 747, 749, 750, 752, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 810, 813, 812, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 821, 824, 823, 825, 826, 827, 828, 826, 829, 828, 830, 831, 832, 833, 831, 834, 833, 835, 836, 837, 838, 839, 840, 841, 812, 810, 842, 812, 843, 842, 844, 817, 815, 845, 820, 818, 846, 847, 848, 849, 847, 850, 849, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 858, 861, 860, 862, 863, 864, 865, 863, 866, 865, 867, 810, 868, 812, 869, 815, 817, 818, 820, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 878, 881, 880, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 889, 892, 891, 893, 894, 895, 896, 894, 897, 896, 898, 899, 900, 901, 899, 902, 901, 903, 904, 905, 906, 907, 908, 909, 880, 878, 910, 880, 911, 910, 912, 885, 883, 913, 888, 886, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 923, 949, 950, 927, 951, 929, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 962, 984, 985, 986, 965, 987, 967, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1022, 997, 1023, 1024, 1001, 1025, 1003, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 0, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626 } ; static yyconst flex_int16_t yy_nxt[5604] = { 0, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 18, 19, 20, 21, 22, 8, 23, 24, 24, 24, 25, 26, 27, 28, 29, 30, 24, 24, 31, 24, 24, 24, 24, 24, 32, 24, 24, 33, 34, 26, 35, 36, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 37, 35, 35, 35, 35, 38, 38, 38, 35, 38, 35, 35, 35, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 35, 35, 38, 40, 40, 41, 41, 46, 49, 50, 51, 52, 54, 52, 60, 63, 63, 64, 64, 61, 55, 75, 82, 42, 42, 47, 65, 62, 63, 55, 64, 63, 75, 64, 69, 72, 78, 73, 74, 65, 47, 76, 65, 63, 65, 626, 68, 49, 50, 93, 54, 52, 76, 75, 79, 53, 80, 65, 55, 85, 65, 87, 84, 87, 62, 88, 86, 55, 62, 94, 81, 84, 63, 76, 64, 86, 75, 72, 95, 73, 72, 78, 626, 74, 75, 75, 62, 98, 78, 75, 74, 101, 626, 103, 111, 103, 76, 104, 626, 79, 85, 80, 626, 626, 76, 99, 79, 86, 80, 102, 105, 62, 105, 112, 106, 81, 86, 75, 78, 114, 113, 75, 81, 121, 78, 62, 120, 129, 75, 78, 131, 130, 74, 75, 626, 131, 117, 115, 118, 626, 626, 122, 124, 626, 125, 74, 626, 134, 132, 135, 80, 74, 119, 132, 75, 78, 138, 130, 126, 75, 75, 141, 144, 136, 78, 75, 143, 144, 75, 80, 151, 626, 74, 134, 139, 135, 78, 626, 143, 142, 145, 75, 147, 154, 148, 145, 626, 626, 152, 136, 80, 75, 199, 158, 147, 78, 148, 157, 149, 626, 75, 155, 158, 75, 78, 165, 157, 75, 626, 168, 149, 159, 75, 161, 171, 162, 78, 75, 170, 178, 159, 74, 161, 166, 162, 75, 78, 169, 177, 163, 74, 75, 172, 97, 174, 62, 175, 179, 163, 80, 75, 184, 156, 185, 181, 75, 182, 100, 80, 62, 176, 188, 74, 75, 110, 113, 184, 186, 185, 78, 183, 116, 75, 110, 120, 190, 78, 75, 123, 201, 80, 128, 186, 118, 78, 127, 200, 192, 75, 193, 201, 75, 125, 208, 196, 75, 197, 202, 106, 78, 106, 200, 204, 194, 205, 75, 104, 211, 202, 104, 198, 209, 75, 110, 214, 76, 108, 204, 206, 205, 78, 75, 213, 221, 78, 212, 220, 75, 78, 228, 227, 107, 215, 206, 90, 75, 90, 228, 217, 88, 218, 222, 224, 75, 225, 235, 231, 229, 232, 78, 75, 227, 238, 88, 219, 229, 96, 75, 226, 241, 70, 626, 233, 236, 78, 62, 240, 231, 92, 232, 239, 75, 75, 241, 248, 91, 78, 242, 240, 75, 59, 251, 244, 233, 245, 75, 78, 98, 74, 90, 53, 242, 249, 75, 244, 101, 245, 49, 246, 252, 83, 75, 43, 114, 79, 99, 80, 78, 77, 113, 246, 70, 75, 102, 121, 78, 75, 120, 131, 67, 81, 115, 75, 66, 138, 117, 78, 118, 130, 59, 56, 53, 122, 124, 44, 125, 132, 75, 75, 141, 144, 119, 139, 75, 134, 151, 135, 43, 78, 126, 143, 75, 75, 154, 254, 626, 626, 142, 145, 78, 136, 253, 626, 152, 626, 75, 147, 254, 148, 626, 626, 155, 255, 626, 75, 626, 261, 257, 78, 258, 253, 75, 149, 264, 75, 255, 267, 78, 75, 266, 274, 626, 626, 259, 262, 78, 257, 273, 258, 626, 75, 265, 281, 626, 268, 270, 626, 271, 275, 626, 626, 626, 259, 277, 78, 278, 280, 75, 626, 281, 282, 272, 75, 78, 288, 280, 75, 626, 291, 279, 626, 75, 284, 294, 285, 626, 78, 282, 293, 626, 626, 284, 289, 285, 626, 75, 292, 294, 286, 626, 626, 295, 626, 75, 297, 301, 298, 286, 78, 75, 293, 304, 75, 626, 307, 295, 78, 75, 306, 307, 299, 626, 626, 302, 626, 75, 297, 314, 298, 305, 626, 78, 308, 306, 310, 626, 311, 308, 75, 75, 317, 320, 299, 626, 78, 315, 319, 626, 626, 310, 312, 311, 75, 78, 327, 326, 626, 626, 318, 321, 626, 75, 323, 253, 324, 312, 78, 626, 256, 626, 626, 330, 328, 331, 75, 75, 253, 260, 325, 626, 626, 258, 626, 78, 334, 256, 335, 332, 75, 75, 263, 266, 626, 626, 258, 338, 78, 626, 269, 626, 336, 334, 75, 335, 273, 78, 626, 276, 340, 271, 626, 75, 626, 350, 342, 626, 343, 336, 78, 626, 349, 626, 278, 346, 75, 347, 350, 75, 626, 357, 344, 351, 626, 78, 626, 349, 353, 626, 354, 348, 75, 75, 360, 363, 351, 626, 78, 358, 362, 626, 626, 353, 355, 354, 75, 78, 370, 369, 626, 626, 361, 364, 626, 75, 366, 377, 367, 355, 78, 626, 376, 626, 626, 373, 371, 374, 75, 75, 377, 384, 368, 626, 626, 378, 626, 78, 380, 376, 381, 375, 75, 75, 387, 390, 626, 626, 378, 385, 78, 626, 389, 626, 382, 380, 75, 381, 390, 75, 626, 397, 388, 391, 626, 78, 626, 389, 393, 626, 394, 382, 75, 75, 400, 403, 391, 626, 78, 398, 402, 626, 626, 393, 395, 394, 75, 75, 403, 410, 626, 626, 401, 404, 626, 78, 406, 402, 407, 395, 75, 75, 413, 416, 626, 626, 404, 411, 78, 626, 415, 626, 408, 406, 75, 407, 423, 78, 626, 422, 414, 417, 626, 75, 626, 349, 419, 626, 420, 408, 78, 626, 352, 626, 424, 426, 75, 427, 349, 75, 626, 356, 421, 354, 626, 78, 626, 352, 430, 626, 431, 428, 75, 75, 359, 362, 354, 626, 78, 434, 365, 626, 626, 430, 432, 431, 75, 78, 369, 372, 626, 626, 436, 367, 626, 75, 438, 446, 439, 432, 78, 626, 445, 626, 626, 442, 374, 443, 75, 75, 446, 453, 440, 626, 626, 447, 626, 78, 449, 445, 450, 444, 75, 75, 456, 459, 626, 626, 447, 454, 78, 626, 458, 626, 451, 449, 75, 450, 466, 78, 626, 465, 457, 460, 626, 75, 626, 473, 462, 626, 463, 451, 78, 626, 472, 626, 467, 469, 75, 470, 473, 75, 626, 480, 464, 474, 626, 78, 626, 472, 476, 626, 477, 471, 75, 75, 483, 486, 474, 626, 78, 481, 485, 626, 626, 476, 478, 477, 75, 75, 486, 493, 626, 626, 484, 487, 626, 78, 489, 485, 490, 478, 75, 75, 496, 350, 626, 626, 487, 494, 75, 626, 357, 626, 491, 489, 78, 490, 349, 75, 626, 360, 497, 351, 75, 78, 363, 362, 626, 626, 358, 491, 626, 75, 353, 370, 354, 626, 78, 361, 369, 626, 626, 366, 364, 367, 75, 75, 377, 384, 355, 626, 626, 371, 626, 78, 373, 376, 374, 368, 75, 75, 387, 390, 626, 626, 378, 385, 75, 75, 397, 626, 375, 380, 78, 381, 389, 75, 626, 400, 388, 391, 75, 626, 97, 184, 626, 185, 398, 382, 626, 75, 393, 75, 394, 100, 75, 401, 113, 626, 626, 186, 188, 626, 78, 626, 116, 184, 395, 185, 75, 626, 120, 190, 626, 78, 118, 123, 626, 75, 626, 130, 192, 186, 193, 78, 75, 133, 130, 626, 125, 626, 75, 196, 137, 197, 626, 626, 194, 135, 78, 626, 133, 499, 626, 500, 135, 626, 75, 198, 140, 75, 503, 143, 626, 78, 626, 146, 499, 501, 500, 75, 75, 143, 150, 78, 626, 146, 505, 626, 75, 148, 153, 507, 501, 508, 75, 78, 157, 160, 626, 148, 511, 507, 75, 508, 157, 626, 626, 509, 513, 626, 75, 626, 164, 515, 162, 516, 78, 509, 160, 75, 626, 167, 162, 75, 78, 170, 173, 626, 626, 517, 519, 75, 626, 177, 515, 78, 516, 180, 626, 521, 626, 626, 523, 175, 524, 75, 78, 75, 78, 626, 517, 182, 75, 527, 75, 528, 626, 75, 525, 187, 626, 78, 626, 78, 531, 185, 532, 626, 75, 529, 189, 75, 185, 116, 78, 626, 191, 535, 626, 531, 533, 532, 75, 78, 123, 195, 626, 75, 537, 200, 626, 193, 539, 626, 540, 533, 78, 626, 203, 626, 626, 543, 197, 544, 75, 626, 200, 205, 541, 75, 626, 207, 626, 78, 547, 203, 548, 545, 75, 75, 210, 213, 626, 78, 205, 216, 75, 626, 220, 551, 549, 547, 78, 548, 223, 75, 626, 227, 553, 218, 78, 555, 230, 556, 626, 626, 225, 549, 626, 75, 559, 227, 560, 626, 626, 232, 626, 557, 563, 75, 564, 234, 78, 75, 230, 237, 561, 626, 75, 232, 240, 78, 626, 243, 565, 75, 626, 240, 626, 567, 563, 626, 564, 569, 75, 626, 247, 626, 245, 571, 78, 572, 243, 75, 626, 245, 565, 75, 75, 250, 97, 75, 626, 100, 575, 573, 626, 626, 571, 184, 572, 185, 75, 78, 113, 116, 626, 577, 188, 626, 75, 190, 120, 626, 573, 186, 78, 626, 123, 626, 626, 192, 118, 193, 75, 75, 130, 137, 626, 78, 125, 133, 626, 75, 196, 140, 197, 194, 75, 75, 143, 150, 626, 626, 135, 503, 78, 499, 146, 500, 198, 626, 75, 505, 153, 75, 626, 253, 148, 511, 626, 626, 626, 501, 507, 78, 508, 256, 75, 75, 253, 260, 513, 626, 78, 258, 256, 75, 626, 263, 509, 626, 75, 334, 266, 335, 626, 626, 258, 338, 626, 78, 334, 269, 335, 626, 75, 340, 273, 336, 626, 78, 271, 276, 75, 626, 280, 626, 336, 342, 78, 343, 283, 75, 626, 280, 278, 626, 75, 346, 287, 347, 626, 626, 285, 344, 626, 78, 579, 283, 580, 626, 75, 285, 290, 348, 626, 75, 583, 293, 78, 626, 296, 626, 581, 579, 75, 580, 293, 75, 626, 300, 585, 78, 626, 296, 626, 298, 587, 626, 588, 581, 75, 75, 303, 306, 298, 626, 78, 591, 309, 587, 626, 588, 589, 75, 75, 306, 313, 78, 626, 309, 593, 311, 626, 626, 595, 589, 596, 75, 75, 316, 319, 626, 626, 311, 599, 595, 78, 596, 322, 75, 597, 326, 78, 75, 329, 256, 626, 601, 324, 626, 626, 597, 626, 78, 603, 333, 604, 626, 626, 331, 607, 626, 608, 335, 75, 75, 256, 337, 626, 626, 605, 611, 78, 612, 333, 75, 609, 339, 75, 78, 269, 341, 626, 626, 335, 615, 626, 613, 626, 75, 611, 276, 612, 626, 78, 617, 345, 619, 343, 620, 75, 75, 158, 165, 626, 78, 613, 157, 626, 347, 626, 626, 623, 621, 624, 75, 75, 168, 171, 626, 159, 166, 78, 161, 170, 162, 626, 75, 625, 178, 78, 75, 177, 97, 626, 169, 172, 75, 626, 163, 174, 75, 175, 100, 626, 626, 626, 179, 181, 626, 182, 188, 75, 184, 113, 185, 176, 78, 75, 116, 120, 190, 626, 78, 183, 123, 75, 626, 201, 186, 626, 626, 118, 626, 75, 192, 208, 193, 125, 626, 78, 196, 200, 197, 626, 75, 202, 211, 75, 626, 214, 194, 626, 78, 209, 213, 626, 198, 204, 75, 205, 221, 78, 626, 220, 212, 626, 626, 215, 626, 75, 217, 228, 218, 206, 75, 626, 235, 626, 222, 224, 78, 225, 227, 75, 626, 238, 219, 626, 75, 229, 241, 75, 626, 248, 236, 226, 626, 78, 231, 240, 232, 626, 75, 239, 251, 75, 626, 98, 242, 626, 78, 249, 74, 626, 233, 244, 75, 245, 101, 75, 626, 114, 252, 626, 626, 99, 626, 78, 79, 113, 80, 246, 75, 78, 121, 120, 102, 626, 75, 115, 131, 626, 626, 626, 81, 117, 75, 118, 138, 626, 626, 124, 122, 125, 78, 75, 130, 141, 132, 626, 75, 119, 144, 75, 626, 151, 139, 126, 626, 78, 626, 143, 134, 626, 135, 142, 75, 75, 154, 254, 145, 626, 75, 152, 261, 626, 626, 147, 136, 148, 78, 75, 253, 264, 626, 626, 155, 255, 75, 78, 267, 266, 262, 149, 626, 75, 626, 274, 257, 626, 258, 265, 78, 626, 273, 626, 626, 270, 268, 271, 75, 75, 281, 288, 259, 275, 626, 78, 626, 280, 277, 626, 278, 272, 75, 75, 291, 294, 626, 626, 282, 289, 75, 626, 301, 284, 279, 285, 78, 75, 293, 304, 626, 626, 292, 295, 75, 75, 307, 314, 626, 286, 302, 78, 626, 306, 297, 626, 298, 305, 75, 75, 317, 320, 626, 626, 308, 315, 78, 626, 319, 310, 299, 311, 75, 78, 327, 326, 626, 626, 318, 321, 626, 75, 626, 253, 323, 312, 324, 626, 75, 626, 260, 330, 328, 331, 78, 75, 256, 263, 626, 626, 325, 258, 75, 78, 266, 269, 626, 332, 338, 75, 626, 273, 334, 626, 335, 340, 78, 626, 276, 626, 626, 342, 271, 343, 75, 75, 403, 410, 336, 278, 626, 78, 626, 402, 346, 626, 347, 344, 75, 75, 413, 416, 626, 626, 404, 411, 78, 626, 415, 406, 348, 407, 75, 78, 423, 422, 626, 626, 414, 417, 626, 75, 626, 349, 419, 408, 420, 626, 75, 626, 356, 426, 424, 427, 78, 75, 352, 359, 626, 626, 421, 354, 75, 78, 362, 365, 626, 428, 434, 75, 626, 369, 430, 626, 431, 436, 78, 626, 372, 626, 626, 438, 367, 439, 75, 75, 446, 453, 432, 374, 626, 78, 626, 445, 442, 626, 443, 440, 75, 75, 456, 459, 626, 626, 447, 454, 78, 626, 458, 449, 444, 450, 75, 78, 466, 465, 626, 626, 457, 460, 626, 75, 626, 473, 462, 451, 463, 626, 75, 626, 480, 469, 467, 470, 78, 75, 472, 483, 626, 626, 464, 474, 75, 75, 486, 493, 626, 471, 481, 78, 626, 485, 476, 626, 477, 484, 75, 75, 496, 350, 626, 626, 487, 494, 75, 626, 357, 489, 478, 490, 78, 75, 349, 360, 626, 626, 497, 351, 75, 78, 363, 362, 626, 491, 358, 75, 626, 370, 353, 626, 354, 361, 78, 626, 369, 626, 626, 366, 364, 367, 75, 75, 377, 384, 355, 371, 626, 78, 626, 376, 373, 626, 374, 368, 75, 75, 387, 390, 626, 626, 378, 385, 75, 626, 397, 380, 375, 381, 78, 75, 389, 400, 626, 626, 388, 391, 626, 626, 626, 626, 626, 382, 398, 626, 626, 626, 393, 626, 394, 401, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 395, 39, 39, 39, 39, 39, 39, 39, 39, 45, 626, 626, 45, 45, 45, 45, 45, 48, 48, 48, 48, 48, 48, 48, 48, 57, 626, 626, 57, 58, 58, 58, 58, 58, 58, 58, 58, 62, 62, 62, 62, 65, 65, 65, 65, 71, 71, 71, 71, 74, 74, 74, 626, 74, 74, 74, 74, 75, 75, 75, 75, 75, 75, 75, 75, 89, 89, 626, 89, 97, 97, 97, 97, 97, 97, 97, 97, 100, 100, 100, 100, 100, 100, 100, 100, 109, 109, 626, 109, 113, 113, 113, 113, 113, 113, 113, 113, 114, 626, 114, 114, 114, 114, 114, 114, 116, 116, 116, 116, 116, 116, 116, 116, 120, 120, 120, 120, 120, 120, 120, 120, 121, 626, 121, 121, 121, 121, 121, 121, 123, 123, 123, 123, 123, 123, 123, 123, 130, 130, 130, 130, 130, 130, 130, 130, 131, 626, 131, 131, 131, 131, 131, 131, 133, 133, 133, 133, 133, 133, 133, 133, 137, 137, 137, 137, 137, 137, 137, 137, 140, 140, 140, 140, 140, 140, 140, 140, 143, 143, 143, 143, 143, 143, 143, 143, 144, 626, 144, 144, 144, 144, 144, 144, 146, 146, 146, 146, 146, 146, 146, 146, 150, 150, 150, 150, 150, 150, 150, 150, 153, 153, 153, 153, 153, 153, 153, 153, 157, 157, 157, 157, 157, 157, 157, 157, 158, 626, 158, 158, 158, 158, 158, 158, 160, 160, 160, 160, 160, 160, 160, 160, 164, 164, 164, 164, 164, 164, 164, 164, 167, 167, 167, 167, 167, 167, 167, 167, 170, 170, 170, 170, 170, 170, 170, 170, 171, 626, 171, 171, 171, 171, 171, 171, 173, 173, 173, 173, 173, 173, 173, 173, 177, 177, 177, 177, 177, 177, 177, 177, 178, 626, 178, 178, 178, 178, 178, 178, 180, 180, 180, 180, 180, 180, 180, 180, 78, 78, 78, 78, 78, 78, 78, 78, 187, 187, 187, 187, 187, 187, 187, 187, 189, 189, 189, 189, 189, 189, 189, 189, 191, 191, 191, 191, 191, 191, 191, 191, 195, 195, 195, 195, 195, 195, 195, 195, 200, 200, 200, 200, 200, 200, 200, 200, 201, 626, 201, 201, 201, 201, 201, 201, 203, 203, 203, 203, 203, 203, 203, 203, 207, 207, 207, 207, 207, 207, 207, 207, 210, 210, 210, 210, 210, 210, 210, 210, 213, 213, 213, 213, 213, 213, 213, 213, 214, 626, 214, 214, 214, 214, 214, 214, 216, 216, 216, 216, 216, 216, 216, 216, 220, 220, 220, 220, 220, 220, 220, 220, 221, 626, 221, 221, 221, 221, 221, 221, 223, 223, 223, 223, 223, 223, 223, 223, 227, 227, 227, 227, 227, 227, 227, 227, 228, 626, 228, 228, 228, 228, 228, 228, 230, 230, 230, 230, 230, 230, 230, 230, 234, 234, 234, 234, 234, 234, 234, 234, 237, 237, 237, 237, 237, 237, 237, 237, 240, 240, 240, 240, 240, 240, 240, 240, 241, 626, 241, 241, 241, 241, 241, 241, 243, 243, 243, 243, 243, 243, 243, 243, 247, 247, 247, 247, 247, 247, 247, 247, 250, 250, 250, 250, 250, 250, 250, 250, 97, 97, 97, 97, 97, 97, 97, 97, 100, 100, 100, 100, 100, 100, 100, 100, 130, 130, 130, 130, 130, 130, 130, 130, 137, 137, 137, 137, 137, 137, 137, 137, 133, 133, 133, 133, 133, 133, 133, 133, 140, 140, 140, 140, 140, 140, 140, 140, 143, 143, 143, 143, 143, 143, 143, 143, 150, 150, 150, 150, 150, 150, 150, 150, 146, 146, 146, 146, 146, 146, 146, 146, 153, 153, 153, 153, 153, 153, 153, 153, 253, 253, 253, 253, 253, 253, 253, 253, 254, 626, 254, 254, 254, 254, 254, 254, 256, 256, 256, 256, 256, 256, 256, 256, 260, 260, 260, 260, 260, 260, 260, 260, 263, 263, 263, 263, 263, 263, 263, 263, 266, 266, 266, 266, 266, 266, 266, 266, 267, 626, 267, 267, 267, 267, 267, 267, 269, 269, 269, 269, 269, 269, 269, 269, 273, 273, 273, 273, 273, 273, 273, 273, 274, 626, 274, 274, 274, 274, 274, 274, 276, 276, 276, 276, 276, 276, 276, 276, 280, 280, 280, 280, 280, 280, 280, 280, 281, 626, 281, 281, 281, 281, 281, 281, 283, 283, 283, 283, 283, 283, 283, 283, 287, 287, 287, 287, 287, 287, 287, 287, 290, 290, 290, 290, 290, 290, 290, 290, 293, 293, 293, 293, 293, 293, 293, 293, 294, 626, 294, 294, 294, 294, 294, 294, 296, 296, 296, 296, 296, 296, 296, 296, 300, 300, 300, 300, 300, 300, 300, 300, 303, 303, 303, 303, 303, 303, 303, 303, 306, 306, 306, 306, 306, 306, 306, 306, 307, 626, 307, 307, 307, 307, 307, 307, 309, 309, 309, 309, 309, 309, 309, 309, 313, 313, 313, 313, 313, 313, 313, 313, 316, 316, 316, 316, 316, 316, 316, 316, 319, 319, 319, 319, 319, 319, 319, 319, 320, 626, 320, 320, 320, 320, 320, 320, 322, 322, 322, 322, 322, 322, 322, 322, 326, 326, 326, 326, 326, 326, 326, 326, 327, 626, 327, 327, 327, 327, 327, 327, 329, 329, 329, 329, 329, 329, 329, 329, 333, 333, 333, 333, 333, 333, 333, 333, 337, 337, 337, 337, 337, 337, 337, 337, 339, 339, 339, 339, 339, 339, 339, 339, 341, 341, 341, 341, 341, 341, 341, 341, 345, 345, 345, 345, 345, 345, 345, 345, 349, 349, 349, 349, 349, 349, 349, 349, 350, 626, 350, 350, 350, 350, 350, 350, 352, 352, 352, 352, 352, 352, 352, 352, 356, 356, 356, 356, 356, 356, 356, 356, 359, 359, 359, 359, 359, 359, 359, 359, 362, 362, 362, 362, 362, 362, 362, 362, 363, 626, 363, 363, 363, 363, 363, 363, 365, 365, 365, 365, 365, 365, 365, 365, 369, 369, 369, 369, 369, 369, 369, 369, 370, 626, 370, 370, 370, 370, 370, 370, 372, 372, 372, 372, 372, 372, 372, 372, 376, 376, 376, 376, 376, 376, 376, 376, 377, 626, 377, 377, 377, 377, 377, 377, 379, 379, 379, 379, 379, 379, 379, 379, 383, 383, 383, 383, 383, 383, 383, 383, 386, 386, 386, 386, 386, 386, 386, 386, 389, 389, 389, 389, 389, 389, 389, 389, 390, 626, 390, 390, 390, 390, 390, 390, 392, 392, 392, 392, 392, 392, 392, 392, 396, 396, 396, 396, 396, 396, 396, 396, 399, 399, 399, 399, 399, 399, 399, 399, 402, 402, 402, 402, 402, 402, 402, 402, 403, 626, 403, 403, 403, 403, 403, 403, 405, 405, 405, 405, 405, 405, 405, 405, 409, 409, 409, 409, 409, 409, 409, 409, 412, 412, 412, 412, 412, 412, 412, 412, 415, 415, 415, 415, 415, 415, 415, 415, 416, 626, 416, 416, 416, 416, 416, 416, 418, 418, 418, 418, 418, 418, 418, 418, 422, 422, 422, 422, 422, 422, 422, 422, 423, 626, 423, 423, 423, 423, 423, 423, 425, 425, 425, 425, 425, 425, 425, 425, 429, 429, 429, 429, 429, 429, 429, 429, 433, 433, 433, 433, 433, 433, 433, 433, 435, 435, 435, 435, 435, 435, 435, 435, 437, 437, 437, 437, 437, 437, 437, 437, 441, 441, 441, 441, 441, 441, 441, 441, 445, 445, 445, 445, 445, 445, 445, 445, 446, 626, 446, 446, 446, 446, 446, 446, 448, 448, 448, 448, 448, 448, 448, 448, 452, 452, 452, 452, 452, 452, 452, 452, 455, 455, 455, 455, 455, 455, 455, 455, 458, 458, 458, 458, 458, 458, 458, 458, 459, 626, 459, 459, 459, 459, 459, 459, 461, 461, 461, 461, 461, 461, 461, 461, 465, 465, 465, 465, 465, 465, 465, 465, 466, 626, 466, 466, 466, 466, 466, 466, 468, 468, 468, 468, 468, 468, 468, 468, 472, 472, 472, 472, 472, 472, 472, 472, 473, 626, 473, 473, 473, 473, 473, 473, 475, 475, 475, 475, 475, 475, 475, 475, 479, 479, 479, 479, 479, 479, 479, 479, 482, 482, 482, 482, 482, 482, 482, 482, 485, 485, 485, 485, 485, 485, 485, 485, 486, 626, 486, 486, 486, 486, 486, 486, 488, 488, 488, 488, 488, 488, 488, 488, 492, 492, 492, 492, 492, 492, 492, 492, 495, 495, 495, 495, 495, 495, 495, 495, 356, 356, 356, 356, 356, 356, 356, 356, 359, 359, 359, 359, 359, 359, 359, 359, 376, 376, 376, 376, 376, 376, 376, 376, 383, 383, 383, 383, 383, 383, 383, 383, 379, 379, 379, 379, 379, 379, 379, 379, 386, 386, 386, 386, 386, 386, 386, 386, 389, 389, 389, 389, 389, 389, 389, 389, 396, 396, 396, 396, 396, 396, 396, 396, 392, 392, 392, 392, 392, 392, 392, 392, 399, 399, 399, 399, 399, 399, 399, 399, 75, 75, 75, 75, 75, 75, 75, 75, 74, 626, 74, 74, 74, 74, 74, 74, 78, 78, 78, 78, 78, 78, 78, 78, 187, 187, 187, 187, 187, 187, 187, 187, 189, 189, 189, 189, 189, 189, 189, 189, 116, 116, 116, 116, 116, 116, 116, 116, 113, 626, 113, 113, 113, 113, 113, 113, 191, 191, 191, 191, 191, 191, 191, 191, 123, 123, 123, 123, 123, 123, 123, 123, 120, 626, 120, 120, 120, 120, 120, 120, 195, 195, 195, 195, 195, 195, 195, 195, 133, 133, 133, 133, 133, 133, 133, 133, 130, 626, 130, 130, 130, 130, 130, 130, 498, 498, 498, 498, 498, 498, 498, 498, 502, 502, 502, 502, 502, 502, 502, 502, 504, 504, 504, 504, 504, 504, 504, 504, 146, 146, 146, 146, 146, 146, 146, 146, 143, 626, 143, 143, 143, 143, 143, 143, 506, 506, 506, 506, 506, 506, 506, 506, 510, 510, 510, 510, 510, 510, 510, 510, 512, 512, 512, 512, 512, 512, 512, 512, 160, 160, 160, 160, 160, 160, 160, 160, 157, 626, 157, 157, 157, 157, 157, 157, 514, 514, 514, 514, 514, 514, 514, 514, 518, 518, 518, 518, 518, 518, 518, 518, 520, 520, 520, 520, 520, 520, 520, 520, 173, 173, 173, 173, 173, 173, 173, 173, 170, 626, 170, 170, 170, 170, 170, 170, 522, 522, 522, 522, 522, 522, 522, 522, 180, 180, 180, 180, 180, 180, 180, 180, 177, 626, 177, 177, 177, 177, 177, 177, 526, 526, 526, 526, 526, 526, 526, 526, 530, 530, 530, 530, 530, 530, 530, 530, 534, 534, 534, 534, 534, 534, 534, 534, 536, 536, 536, 536, 536, 536, 536, 536, 538, 538, 538, 538, 538, 538, 538, 538, 542, 542, 542, 542, 542, 542, 542, 542, 203, 203, 203, 203, 203, 203, 203, 203, 200, 626, 200, 200, 200, 200, 200, 200, 546, 546, 546, 546, 546, 546, 546, 546, 550, 550, 550, 550, 550, 550, 550, 550, 552, 552, 552, 552, 552, 552, 552, 552, 216, 216, 216, 216, 216, 216, 216, 216, 213, 626, 213, 213, 213, 213, 213, 213, 554, 554, 554, 554, 554, 554, 554, 554, 223, 223, 223, 223, 223, 223, 223, 223, 220, 626, 220, 220, 220, 220, 220, 220, 558, 558, 558, 558, 558, 558, 558, 558, 230, 230, 230, 230, 230, 230, 230, 230, 227, 626, 227, 227, 227, 227, 227, 227, 562, 562, 562, 562, 562, 562, 562, 562, 566, 566, 566, 566, 566, 566, 566, 566, 568, 568, 568, 568, 568, 568, 568, 568, 243, 243, 243, 243, 243, 243, 243, 243, 240, 626, 240, 240, 240, 240, 240, 240, 570, 570, 570, 570, 570, 570, 570, 570, 574, 574, 574, 574, 574, 574, 574, 574, 576, 576, 576, 576, 576, 576, 576, 576, 187, 187, 187, 187, 187, 187, 187, 187, 189, 189, 189, 189, 189, 189, 189, 189, 133, 133, 133, 133, 133, 133, 133, 133, 502, 502, 502, 502, 502, 502, 502, 502, 498, 498, 498, 498, 498, 498, 498, 498, 504, 504, 504, 504, 504, 504, 504, 504, 146, 146, 146, 146, 146, 146, 146, 146, 510, 510, 510, 510, 510, 510, 510, 510, 506, 506, 506, 506, 506, 506, 506, 506, 512, 512, 512, 512, 512, 512, 512, 512, 256, 256, 256, 256, 256, 256, 256, 256, 253, 626, 253, 253, 253, 253, 253, 253, 333, 333, 333, 333, 333, 333, 333, 333, 337, 337, 337, 337, 337, 337, 337, 337, 339, 339, 339, 339, 339, 339, 339, 339, 269, 269, 269, 269, 269, 269, 269, 269, 266, 626, 266, 266, 266, 266, 266, 266, 341, 341, 341, 341, 341, 341, 341, 341, 276, 276, 276, 276, 276, 276, 276, 276, 273, 626, 273, 273, 273, 273, 273, 273, 345, 345, 345, 345, 345, 345, 345, 345, 283, 283, 283, 283, 283, 283, 283, 283, 280, 626, 280, 280, 280, 280, 280, 280, 578, 578, 578, 578, 578, 578, 578, 578, 582, 582, 582, 582, 582, 582, 582, 582, 584, 584, 584, 584, 584, 584, 584, 584, 296, 296, 296, 296, 296, 296, 296, 296, 293, 626, 293, 293, 293, 293, 293, 293, 586, 586, 586, 586, 586, 586, 586, 586, 590, 590, 590, 590, 590, 590, 590, 590, 592, 592, 592, 592, 592, 592, 592, 592, 309, 309, 309, 309, 309, 309, 309, 309, 306, 626, 306, 306, 306, 306, 306, 306, 594, 594, 594, 594, 594, 594, 594, 594, 598, 598, 598, 598, 598, 598, 598, 598, 600, 600, 600, 600, 600, 600, 600, 600, 322, 322, 322, 322, 322, 322, 322, 322, 319, 626, 319, 319, 319, 319, 319, 319, 602, 602, 602, 602, 602, 602, 602, 602, 329, 329, 329, 329, 329, 329, 329, 329, 326, 626, 326, 326, 326, 326, 326, 326, 606, 606, 606, 606, 606, 606, 606, 606, 610, 610, 610, 610, 610, 610, 610, 610, 614, 614, 614, 614, 614, 614, 614, 614, 616, 616, 616, 616, 616, 616, 616, 616, 618, 618, 618, 618, 618, 618, 618, 618, 622, 622, 622, 622, 622, 622, 622, 622, 157, 157, 157, 157, 157, 157, 157, 157, 164, 164, 164, 164, 164, 164, 164, 164, 160, 160, 160, 160, 160, 160, 160, 160, 167, 167, 167, 167, 167, 167, 167, 167, 170, 170, 170, 170, 170, 170, 170, 170, 173, 173, 173, 173, 173, 173, 173, 173, 177, 177, 177, 177, 177, 177, 177, 177, 180, 180, 180, 180, 180, 180, 180, 180, 75, 75, 75, 75, 75, 75, 75, 75, 187, 187, 187, 187, 187, 187, 187, 187, 78, 78, 78, 78, 78, 78, 78, 78, 189, 189, 189, 189, 189, 189, 189, 189, 116, 116, 116, 116, 116, 116, 116, 116, 191, 191, 191, 191, 191, 191, 191, 191, 123, 123, 123, 123, 123, 123, 123, 123, 195, 195, 195, 195, 195, 195, 195, 195, 200, 200, 200, 200, 200, 200, 200, 200, 207, 207, 207, 207, 207, 207, 207, 207, 203, 203, 203, 203, 203, 203, 203, 203, 210, 210, 210, 210, 210, 210, 210, 210, 213, 213, 213, 213, 213, 213, 213, 213, 216, 216, 216, 216, 216, 216, 216, 216, 220, 220, 220, 220, 220, 220, 220, 220, 223, 223, 223, 223, 223, 223, 223, 223, 227, 227, 227, 227, 227, 227, 227, 227, 234, 234, 234, 234, 234, 234, 234, 234, 230, 230, 230, 230, 230, 230, 230, 230, 237, 237, 237, 237, 237, 237, 237, 237, 240, 240, 240, 240, 240, 240, 240, 240, 247, 247, 247, 247, 247, 247, 247, 247, 243, 243, 243, 243, 243, 243, 243, 243, 250, 250, 250, 250, 250, 250, 250, 250, 74, 74, 74, 626, 74, 74, 74, 74, 97, 97, 97, 97, 97, 97, 97, 97, 100, 100, 100, 100, 100, 100, 100, 100, 113, 113, 113, 113, 113, 113, 113, 113, 120, 120, 120, 120, 120, 120, 120, 120, 130, 130, 130, 130, 130, 130, 130, 130, 137, 137, 137, 137, 137, 137, 137, 137, 133, 133, 133, 133, 133, 133, 133, 133, 140, 140, 140, 140, 140, 140, 140, 140, 143, 143, 143, 143, 143, 143, 143, 143, 150, 150, 150, 150, 150, 150, 150, 150, 146, 146, 146, 146, 146, 146, 146, 146, 153, 153, 153, 153, 153, 153, 153, 153, 253, 253, 253, 253, 253, 253, 253, 253, 260, 260, 260, 260, 260, 260, 260, 260, 256, 256, 256, 256, 256, 256, 256, 256, 263, 263, 263, 263, 263, 263, 263, 263, 266, 266, 266, 266, 266, 266, 266, 266, 269, 269, 269, 269, 269, 269, 269, 269, 273, 273, 273, 273, 273, 273, 273, 273, 276, 276, 276, 276, 276, 276, 276, 276, 280, 280, 280, 280, 280, 280, 280, 280, 287, 287, 287, 287, 287, 287, 287, 287, 283, 283, 283, 283, 283, 283, 283, 283, 290, 290, 290, 290, 290, 290, 290, 290, 293, 293, 293, 293, 293, 293, 293, 293, 300, 300, 300, 300, 300, 300, 300, 300, 296, 296, 296, 296, 296, 296, 296, 296, 303, 303, 303, 303, 303, 303, 303, 303, 306, 306, 306, 306, 306, 306, 306, 306, 313, 313, 313, 313, 313, 313, 313, 313, 309, 309, 309, 309, 309, 309, 309, 309, 316, 316, 316, 316, 316, 316, 316, 316, 319, 319, 319, 319, 319, 319, 319, 319, 322, 322, 322, 322, 322, 322, 322, 322, 326, 326, 326, 326, 326, 326, 326, 326, 329, 329, 329, 329, 329, 329, 329, 329, 337, 337, 337, 337, 337, 337, 337, 337, 333, 333, 333, 333, 333, 333, 333, 333, 339, 339, 339, 339, 339, 339, 339, 339, 341, 341, 341, 341, 341, 341, 341, 341, 345, 345, 345, 345, 345, 345, 345, 345, 402, 402, 402, 402, 402, 402, 402, 402, 409, 409, 409, 409, 409, 409, 409, 409, 405, 405, 405, 405, 405, 405, 405, 405, 412, 412, 412, 412, 412, 412, 412, 412, 415, 415, 415, 415, 415, 415, 415, 415, 418, 418, 418, 418, 418, 418, 418, 418, 422, 422, 422, 422, 422, 422, 422, 422, 425, 425, 425, 425, 425, 425, 425, 425, 352, 352, 352, 352, 352, 352, 352, 352, 433, 433, 433, 433, 433, 433, 433, 433, 429, 429, 429, 429, 429, 429, 429, 429, 435, 435, 435, 435, 435, 435, 435, 435, 365, 365, 365, 365, 365, 365, 365, 365, 437, 437, 437, 437, 437, 437, 437, 437, 372, 372, 372, 372, 372, 372, 372, 372, 441, 441, 441, 441, 441, 441, 441, 441, 445, 445, 445, 445, 445, 445, 445, 445, 452, 452, 452, 452, 452, 452, 452, 452, 448, 448, 448, 448, 448, 448, 448, 448, 455, 455, 455, 455, 455, 455, 455, 455, 458, 458, 458, 458, 458, 458, 458, 458, 461, 461, 461, 461, 461, 461, 461, 461, 465, 465, 465, 465, 465, 465, 465, 465, 468, 468, 468, 468, 468, 468, 468, 468, 472, 472, 472, 472, 472, 472, 472, 472, 479, 479, 479, 479, 479, 479, 479, 479, 475, 475, 475, 475, 475, 475, 475, 475, 482, 482, 482, 482, 482, 482, 482, 482, 485, 485, 485, 485, 485, 485, 485, 485, 492, 492, 492, 492, 492, 492, 492, 492, 488, 488, 488, 488, 488, 488, 488, 488, 495, 495, 495, 495, 495, 495, 495, 495, 349, 349, 349, 349, 349, 349, 349, 349, 356, 356, 356, 356, 356, 356, 356, 356, 359, 359, 359, 359, 359, 359, 359, 359, 362, 362, 362, 362, 362, 362, 362, 362, 369, 369, 369, 369, 369, 369, 369, 369, 376, 376, 376, 376, 376, 376, 376, 376, 383, 383, 383, 383, 383, 383, 383, 383, 379, 379, 379, 379, 379, 379, 379, 379, 386, 386, 386, 386, 386, 386, 386, 386, 389, 389, 389, 389, 389, 389, 389, 389, 396, 396, 396, 396, 396, 396, 396, 396, 392, 392, 392, 392, 392, 392, 392, 392, 399, 399, 399, 399, 399, 399, 399, 399, 7, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626 } ; static yyconst flex_int16_t yy_chk[5604] = { 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, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 6, 5, 6, 12, 13, 13, 16, 16, 19, 19, 23, 24, 26, 24, 26, 23, 19, 39, 45, 5, 6, 12, 24, 32, 30, 19, 30, 31, 40, 31, 32, 38, 42, 38, 42, 30, 45, 39, 31, 63, 24, 63, 31, 48, 48, 638, 52, 52, 40, 74, 42, 53, 42, 30, 52, 54, 31, 55, 53, 55, 68, 55, 54, 52, 69, 68, 42, 53, 65, 74, 65, 54, 75, 71, 69, 71, 72, 76, 72, 76, 78, 79, 94, 79, 80, 81, 80, 81, 496, 84, 94, 84, 75, 84, 493, 76, 85, 76, 486, 400, 78, 79, 80, 85, 80, 81, 86, 95, 86, 95, 86, 76, 85, 97, 99, 97, 99, 100, 80, 100, 102, 111, 102, 111, 113, 115, 113, 115, 143, 116, 397, 116, 99, 97, 99, 390, 304, 100, 102, 144, 102, 144, 301, 115, 113, 115, 143, 146, 99, 116, 117, 118, 117, 118, 102, 119, 120, 119, 120, 115, 122, 123, 122, 123, 124, 146, 124, 294, 349, 118, 117, 118, 125, 251, 125, 119, 120, 126, 122, 126, 122, 123, 248, 241, 124, 118, 349, 130, 156, 130, 125, 132, 125, 132, 122, 154, 133, 126, 133, 134, 135, 134, 135, 136, 151, 136, 125, 130, 137, 132, 137, 132, 139, 140, 139, 140, 133, 352, 135, 134, 135, 145, 142, 136, 142, 132, 429, 147, 137, 147, 139, 129, 139, 140, 135, 352, 148, 145, 128, 145, 142, 149, 142, 149, 429, 112, 139, 147, 506, 150, 110, 150, 148, 145, 148, 152, 142, 152, 153, 109, 153, 149, 155, 157, 155, 157, 506, 108, 148, 150, 159, 107, 159, 152, 160, 152, 160, 161, 153, 161, 155, 530, 155, 157, 106, 162, 105, 162, 159, 152, 159, 163, 104, 163, 160, 103, 155, 161, 164, 93, 164, 530, 92, 162, 159, 162, 166, 167, 166, 167, 169, 163, 169, 170, 172, 170, 172, 91, 164, 162, 90, 173, 89, 173, 166, 88, 166, 167, 169, 174, 169, 174, 172, 170, 172, 175, 176, 175, 176, 87, 166, 173, 77, 177, 169, 177, 70, 64, 172, 174, 179, 62, 179, 175, 61, 175, 176, 180, 181, 180, 181, 60, 182, 177, 182, 183, 58, 183, 179, 175, 179, 184, 185, 184, 185, 57, 51, 180, 181, 186, 182, 186, 182, 50, 179, 183, 46, 187, 43, 187, 185, 184, 185, 188, 41, 188, 182, 36, 189, 186, 189, 190, 191, 190, 191, 29, 185, 187, 192, 28, 192, 188, 193, 188, 193, 22, 20, 18, 189, 190, 11, 190, 191, 194, 195, 194, 195, 188, 192, 196, 193, 196, 193, 9, 197, 190, 197, 198, 200, 198, 200, 7, 0, 194, 195, 202, 193, 202, 0, 196, 0, 203, 197, 203, 197, 0, 0, 198, 200, 0, 204, 0, 204, 202, 205, 202, 205, 206, 197, 206, 207, 203, 207, 209, 210, 209, 210, 0, 0, 202, 204, 212, 205, 212, 205, 0, 213, 206, 213, 0, 207, 209, 0, 209, 210, 0, 0, 0, 205, 212, 215, 212, 215, 216, 0, 216, 213, 209, 217, 218, 217, 218, 219, 0, 219, 212, 0, 220, 215, 220, 215, 0, 222, 216, 222, 0, 0, 218, 217, 218, 0, 223, 219, 223, 215, 0, 0, 220, 0, 224, 222, 224, 222, 218, 225, 226, 225, 226, 227, 0, 227, 223, 229, 230, 229, 230, 222, 0, 0, 224, 0, 231, 225, 231, 225, 226, 0, 232, 227, 232, 229, 0, 229, 230, 233, 234, 233, 234, 225, 0, 236, 231, 236, 0, 0, 232, 229, 232, 237, 239, 237, 239, 0, 0, 233, 234, 0, 240, 236, 240, 236, 232, 242, 0, 242, 0, 0, 239, 237, 239, 243, 244, 243, 244, 236, 0, 0, 240, 0, 245, 242, 245, 242, 239, 246, 247, 246, 247, 0, 0, 243, 244, 249, 0, 249, 0, 242, 245, 250, 245, 250, 252, 0, 252, 246, 247, 0, 253, 0, 253, 249, 0, 249, 245, 255, 0, 255, 0, 250, 252, 256, 252, 256, 257, 0, 257, 249, 253, 0, 258, 0, 258, 255, 0, 255, 252, 259, 260, 259, 260, 256, 0, 262, 257, 262, 0, 0, 258, 255, 258, 263, 265, 263, 265, 0, 0, 259, 260, 0, 266, 262, 266, 262, 258, 268, 0, 268, 0, 0, 265, 263, 265, 269, 270, 269, 270, 262, 0, 0, 266, 0, 271, 268, 271, 268, 265, 272, 273, 272, 273, 0, 0, 269, 270, 275, 0, 275, 0, 268, 271, 276, 271, 276, 277, 0, 277, 272, 273, 0, 278, 0, 278, 275, 0, 275, 271, 279, 280, 279, 280, 276, 0, 282, 277, 282, 0, 0, 278, 275, 278, 283, 284, 283, 284, 0, 0, 279, 280, 0, 285, 282, 285, 282, 278, 286, 287, 286, 287, 0, 0, 283, 284, 289, 0, 289, 0, 282, 285, 290, 285, 290, 292, 0, 292, 286, 287, 0, 293, 0, 293, 289, 0, 289, 285, 295, 0, 295, 0, 290, 292, 296, 292, 296, 297, 0, 297, 289, 293, 0, 298, 0, 298, 295, 0, 295, 292, 299, 300, 299, 300, 296, 0, 302, 297, 302, 0, 0, 298, 295, 298, 303, 305, 303, 305, 0, 0, 299, 300, 0, 306, 302, 306, 302, 298, 308, 0, 308, 0, 0, 305, 303, 305, 309, 310, 309, 310, 302, 0, 0, 306, 0, 311, 308, 311, 308, 305, 312, 313, 312, 313, 0, 0, 309, 310, 315, 0, 315, 0, 308, 311, 316, 311, 316, 318, 0, 318, 312, 313, 0, 319, 0, 319, 315, 0, 315, 311, 321, 0, 321, 0, 316, 318, 322, 318, 322, 323, 0, 323, 315, 319, 0, 324, 0, 324, 321, 0, 321, 318, 325, 326, 325, 326, 322, 0, 328, 323, 328, 0, 0, 324, 321, 324, 329, 330, 329, 330, 0, 0, 325, 326, 0, 331, 328, 331, 328, 324, 332, 333, 332, 333, 0, 0, 329, 330, 334, 0, 334, 0, 328, 331, 335, 331, 335, 336, 0, 336, 332, 333, 337, 338, 337, 338, 0, 0, 334, 331, 0, 339, 335, 339, 335, 0, 340, 336, 340, 0, 0, 338, 337, 338, 341, 342, 341, 342, 335, 0, 0, 339, 0, 343, 340, 343, 340, 338, 344, 345, 344, 345, 0, 0, 341, 342, 346, 351, 346, 0, 340, 343, 347, 343, 347, 348, 0, 348, 344, 345, 353, 0, 353, 351, 0, 351, 346, 343, 0, 354, 347, 355, 347, 355, 356, 348, 356, 0, 0, 351, 353, 0, 358, 0, 358, 354, 347, 354, 359, 0, 359, 355, 0, 361, 356, 361, 0, 362, 0, 362, 358, 354, 358, 364, 365, 364, 365, 0, 359, 0, 366, 361, 366, 361, 0, 0, 358, 362, 367, 0, 367, 364, 0, 364, 365, 0, 368, 361, 368, 369, 366, 369, 0, 371, 0, 371, 367, 364, 367, 372, 373, 372, 373, 374, 0, 374, 368, 0, 375, 369, 375, 371, 367, 371, 376, 378, 376, 378, 0, 372, 373, 374, 379, 374, 379, 0, 0, 371, 375, 0, 380, 0, 380, 378, 376, 378, 381, 374, 381, 382, 0, 382, 379, 383, 385, 383, 385, 0, 0, 378, 380, 386, 0, 386, 381, 388, 381, 388, 0, 382, 0, 0, 385, 383, 385, 389, 391, 389, 391, 0, 381, 386, 392, 388, 392, 388, 0, 393, 385, 393, 0, 394, 0, 394, 391, 389, 391, 0, 395, 388, 395, 396, 392, 396, 398, 0, 398, 393, 0, 394, 391, 394, 399, 401, 399, 401, 0, 402, 395, 402, 0, 396, 398, 0, 398, 394, 404, 0, 404, 0, 0, 401, 399, 401, 405, 0, 405, 402, 398, 406, 0, 406, 0, 407, 404, 407, 404, 401, 408, 409, 408, 409, 0, 411, 405, 411, 412, 0, 412, 406, 404, 407, 414, 407, 414, 415, 0, 415, 408, 409, 417, 411, 417, 411, 0, 0, 412, 407, 0, 418, 414, 418, 414, 0, 0, 415, 0, 411, 417, 419, 417, 419, 420, 421, 420, 421, 414, 0, 422, 418, 422, 424, 0, 424, 417, 425, 0, 425, 0, 419, 420, 0, 420, 421, 426, 0, 426, 0, 422, 424, 427, 424, 427, 431, 0, 425, 420, 428, 430, 428, 430, 432, 0, 432, 426, 424, 0, 0, 427, 431, 427, 431, 433, 434, 433, 434, 0, 428, 430, 0, 435, 432, 435, 0, 427, 431, 436, 0, 436, 0, 0, 434, 433, 434, 437, 438, 437, 438, 0, 439, 435, 439, 0, 440, 436, 440, 436, 434, 441, 442, 441, 442, 0, 0, 437, 438, 443, 439, 443, 439, 436, 0, 444, 440, 444, 445, 0, 445, 441, 442, 0, 0, 0, 439, 443, 447, 443, 447, 448, 449, 448, 449, 444, 0, 450, 445, 450, 451, 0, 451, 443, 0, 452, 447, 452, 447, 0, 0, 448, 449, 0, 454, 450, 454, 450, 0, 455, 451, 455, 447, 0, 457, 452, 457, 458, 0, 458, 0, 450, 454, 460, 454, 460, 461, 0, 461, 455, 0, 462, 457, 462, 457, 0, 0, 458, 454, 0, 463, 460, 463, 460, 0, 464, 461, 464, 457, 0, 465, 462, 465, 467, 0, 467, 0, 460, 463, 468, 463, 468, 469, 0, 469, 464, 470, 0, 470, 0, 465, 467, 0, 467, 463, 471, 472, 471, 472, 468, 0, 474, 469, 474, 470, 0, 470, 467, 475, 476, 475, 476, 477, 0, 477, 471, 472, 0, 0, 474, 470, 474, 478, 479, 478, 479, 0, 0, 475, 476, 477, 481, 477, 481, 482, 474, 482, 484, 485, 484, 485, 0, 478, 479, 0, 0, 477, 0, 487, 481, 487, 481, 0, 0, 482, 484, 0, 484, 485, 488, 489, 488, 489, 0, 0, 481, 487, 490, 487, 490, 491, 484, 491, 492, 494, 492, 494, 0, 0, 488, 489, 0, 487, 0, 495, 490, 495, 490, 0, 497, 491, 497, 494, 492, 494, 498, 499, 498, 499, 0, 500, 490, 500, 0, 495, 0, 0, 497, 494, 497, 501, 502, 501, 502, 0, 498, 499, 503, 500, 503, 500, 0, 504, 497, 504, 505, 507, 505, 507, 0, 501, 502, 508, 0, 500, 503, 509, 503, 509, 0, 0, 0, 504, 505, 0, 505, 507, 510, 508, 510, 508, 503, 511, 512, 511, 512, 509, 0, 513, 505, 513, 514, 0, 514, 508, 0, 0, 510, 0, 515, 511, 515, 511, 512, 0, 516, 513, 516, 513, 0, 517, 514, 517, 518, 0, 518, 511, 0, 519, 515, 519, 0, 513, 516, 520, 516, 520, 521, 0, 521, 517, 0, 0, 518, 0, 522, 519, 522, 519, 516, 523, 0, 523, 0, 520, 521, 524, 521, 524, 525, 0, 525, 519, 0, 526, 522, 526, 527, 0, 527, 523, 521, 0, 528, 524, 528, 524, 0, 529, 525, 529, 531, 0, 531, 526, 0, 532, 527, 532, 0, 524, 528, 533, 528, 533, 534, 0, 534, 529, 0, 0, 531, 0, 535, 532, 535, 532, 528, 536, 537, 536, 537, 533, 0, 538, 534, 538, 0, 0, 0, 532, 535, 539, 535, 539, 0, 0, 537, 536, 537, 540, 541, 540, 541, 538, 0, 542, 535, 542, 543, 0, 543, 539, 537, 0, 544, 0, 544, 540, 0, 540, 541, 545, 546, 545, 546, 542, 0, 547, 543, 547, 0, 0, 544, 540, 544, 548, 549, 548, 549, 0, 0, 545, 546, 550, 551, 550, 551, 547, 544, 0, 552, 0, 552, 548, 0, 548, 549, 553, 0, 553, 0, 0, 551, 550, 551, 554, 555, 554, 555, 548, 552, 0, 556, 0, 556, 553, 0, 553, 551, 557, 558, 557, 558, 0, 0, 554, 555, 559, 0, 559, 556, 553, 556, 560, 561, 560, 561, 0, 0, 557, 558, 562, 563, 562, 563, 0, 556, 559, 564, 0, 564, 560, 0, 560, 561, 565, 566, 565, 566, 0, 0, 562, 563, 567, 0, 567, 564, 560, 564, 568, 569, 568, 569, 0, 0, 565, 566, 0, 570, 0, 570, 567, 564, 567, 0, 571, 0, 571, 569, 568, 569, 572, 573, 572, 573, 0, 0, 567, 570, 574, 575, 574, 575, 0, 569, 571, 576, 0, 576, 572, 0, 572, 573, 577, 0, 577, 0, 0, 575, 574, 575, 578, 579, 578, 579, 572, 576, 0, 580, 0, 580, 577, 0, 577, 575, 581, 582, 581, 582, 0, 0, 578, 579, 583, 0, 583, 580, 577, 580, 584, 585, 584, 585, 0, 0, 581, 582, 0, 586, 0, 586, 583, 580, 583, 0, 587, 0, 587, 585, 584, 585, 588, 589, 588, 589, 0, 0, 583, 586, 590, 591, 590, 591, 0, 585, 587, 592, 0, 592, 588, 0, 588, 589, 593, 0, 593, 0, 0, 591, 590, 591, 594, 595, 594, 595, 588, 592, 0, 596, 0, 596, 593, 0, 593, 591, 597, 598, 597, 598, 0, 0, 594, 595, 599, 0, 599, 596, 593, 596, 600, 601, 600, 601, 0, 0, 597, 598, 0, 602, 0, 602, 599, 596, 599, 0, 603, 0, 603, 601, 600, 601, 604, 605, 604, 605, 0, 0, 599, 602, 606, 607, 606, 607, 0, 601, 603, 608, 0, 608, 604, 0, 604, 605, 609, 610, 609, 610, 0, 0, 606, 607, 611, 0, 611, 608, 604, 608, 612, 613, 612, 613, 0, 0, 609, 610, 614, 615, 614, 615, 0, 608, 611, 616, 0, 616, 612, 0, 612, 613, 617, 0, 617, 0, 0, 615, 614, 615, 618, 619, 618, 619, 612, 616, 0, 620, 0, 620, 617, 0, 617, 615, 621, 622, 621, 622, 0, 0, 618, 619, 623, 0, 623, 620, 617, 620, 624, 625, 624, 625, 0, 0, 621, 622, 0, 0, 0, 0, 0, 620, 623, 0, 0, 0, 624, 0, 624, 625, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 624, 627, 627, 627, 627, 627, 627, 627, 627, 628, 0, 0, 628, 628, 628, 628, 628, 629, 629, 629, 629, 629, 629, 629, 629, 630, 0, 0, 630, 631, 631, 631, 631, 631, 631, 631, 631, 632, 632, 632, 632, 633, 633, 633, 633, 634, 634, 634, 634, 635, 635, 635, 0, 635, 635, 635, 635, 636, 636, 636, 636, 636, 636, 636, 636, 637, 637, 0, 637, 639, 639, 639, 639, 639, 639, 639, 639, 640, 640, 640, 640, 640, 640, 640, 640, 641, 641, 0, 641, 642, 642, 642, 642, 642, 642, 642, 642, 643, 0, 643, 643, 643, 643, 643, 643, 644, 644, 644, 644, 644, 644, 644, 644, 645, 645, 645, 645, 645, 645, 645, 645, 646, 0, 646, 646, 646, 646, 646, 646, 647, 647, 647, 647, 647, 647, 647, 647, 648, 648, 648, 648, 648, 648, 648, 648, 649, 0, 649, 649, 649, 649, 649, 649, 650, 650, 650, 650, 650, 650, 650, 650, 651, 651, 651, 651, 651, 651, 651, 651, 652, 652, 652, 652, 652, 652, 652, 652, 653, 653, 653, 653, 653, 653, 653, 653, 654, 0, 654, 654, 654, 654, 654, 654, 655, 655, 655, 655, 655, 655, 655, 655, 656, 656, 656, 656, 656, 656, 656, 656, 657, 657, 657, 657, 657, 657, 657, 657, 658, 658, 658, 658, 658, 658, 658, 658, 659, 0, 659, 659, 659, 659, 659, 659, 660, 660, 660, 660, 660, 660, 660, 660, 661, 661, 661, 661, 661, 661, 661, 661, 662, 662, 662, 662, 662, 662, 662, 662, 663, 663, 663, 663, 663, 663, 663, 663, 664, 0, 664, 664, 664, 664, 664, 664, 665, 665, 665, 665, 665, 665, 665, 665, 666, 666, 666, 666, 666, 666, 666, 666, 667, 0, 667, 667, 667, 667, 667, 667, 668, 668, 668, 668, 668, 668, 668, 668, 669, 669, 669, 669, 669, 669, 669, 669, 670, 670, 670, 670, 670, 670, 670, 670, 671, 671, 671, 671, 671, 671, 671, 671, 672, 672, 672, 672, 672, 672, 672, 672, 673, 673, 673, 673, 673, 673, 673, 673, 674, 674, 674, 674, 674, 674, 674, 674, 675, 0, 675, 675, 675, 675, 675, 675, 676, 676, 676, 676, 676, 676, 676, 676, 677, 677, 677, 677, 677, 677, 677, 677, 678, 678, 678, 678, 678, 678, 678, 678, 679, 679, 679, 679, 679, 679, 679, 679, 680, 0, 680, 680, 680, 680, 680, 680, 681, 681, 681, 681, 681, 681, 681, 681, 682, 682, 682, 682, 682, 682, 682, 682, 683, 0, 683, 683, 683, 683, 683, 683, 684, 684, 684, 684, 684, 684, 684, 684, 685, 685, 685, 685, 685, 685, 685, 685, 686, 0, 686, 686, 686, 686, 686, 686, 687, 687, 687, 687, 687, 687, 687, 687, 688, 688, 688, 688, 688, 688, 688, 688, 689, 689, 689, 689, 689, 689, 689, 689, 690, 690, 690, 690, 690, 690, 690, 690, 691, 0, 691, 691, 691, 691, 691, 691, 692, 692, 692, 692, 692, 692, 692, 692, 693, 693, 693, 693, 693, 693, 693, 693, 694, 694, 694, 694, 694, 694, 694, 694, 695, 695, 695, 695, 695, 695, 695, 695, 696, 696, 696, 696, 696, 696, 696, 696, 697, 697, 697, 697, 697, 697, 697, 697, 698, 698, 698, 698, 698, 698, 698, 698, 699, 699, 699, 699, 699, 699, 699, 699, 700, 700, 700, 700, 700, 700, 700, 700, 701, 701, 701, 701, 701, 701, 701, 701, 702, 702, 702, 702, 702, 702, 702, 702, 703, 703, 703, 703, 703, 703, 703, 703, 704, 704, 704, 704, 704, 704, 704, 704, 705, 705, 705, 705, 705, 705, 705, 705, 706, 0, 706, 706, 706, 706, 706, 706, 707, 707, 707, 707, 707, 707, 707, 707, 708, 708, 708, 708, 708, 708, 708, 708, 709, 709, 709, 709, 709, 709, 709, 709, 710, 710, 710, 710, 710, 710, 710, 710, 711, 0, 711, 711, 711, 711, 711, 711, 712, 712, 712, 712, 712, 712, 712, 712, 713, 713, 713, 713, 713, 713, 713, 713, 714, 0, 714, 714, 714, 714, 714, 714, 715, 715, 715, 715, 715, 715, 715, 715, 716, 716, 716, 716, 716, 716, 716, 716, 717, 0, 717, 717, 717, 717, 717, 717, 718, 718, 718, 718, 718, 718, 718, 718, 719, 719, 719, 719, 719, 719, 719, 719, 720, 720, 720, 720, 720, 720, 720, 720, 721, 721, 721, 721, 721, 721, 721, 721, 722, 0, 722, 722, 722, 722, 722, 722, 723, 723, 723, 723, 723, 723, 723, 723, 724, 724, 724, 724, 724, 724, 724, 724, 725, 725, 725, 725, 725, 725, 725, 725, 726, 726, 726, 726, 726, 726, 726, 726, 727, 0, 727, 727, 727, 727, 727, 727, 728, 728, 728, 728, 728, 728, 728, 728, 729, 729, 729, 729, 729, 729, 729, 729, 730, 730, 730, 730, 730, 730, 730, 730, 731, 731, 731, 731, 731, 731, 731, 731, 732, 0, 732, 732, 732, 732, 732, 732, 733, 733, 733, 733, 733, 733, 733, 733, 734, 734, 734, 734, 734, 734, 734, 734, 735, 0, 735, 735, 735, 735, 735, 735, 736, 736, 736, 736, 736, 736, 736, 736, 737, 737, 737, 737, 737, 737, 737, 737, 738, 738, 738, 738, 738, 738, 738, 738, 739, 739, 739, 739, 739, 739, 739, 739, 740, 740, 740, 740, 740, 740, 740, 740, 741, 741, 741, 741, 741, 741, 741, 741, 742, 742, 742, 742, 742, 742, 742, 742, 743, 0, 743, 743, 743, 743, 743, 743, 744, 744, 744, 744, 744, 744, 744, 744, 745, 745, 745, 745, 745, 745, 745, 745, 746, 746, 746, 746, 746, 746, 746, 746, 747, 747, 747, 747, 747, 747, 747, 747, 748, 0, 748, 748, 748, 748, 748, 748, 749, 749, 749, 749, 749, 749, 749, 749, 750, 750, 750, 750, 750, 750, 750, 750, 751, 0, 751, 751, 751, 751, 751, 751, 752, 752, 752, 752, 752, 752, 752, 752, 753, 753, 753, 753, 753, 753, 753, 753, 754, 0, 754, 754, 754, 754, 754, 754, 755, 755, 755, 755, 755, 755, 755, 755, 756, 756, 756, 756, 756, 756, 756, 756, 757, 757, 757, 757, 757, 757, 757, 757, 758, 758, 758, 758, 758, 758, 758, 758, 759, 0, 759, 759, 759, 759, 759, 759, 760, 760, 760, 760, 760, 760, 760, 760, 761, 761, 761, 761, 761, 761, 761, 761, 762, 762, 762, 762, 762, 762, 762, 762, 763, 763, 763, 763, 763, 763, 763, 763, 764, 0, 764, 764, 764, 764, 764, 764, 765, 765, 765, 765, 765, 765, 765, 765, 766, 766, 766, 766, 766, 766, 766, 766, 767, 767, 767, 767, 767, 767, 767, 767, 768, 768, 768, 768, 768, 768, 768, 768, 769, 0, 769, 769, 769, 769, 769, 769, 770, 770, 770, 770, 770, 770, 770, 770, 771, 771, 771, 771, 771, 771, 771, 771, 772, 0, 772, 772, 772, 772, 772, 772, 773, 773, 773, 773, 773, 773, 773, 773, 774, 774, 774, 774, 774, 774, 774, 774, 775, 775, 775, 775, 775, 775, 775, 775, 776, 776, 776, 776, 776, 776, 776, 776, 777, 777, 777, 777, 777, 777, 777, 777, 778, 778, 778, 778, 778, 778, 778, 778, 779, 779, 779, 779, 779, 779, 779, 779, 780, 0, 780, 780, 780, 780, 780, 780, 781, 781, 781, 781, 781, 781, 781, 781, 782, 782, 782, 782, 782, 782, 782, 782, 783, 783, 783, 783, 783, 783, 783, 783, 784, 784, 784, 784, 784, 784, 784, 784, 785, 0, 785, 785, 785, 785, 785, 785, 786, 786, 786, 786, 786, 786, 786, 786, 787, 787, 787, 787, 787, 787, 787, 787, 788, 0, 788, 788, 788, 788, 788, 788, 789, 789, 789, 789, 789, 789, 789, 789, 790, 790, 790, 790, 790, 790, 790, 790, 791, 0, 791, 791, 791, 791, 791, 791, 792, 792, 792, 792, 792, 792, 792, 792, 793, 793, 793, 793, 793, 793, 793, 793, 794, 794, 794, 794, 794, 794, 794, 794, 795, 795, 795, 795, 795, 795, 795, 795, 796, 0, 796, 796, 796, 796, 796, 796, 797, 797, 797, 797, 797, 797, 797, 797, 798, 798, 798, 798, 798, 798, 798, 798, 799, 799, 799, 799, 799, 799, 799, 799, 800, 800, 800, 800, 800, 800, 800, 800, 801, 801, 801, 801, 801, 801, 801, 801, 802, 802, 802, 802, 802, 802, 802, 802, 803, 803, 803, 803, 803, 803, 803, 803, 804, 804, 804, 804, 804, 804, 804, 804, 805, 805, 805, 805, 805, 805, 805, 805, 806, 806, 806, 806, 806, 806, 806, 806, 807, 807, 807, 807, 807, 807, 807, 807, 808, 808, 808, 808, 808, 808, 808, 808, 809, 809, 809, 809, 809, 809, 809, 809, 810, 810, 810, 810, 810, 810, 810, 810, 811, 0, 811, 811, 811, 811, 811, 811, 812, 812, 812, 812, 812, 812, 812, 812, 813, 813, 813, 813, 813, 813, 813, 813, 814, 814, 814, 814, 814, 814, 814, 814, 815, 815, 815, 815, 815, 815, 815, 815, 816, 0, 816, 816, 816, 816, 816, 816, 817, 817, 817, 817, 817, 817, 817, 817, 818, 818, 818, 818, 818, 818, 818, 818, 819, 0, 819, 819, 819, 819, 819, 819, 820, 820, 820, 820, 820, 820, 820, 820, 821, 821, 821, 821, 821, 821, 821, 821, 822, 0, 822, 822, 822, 822, 822, 822, 823, 823, 823, 823, 823, 823, 823, 823, 824, 824, 824, 824, 824, 824, 824, 824, 825, 825, 825, 825, 825, 825, 825, 825, 826, 826, 826, 826, 826, 826, 826, 826, 827, 0, 827, 827, 827, 827, 827, 827, 828, 828, 828, 828, 828, 828, 828, 828, 829, 829, 829, 829, 829, 829, 829, 829, 830, 830, 830, 830, 830, 830, 830, 830, 831, 831, 831, 831, 831, 831, 831, 831, 832, 0, 832, 832, 832, 832, 832, 832, 833, 833, 833, 833, 833, 833, 833, 833, 834, 834, 834, 834, 834, 834, 834, 834, 835, 835, 835, 835, 835, 835, 835, 835, 836, 836, 836, 836, 836, 836, 836, 836, 837, 0, 837, 837, 837, 837, 837, 837, 838, 838, 838, 838, 838, 838, 838, 838, 839, 839, 839, 839, 839, 839, 839, 839, 840, 0, 840, 840, 840, 840, 840, 840, 841, 841, 841, 841, 841, 841, 841, 841, 842, 842, 842, 842, 842, 842, 842, 842, 843, 843, 843, 843, 843, 843, 843, 843, 844, 844, 844, 844, 844, 844, 844, 844, 845, 845, 845, 845, 845, 845, 845, 845, 846, 846, 846, 846, 846, 846, 846, 846, 847, 847, 847, 847, 847, 847, 847, 847, 848, 0, 848, 848, 848, 848, 848, 848, 849, 849, 849, 849, 849, 849, 849, 849, 850, 850, 850, 850, 850, 850, 850, 850, 851, 851, 851, 851, 851, 851, 851, 851, 852, 852, 852, 852, 852, 852, 852, 852, 853, 0, 853, 853, 853, 853, 853, 853, 854, 854, 854, 854, 854, 854, 854, 854, 855, 855, 855, 855, 855, 855, 855, 855, 856, 0, 856, 856, 856, 856, 856, 856, 857, 857, 857, 857, 857, 857, 857, 857, 858, 858, 858, 858, 858, 858, 858, 858, 859, 0, 859, 859, 859, 859, 859, 859, 860, 860, 860, 860, 860, 860, 860, 860, 861, 861, 861, 861, 861, 861, 861, 861, 862, 862, 862, 862, 862, 862, 862, 862, 863, 863, 863, 863, 863, 863, 863, 863, 864, 0, 864, 864, 864, 864, 864, 864, 865, 865, 865, 865, 865, 865, 865, 865, 866, 866, 866, 866, 866, 866, 866, 866, 867, 867, 867, 867, 867, 867, 867, 867, 868, 868, 868, 868, 868, 868, 868, 868, 869, 869, 869, 869, 869, 869, 869, 869, 870, 870, 870, 870, 870, 870, 870, 870, 871, 871, 871, 871, 871, 871, 871, 871, 872, 872, 872, 872, 872, 872, 872, 872, 873, 873, 873, 873, 873, 873, 873, 873, 874, 874, 874, 874, 874, 874, 874, 874, 875, 875, 875, 875, 875, 875, 875, 875, 876, 876, 876, 876, 876, 876, 876, 876, 877, 877, 877, 877, 877, 877, 877, 877, 878, 878, 878, 878, 878, 878, 878, 878, 879, 0, 879, 879, 879, 879, 879, 879, 880, 880, 880, 880, 880, 880, 880, 880, 881, 881, 881, 881, 881, 881, 881, 881, 882, 882, 882, 882, 882, 882, 882, 882, 883, 883, 883, 883, 883, 883, 883, 883, 884, 0, 884, 884, 884, 884, 884, 884, 885, 885, 885, 885, 885, 885, 885, 885, 886, 886, 886, 886, 886, 886, 886, 886, 887, 0, 887, 887, 887, 887, 887, 887, 888, 888, 888, 888, 888, 888, 888, 888, 889, 889, 889, 889, 889, 889, 889, 889, 890, 0, 890, 890, 890, 890, 890, 890, 891, 891, 891, 891, 891, 891, 891, 891, 892, 892, 892, 892, 892, 892, 892, 892, 893, 893, 893, 893, 893, 893, 893, 893, 894, 894, 894, 894, 894, 894, 894, 894, 895, 0, 895, 895, 895, 895, 895, 895, 896, 896, 896, 896, 896, 896, 896, 896, 897, 897, 897, 897, 897, 897, 897, 897, 898, 898, 898, 898, 898, 898, 898, 898, 899, 899, 899, 899, 899, 899, 899, 899, 900, 0, 900, 900, 900, 900, 900, 900, 901, 901, 901, 901, 901, 901, 901, 901, 902, 902, 902, 902, 902, 902, 902, 902, 903, 903, 903, 903, 903, 903, 903, 903, 904, 904, 904, 904, 904, 904, 904, 904, 905, 0, 905, 905, 905, 905, 905, 905, 906, 906, 906, 906, 906, 906, 906, 906, 907, 907, 907, 907, 907, 907, 907, 907, 908, 0, 908, 908, 908, 908, 908, 908, 909, 909, 909, 909, 909, 909, 909, 909, 910, 910, 910, 910, 910, 910, 910, 910, 911, 911, 911, 911, 911, 911, 911, 911, 912, 912, 912, 912, 912, 912, 912, 912, 913, 913, 913, 913, 913, 913, 913, 913, 914, 914, 914, 914, 914, 914, 914, 914, 915, 915, 915, 915, 915, 915, 915, 915, 916, 916, 916, 916, 916, 916, 916, 916, 917, 917, 917, 917, 917, 917, 917, 917, 918, 918, 918, 918, 918, 918, 918, 918, 919, 919, 919, 919, 919, 919, 919, 919, 920, 920, 920, 920, 920, 920, 920, 920, 921, 921, 921, 921, 921, 921, 921, 921, 922, 922, 922, 922, 922, 922, 922, 922, 923, 923, 923, 923, 923, 923, 923, 923, 924, 924, 924, 924, 924, 924, 924, 924, 925, 925, 925, 925, 925, 925, 925, 925, 926, 926, 926, 926, 926, 926, 926, 926, 927, 927, 927, 927, 927, 927, 927, 927, 928, 928, 928, 928, 928, 928, 928, 928, 929, 929, 929, 929, 929, 929, 929, 929, 930, 930, 930, 930, 930, 930, 930, 930, 931, 931, 931, 931, 931, 931, 931, 931, 932, 932, 932, 932, 932, 932, 932, 932, 933, 933, 933, 933, 933, 933, 933, 933, 934, 934, 934, 934, 934, 934, 934, 934, 935, 935, 935, 935, 935, 935, 935, 935, 936, 936, 936, 936, 936, 936, 936, 936, 937, 937, 937, 937, 937, 937, 937, 937, 938, 938, 938, 938, 938, 938, 938, 938, 939, 939, 939, 939, 939, 939, 939, 939, 940, 940, 940, 940, 940, 940, 940, 940, 941, 941, 941, 941, 941, 941, 941, 941, 942, 942, 942, 942, 942, 942, 942, 942, 943, 943, 943, 943, 943, 943, 943, 943, 944, 944, 944, 944, 944, 944, 944, 944, 945, 945, 945, 945, 945, 945, 945, 945, 946, 946, 946, 946, 946, 946, 946, 946, 947, 947, 947, 0, 947, 947, 947, 947, 948, 948, 948, 948, 948, 948, 948, 948, 949, 949, 949, 949, 949, 949, 949, 949, 950, 950, 950, 950, 950, 950, 950, 950, 951, 951, 951, 951, 951, 951, 951, 951, 952, 952, 952, 952, 952, 952, 952, 952, 953, 953, 953, 953, 953, 953, 953, 953, 954, 954, 954, 954, 954, 954, 954, 954, 955, 955, 955, 955, 955, 955, 955, 955, 956, 956, 956, 956, 956, 956, 956, 956, 957, 957, 957, 957, 957, 957, 957, 957, 958, 958, 958, 958, 958, 958, 958, 958, 959, 959, 959, 959, 959, 959, 959, 959, 960, 960, 960, 960, 960, 960, 960, 960, 961, 961, 961, 961, 961, 961, 961, 961, 962, 962, 962, 962, 962, 962, 962, 962, 963, 963, 963, 963, 963, 963, 963, 963, 964, 964, 964, 964, 964, 964, 964, 964, 965, 965, 965, 965, 965, 965, 965, 965, 966, 966, 966, 966, 966, 966, 966, 966, 967, 967, 967, 967, 967, 967, 967, 967, 968, 968, 968, 968, 968, 968, 968, 968, 969, 969, 969, 969, 969, 969, 969, 969, 970, 970, 970, 970, 970, 970, 970, 970, 971, 971, 971, 971, 971, 971, 971, 971, 972, 972, 972, 972, 972, 972, 972, 972, 973, 973, 973, 973, 973, 973, 973, 973, 974, 974, 974, 974, 974, 974, 974, 974, 975, 975, 975, 975, 975, 975, 975, 975, 976, 976, 976, 976, 976, 976, 976, 976, 977, 977, 977, 977, 977, 977, 977, 977, 978, 978, 978, 978, 978, 978, 978, 978, 979, 979, 979, 979, 979, 979, 979, 979, 980, 980, 980, 980, 980, 980, 980, 980, 981, 981, 981, 981, 981, 981, 981, 981, 982, 982, 982, 982, 982, 982, 982, 982, 983, 983, 983, 983, 983, 983, 983, 983, 984, 984, 984, 984, 984, 984, 984, 984, 985, 985, 985, 985, 985, 985, 985, 985, 986, 986, 986, 986, 986, 986, 986, 986, 987, 987, 987, 987, 987, 987, 987, 987, 988, 988, 988, 988, 988, 988, 988, 988, 989, 989, 989, 989, 989, 989, 989, 989, 990, 990, 990, 990, 990, 990, 990, 990, 991, 991, 991, 991, 991, 991, 991, 991, 992, 992, 992, 992, 992, 992, 992, 992, 993, 993, 993, 993, 993, 993, 993, 993, 994, 994, 994, 994, 994, 994, 994, 994, 995, 995, 995, 995, 995, 995, 995, 995, 996, 996, 996, 996, 996, 996, 996, 996, 997, 997, 997, 997, 997, 997, 997, 997, 998, 998, 998, 998, 998, 998, 998, 998, 999, 999, 999, 999, 999, 999, 999, 999, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1004, 1004, 1004, 1004, 1004, 1004, 1004, 1004, 1005, 1005, 1005, 1005, 1005, 1005, 1005, 1005, 1006, 1006, 1006, 1006, 1006, 1006, 1006, 1006, 1007, 1007, 1007, 1007, 1007, 1007, 1007, 1007, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1012, 1012, 1012, 1012, 1012, 1012, 1012, 1012, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1015, 1015, 1015, 1015, 1015, 1015, 1015, 1015, 1016, 1016, 1016, 1016, 1016, 1016, 1016, 1016, 1017, 1017, 1017, 1017, 1017, 1017, 1017, 1017, 1018, 1018, 1018, 1018, 1018, 1018, 1018, 1018, 1019, 1019, 1019, 1019, 1019, 1019, 1019, 1019, 1020, 1020, 1020, 1020, 1020, 1020, 1020, 1020, 1021, 1021, 1021, 1021, 1021, 1021, 1021, 1021, 1022, 1022, 1022, 1022, 1022, 1022, 1022, 1022, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1026, 1026, 1026, 1026, 1026, 1026, 1026, 1026, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1028, 1028, 1028, 1028, 1028, 1028, 1028, 1028, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1030, 1030, 1030, 1030, 1030, 1030, 1030, 1030, 1031, 1031, 1031, 1031, 1031, 1031, 1031, 1031, 1032, 1032, 1032, 1032, 1032, 1032, 1032, 1032, 1033, 1033, 1033, 1033, 1033, 1033, 1033, 1033, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626 } ; /* 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 #line 1 "./turtle_lexer.l" /* -*- Mode: c; c-basic-offset: 2 -*- * * turtle_lexer.l - Raptor Turtle lexer - making tokens for turtle grammar generator * * Copyright (C) 2003-2006, David Beckett http://purl.org/net/dajobe/ * Copyright (C) 2003-2005, University of Bristol, UK http://www.bristol.ac.uk/ * * This package is Free Software and part of Redland http://librdf.org/ * * It is licensed under the following three licenses as alternatives: * 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version * 2. GNU General Public License (GPL) V2 or any newer version * 3. Apache License, V2.0 or any newer version * * You may not use this file except in compliance with at least one of * the above three licenses. * * See LICENSE.html or LICENSE.txt at the top of this package for the * complete terms and further detail along with the license texts for * the licenses in COPYING.LIB, COPYING and LICENSE-2.0.txt respectively. * * * Turtle is defined in http://www.dajobe.org/2004/01/turtle/ * * To generate the C files from this source, rather than use the * shipped turtle_lexer.c/.h needs a patched version of flex 2.5.31 such * as the one available in Debian GNU/Linux. Details below * near the %option descriptions. * */ /* recognise 8-bits */ /* all symbols prefixed by this */ /* This is not needed, flex is invoked -oturtle_lexer.c */ /* %option outfile="turtle_lexer.c" */ /* Emit a C header file for prototypes * Only available in flex 2.5.13 or newer. * It was renamed to header-file in flex 2.5.19 */ /* Do not emit #include * Only available in flex 2.5.7 or newer. * Broken in flex 2.5.31 without patches. */ #define YY_NO_UNISTD_H 1 /* Never interactive */ /* No isatty() check */ /* Batch scanner */ /* Never use yyunput */ /* Supply our own alloc/realloc/free functions */ /* Re-entrant scanner */ /* definitions */ #line 75 "./turtle_lexer.l" /* NOTE: These headers are NOT included here but are inserted by * fix-flex since otherwise it appears far too late in the generated C */ /* #ifdef HAVE_CONFIG_H #include #endif #ifdef WIN32 #include #endif */ #include #include #include #include #ifdef HAVE_ERRNO_H #include #endif #ifdef HAVE_STDLIB_H #include #endif #include #include #include #include /* Prototypes */ static unsigned char *turtle_copy_token(unsigned char *text, size_t len); static unsigned char *turtle_copy_string_token(raptor_parser* rdf_parser, unsigned char *text, size_t len, int delim); void turtle_lexer_syntax_error(void* ctx, const char *message, ...) RAPTOR_PRINTF_FORMAT(2, 3); #ifdef RAPTOR_DEBUG const char * turtle_token_print(int token, YYSTYPE *lval); #endif int turtle_lexer_lex (YYSTYPE *turtle_parser_lval, yyscan_t yyscanner); #define YY_DECL int turtle_lexer_lex (YYSTYPE *turtle_parser_lval, yyscan_t yyscanner) #ifdef __cplusplus #define INPUT_FN yyinput #else #define INPUT_FN input #endif /* Missing turtle_lexer.c/h prototypes */ int turtle_lexer_get_column(yyscan_t yyscanner); void turtle_lexer_set_column(int column_no , yyscan_t yyscanner); static void turtle_lexer_cleanup(yyscan_t yyscanner); /* fatal error handler declaration */ #define YY_FATAL_ERROR(msg) turtle_lexer_fatal_error(msg, yyscanner) static void turtle_lexer_fatal_error(yyconst char *msg, yyscan_t yyscanner); /* Out-of-memory reporting macro. * Do not report as fatal error - we don't want an abort(), * instead return EOF with yyterminate() and let the parser clean up. */ #define TURTLE_LEXER_OOM() do { \ turtle_syntax_error(rdf_parser, turtle_lexer_oom_text); \ yyterminate(); \ } while(0) static const char turtle_lexer_oom_text[]="turtle_lexer: Out of memory"; /* from SPARQL */ /* similar to SPARQL but no need for <= check here */ #line 2095 "turtle_lexer.c" #define INITIAL 0 #define PREF 1 #define LITERAL 2 #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. */ #ifndef YY_NO_UNISTD_H #include #endif #endif #ifndef YY_EXTRA_TYPE #define YY_EXTRA_TYPE void * #endif /* Holds the entire state of the reentrant scanner. */ struct yyguts_t { /* User-defined. Not touched by flex. */ YY_EXTRA_TYPE yyextra_r; /* The rest are the same as the globals declared in the non-reentrant scanner. */ FILE *yyin_r, *yyout_r; size_t yy_buffer_stack_top; /**< index of top of stack. */ size_t yy_buffer_stack_max; /**< capacity of stack. */ YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */ char yy_hold_char; int yy_n_chars; int yyleng_r; char *yy_c_buf_p; int yy_init; int yy_start; int yy_did_buffer_switch_on_eof; int yy_start_stack_ptr; int yy_start_stack_depth; int *yy_start_stack; yy_state_type yy_last_accepting_state; char* yy_last_accepting_cpos; int yylineno_r; int yy_flex_debug_r; char *yytext_r; int yy_more_flag; int yy_more_len; }; /* end struct yyguts_t */ static int yy_init_globals (yyscan_t yyscanner ); int turtle_lexer_lex_init (yyscan_t* scanner); int turtle_lexer_lex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner); /* Accessor methods to globals. These are made visible to non-reentrant scanners for convenience. */ int turtle_lexer_lex_destroy (yyscan_t yyscanner ); int turtle_lexer_get_debug (yyscan_t yyscanner ); void turtle_lexer_set_debug (int debug_flag ,yyscan_t yyscanner ); YY_EXTRA_TYPE turtle_lexer_get_extra (yyscan_t yyscanner ); void turtle_lexer_set_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner ); FILE *turtle_lexer_get_in (yyscan_t yyscanner ); void turtle_lexer_set_in (FILE * in_str ,yyscan_t yyscanner ); FILE *turtle_lexer_get_out (yyscan_t yyscanner ); void turtle_lexer_set_out (FILE * out_str ,yyscan_t yyscanner ); int turtle_lexer_get_leng (yyscan_t yyscanner ); char *turtle_lexer_get_text (yyscan_t yyscanner ); int turtle_lexer_get_lineno (yyscan_t yyscanner ); void turtle_lexer_set_lineno (int line_number ,yyscan_t yyscanner ); /* Macros after this point can all be overridden by user definitions in * section 1. */ #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus extern "C" int turtle_lexer_wrap (yyscan_t yyscanner ); #else extern int turtle_lexer_wrap (yyscan_t yyscanner ); #endif #endif #ifndef yytext_ptr static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner); #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner); #endif #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput (yyscan_t yyscanner ); #else static int input (yyscan_t yyscanner ); #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 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 , yyscanner) #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 turtle_lexer_lex (yyscan_t yyscanner); #define YY_DECL int turtle_lexer_lex (yyscan_t yyscanner) #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 \ 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; struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; #line 171 "./turtle_lexer.l" /* rules */ raptor_parser *rdf_parser=(raptor_parser*)yyextra; raptor_turtle_parser* turtle_parser=(raptor_turtle_parser*)rdf_parser->context; #line 2325 "turtle_lexer.c" if ( !yyg->yy_init ) { yyg->yy_init = 1; #ifdef YY_USER_INIT YY_USER_INIT; #endif if ( ! yyg->yy_start ) yyg->yy_start = 1; /* first start state */ if ( ! yyin ) yyin = stdin; if ( ! yyout ) yyout = stdout; if ( ! YY_CURRENT_BUFFER ) { turtle_lexer_ensure_buffer_stack (yyscanner); YY_CURRENT_BUFFER_LVALUE = turtle_lexer__create_buffer(yyin,YY_BUF_SIZE ,yyscanner); } turtle_lexer__load_buffer_state(yyscanner ); } while ( 1 ) /* loops until end-of-file is reached */ { yy_cp = yyg->yy_c_buf_p; /* Support of yytext. */ *yy_cp = yyg->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 = yyg->yy_start; yy_match: do { register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; if ( yy_accept[yy_current_state] ) { yyg->yy_last_accepting_state = yy_current_state; yyg->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 >= 627 ) 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 != 626 ); yy_cp = yyg->yy_last_accepting_cpos; yy_current_state = yyg->yy_last_accepting_state; yy_find_action: yy_act = yy_accept[yy_current_state]; YY_DO_BEFORE_ACTION; do_action: /* This label is used only to access EOF actions. */ switch ( yy_act ) { /* beginning of action switch */ case 0: /* must back up */ /* undo the effects of YY_DO_BEFORE_ACTION */ *yy_cp = yyg->yy_hold_char; yy_cp = yyg->yy_last_accepting_cpos; yy_current_state = yyg->yy_last_accepting_state; goto yy_find_action; case 1: /* rule 1 can match eol */ YY_RULE_SETUP #line 177 "./turtle_lexer.l" { turtle_parser->lineno++; } YY_BREAK case 2: YY_RULE_SETUP #line 179 "./turtle_lexer.l" { /* empty */ } YY_BREAK case 3: YY_RULE_SETUP #line 182 "./turtle_lexer.l" { return A; } YY_BREAK case 4: YY_RULE_SETUP #line 184 "./turtle_lexer.l" { return DOT; } YY_BREAK case 5: YY_RULE_SETUP #line 185 "./turtle_lexer.l" { return COMMA; } YY_BREAK case 6: YY_RULE_SETUP #line 186 "./turtle_lexer.l" { return SEMICOLON; } YY_BREAK case 7: YY_RULE_SETUP #line 187 "./turtle_lexer.l" { return LEFT_SQUARE; } YY_BREAK case 8: YY_RULE_SETUP #line 188 "./turtle_lexer.l" { return RIGHT_SQUARE; } YY_BREAK case 9: YY_RULE_SETUP #line 189 "./turtle_lexer.l" { BEGIN(PREF); return PREFIX; } YY_BREAK case 10: YY_RULE_SETUP #line 190 "./turtle_lexer.l" { return BASE; } YY_BREAK case 11: YY_RULE_SETUP #line 191 "./turtle_lexer.l" { return AT; } YY_BREAK case 12: YY_RULE_SETUP #line 192 "./turtle_lexer.l" { return HAT; } YY_BREAK case 13: YY_RULE_SETUP #line 193 "./turtle_lexer.l" { return LEFT_ROUND; } YY_BREAK case 14: YY_RULE_SETUP #line 194 "./turtle_lexer.l" { return RIGHT_ROUND; } YY_BREAK case 15: YY_RULE_SETUP #line 195 "./turtle_lexer.l" { return LEFT_CURLY; } YY_BREAK case 16: YY_RULE_SETUP #line 196 "./turtle_lexer.l" { return RIGHT_CURLY; } YY_BREAK case 17: YY_RULE_SETUP #line 197 "./turtle_lexer.l" { return COLONMINUS; } YY_BREAK case 18: YY_RULE_SETUP #line 198 "./turtle_lexer.l" { return TRUE_TOKEN; } YY_BREAK case 19: YY_RULE_SETUP #line 199 "./turtle_lexer.l" { return FALSE_TOKEN; } YY_BREAK case 20: YY_RULE_SETUP #line 202 "./turtle_lexer.l" { turtle_parser_lval->string=turtle_copy_string_token(rdf_parser, (unsigned char*)yytext+1, yyleng-2, '"'); /* ' */ if(!turtle_parser_lval->string) TURTLE_LEXER_OOM(); return STRING_LITERAL; } YY_BREAK case 21: YY_RULE_SETUP #line 207 "./turtle_lexer.l" { BEGIN(LITERAL); turtle_parser->sb=raptor_new_stringbuffer(); if(!turtle_parser->sb) TURTLE_LEXER_OOM(); } YY_BREAK case 22: YY_RULE_SETUP #line 213 "./turtle_lexer.l" { size_t len; BEGIN(INITIAL); len=raptor_stringbuffer_length(turtle_parser->sb); turtle_parser_lval->string=(unsigned char *)RAPTOR_MALLOC(cstring, len+1); if(!turtle_parser_lval->string) TURTLE_LEXER_OOM(); raptor_stringbuffer_copy_to_string(turtle_parser->sb, (unsigned char*)turtle_parser_lval->string, len); turtle_parser_lval->string[len]='\0'; raptor_free_stringbuffer(turtle_parser->sb); turtle_parser->sb=NULL; return STRING_LITERAL; } YY_BREAK case 23: /* rule 23 can match eol */ YY_RULE_SETUP #line 228 "./turtle_lexer.l" { if (*yytext == EOF) { BEGIN(INITIAL); turtle_syntax_error(rdf_parser, "End of file in middle of literal"); raptor_free_stringbuffer(turtle_parser->sb); turtle_parser->sb=NULL; return EOF; } if(raptor_stringbuffer_append_turtle_string(turtle_parser->sb, (unsigned char*)yytext, yyleng, '"', (raptor_simple_message_handler)turtle_lexer_syntax_error, rdf_parser)) { /* " */ BEGIN(INITIAL); raptor_free_stringbuffer(turtle_parser->sb); turtle_parser->sb=NULL; TURTLE_LEXER_OOM(); } } YY_BREAK case 24: YY_RULE_SETUP #line 246 "./turtle_lexer.l" { turtle_parser_lval->string=turtle_copy_token((unsigned char*)yytext+2, yyleng-2); if(!turtle_parser_lval->string) TURTLE_LEXER_OOM(); return BLANK_LITERAL; } YY_BREAK case 25: YY_RULE_SETUP #line 251 "./turtle_lexer.l" { turtle_parser_lval->uri=turtle_qname_to_uri(rdf_parser, (unsigned char*)yytext, yyleng); if(!turtle_parser_lval->uri) TURTLE_LEXER_OOM(); return QNAME_LITERAL; } YY_BREAK case 26: YY_RULE_SETUP #line 256 "./turtle_lexer.l" { turtle_parser_lval->string=turtle_copy_token((unsigned char*)yytext, yyleng); if(!turtle_parser_lval->string) TURTLE_LEXER_OOM(); return DECIMAL_LITERAL; } YY_BREAK case 27: YY_RULE_SETUP #line 262 "./turtle_lexer.l" { turtle_parser_lval->string=turtle_copy_token((unsigned char*)yytext, yyleng); if(!turtle_parser_lval->string) TURTLE_LEXER_OOM(); return FLOATING_LITERAL; } YY_BREAK case 28: YY_RULE_SETUP #line 268 "./turtle_lexer.l" { turtle_parser_lval->string=turtle_copy_token((unsigned char*)yytext, yyleng); if(!turtle_parser_lval->string) TURTLE_LEXER_OOM(); return INTEGER_LITERAL; } YY_BREAK case 29: YY_RULE_SETUP #line 273 "./turtle_lexer.l" { /* eat up leading whitespace */ } YY_BREAK case 30: YY_RULE_SETUP #line 274 "./turtle_lexer.l" { turtle_parser_lval->string=turtle_copy_token((unsigned char*)yytext, yyleng); if(!turtle_parser_lval->string) TURTLE_LEXER_OOM(); BEGIN(INITIAL); return IDENTIFIER; } YY_BREAK case 31: YY_RULE_SETUP #line 279 "./turtle_lexer.l" { BEGIN(INITIAL); turtle_parser_lval->string=turtle_copy_token((unsigned char*)yytext, 0); if(!turtle_parser_lval->string) TURTLE_LEXER_OOM(); return IDENTIFIER; } YY_BREAK case 32: /* rule 32 can match eol */ YY_RULE_SETUP #line 285 "./turtle_lexer.l" { BEGIN(INITIAL); if (*yytext == EOF) return EOF; turtle_syntax_error(rdf_parser, "syntax error at '%c'", *yytext); yyterminate(); } YY_BREAK case 33: /* rule 33 can match eol */ YY_RULE_SETUP #line 293 "./turtle_lexer.l" { if(yyleng == 2) turtle_parser_lval->uri=raptor_uri_copy(rdf_parser->base_uri); else { raptor_stringbuffer* sb; unsigned char* uri_string; yytext[yyleng-1]='\0'; sb=raptor_new_stringbuffer(); if(!sb) TURTLE_LEXER_OOM(); if(raptor_stringbuffer_append_turtle_string(sb, (unsigned char*)yytext+1, yyleng-1, '>', (raptor_simple_message_handler)turtle_lexer_syntax_error, rdf_parser)) { raptor_free_stringbuffer(sb); TURTLE_LEXER_OOM(); } uri_string=raptor_stringbuffer_as_string(sb); turtle_parser_lval->uri=raptor_new_uri_relative_to_base(rdf_parser->base_uri, uri_string); if(!turtle_parser_lval->uri) { raptor_free_stringbuffer(sb); TURTLE_LEXER_OOM(); } raptor_free_stringbuffer(sb); } return URI_LITERAL; } YY_BREAK case 34: YY_RULE_SETUP #line 317 "./turtle_lexer.l" { turtle_parser_lval->string=turtle_copy_token((unsigned char*)yytext, yyleng); if(!turtle_parser_lval->string) TURTLE_LEXER_OOM(); return IDENTIFIER; } YY_BREAK case 35: /* rule 35 can match eol */ YY_RULE_SETUP #line 322 "./turtle_lexer.l" { /* # comment */ turtle_parser->lineno++; } YY_BREAK case 36: YY_RULE_SETUP #line 326 "./turtle_lexer.l" { /* # comment on the last line with no terminating newline */ } YY_BREAK case 37: YY_RULE_SETUP #line 329 "./turtle_lexer.l" { if (*yytext == EOF) return EOF; turtle_syntax_error(rdf_parser, "syntax error at '%c'", *yytext); yyterminate(); } YY_BREAK case 38: YY_RULE_SETUP #line 336 "./turtle_lexer.l" YY_FATAL_ERROR( "flex scanner jammed" ); YY_BREAK #line 2698 "turtle_lexer.c" case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(PREF): case YY_STATE_EOF(LITERAL): yyterminate(); case YY_END_OF_BUFFER: { /* Amount of text matched not including the EOB char. */ int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1; /* Undo the effects of YY_DO_BEFORE_ACTION. */ *yy_cp = yyg->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 * turtle_lexer_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. */ yyg->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 ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] ) { /* This was really a NUL. */ yy_state_type yy_next_state; yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state( yyscanner ); /* 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 , yyscanner); yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; if ( yy_next_state ) { /* Consume the NUL. */ yy_cp = ++yyg->yy_c_buf_p; yy_current_state = yy_next_state; goto yy_match; } else { yy_cp = yyg->yy_last_accepting_cpos; yy_current_state = yyg->yy_last_accepting_state; goto yy_find_action; } } else switch ( yy_get_next_buffer( yyscanner ) ) { case EOB_ACT_END_OF_FILE: { yyg->yy_did_buffer_switch_on_eof = 0; if ( turtle_lexer_wrap(yyscanner ) ) { /* 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. */ yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ; yy_act = YY_STATE_EOF(YY_START); goto do_action; } else { if ( ! yyg->yy_did_buffer_switch_on_eof ) YY_NEW_FILE; } break; } case EOB_ACT_CONTINUE_SCAN: yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state( yyscanner ); yy_cp = yyg->yy_c_buf_p; yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; goto yy_match; case EOB_ACT_LAST_MATCH: yyg->yy_c_buf_p = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars]; yy_current_state = yy_get_previous_state( yyscanner ); yy_cp = yyg->yy_c_buf_p; yy_bp = yyg->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 turtle_lexer_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 (yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; register char *source = yyg->yytext_ptr; register int number_to_move, i; int ret_val; if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->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 ( yyg->yy_c_buf_p - yyg->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) (yyg->yy_c_buf_p - yyg->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 = yyg->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) (yyg->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. */ turtle_lexer_realloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ,yyscanner ); } 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" ); yyg->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]), yyg->yy_n_chars, (size_t) num_to_read ); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; } if ( yyg->yy_n_chars == 0 ) { if ( number_to_move == YY_MORE_ADJ ) { ret_val = EOB_ACT_END_OF_FILE; turtle_lexer_restart(yyin ,yyscanner); } else { ret_val = EOB_ACT_LAST_MATCH; YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_EOF_PENDING; } } else ret_val = EOB_ACT_CONTINUE_SCAN; if ((yy_size_t) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { /* Extend the array by 50%, plus the number we really need. */ yy_size_t new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1); YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) turtle_lexer_realloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ,yyscanner ); if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); } yyg->yy_n_chars += number_to_move; YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR; YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; yyg->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 (yyscan_t yyscanner) { register yy_state_type yy_current_state; register char *yy_cp; struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; yy_current_state = yyg->yy_start; for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->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] ) { yyg->yy_last_accepting_state = yy_current_state; yyg->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 >= 627 ) 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 , yyscan_t yyscanner) { register int yy_is_jam; struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */ register char *yy_cp = yyg->yy_c_buf_p; register YY_CHAR yy_c = 1; if ( yy_accept[yy_current_state] ) { yyg->yy_last_accepting_state = yy_current_state; yyg->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 >= 627 ) 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 == 626); return yy_is_jam ? 0 : yy_current_state; } #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput (yyscan_t yyscanner) #else static int input (yyscan_t yyscanner) #endif { int c; struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; *yyg->yy_c_buf_p = yyg->yy_hold_char; if ( *yyg->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 ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] ) /* This was really a NUL. */ *yyg->yy_c_buf_p = '\0'; else { /* need more input */ int offset = yyg->yy_c_buf_p - yyg->yytext_ptr; ++yyg->yy_c_buf_p; switch ( yy_get_next_buffer( yyscanner ) ) { 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. */ turtle_lexer_restart(yyin ,yyscanner); /*FALLTHROUGH*/ case EOB_ACT_END_OF_FILE: { if ( turtle_lexer_wrap(yyscanner ) ) return EOF; if ( ! yyg->yy_did_buffer_switch_on_eof ) YY_NEW_FILE; #ifdef __cplusplus return yyinput(yyscanner); #else return input(yyscanner); #endif } case EOB_ACT_CONTINUE_SCAN: yyg->yy_c_buf_p = yyg->yytext_ptr + offset; break; } } } c = *(unsigned char *) yyg->yy_c_buf_p; /* cast for 8-bit char's */ *yyg->yy_c_buf_p = '\0'; /* preserve yytext */ yyg->yy_hold_char = *++yyg->yy_c_buf_p; return c; } #endif /* ifndef YY_NO_INPUT */ /** Immediately switch to a different input stream. * @param input_file A readable stream. * @param yyscanner The scanner object. * @note This function does not reset the start condition to @c INITIAL . */ void turtle_lexer_restart (FILE * input_file , yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; if ( ! YY_CURRENT_BUFFER ){ turtle_lexer_ensure_buffer_stack (yyscanner); YY_CURRENT_BUFFER_LVALUE = turtle_lexer__create_buffer(yyin,YY_BUF_SIZE ,yyscanner); } turtle_lexer__init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner); turtle_lexer__load_buffer_state(yyscanner ); } /** Switch to a different input buffer. * @param new_buffer The new input buffer. * @param yyscanner The scanner object. */ void turtle_lexer__switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* TODO. We should be able to replace this entire function body * with * turtle_lexer_pop_buffer_state(); * turtle_lexer_push_buffer_state(new_buffer); */ turtle_lexer_ensure_buffer_stack (yyscanner); if ( YY_CURRENT_BUFFER == new_buffer ) return; if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ *yyg->yy_c_buf_p = yyg->yy_hold_char; YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p; YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; } YY_CURRENT_BUFFER_LVALUE = new_buffer; turtle_lexer__load_buffer_state(yyscanner ); /* We don't actually know whether we did this switch during * EOF (turtle_lexer_wrap()) processing, but the only time this flag * is looked at is after turtle_lexer_wrap() is called, so it's safe * to go ahead and always set it. */ yyg->yy_did_buffer_switch_on_eof = 1; } static void turtle_lexer__load_buffer_state (yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; yyg->yy_hold_char = *yyg->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. * @param yyscanner The scanner object. * @return the allocated buffer state. */ YY_BUFFER_STATE turtle_lexer__create_buffer (FILE * file, int size , yyscan_t yyscanner) { YY_BUFFER_STATE b; b = (YY_BUFFER_STATE) turtle_lexer_alloc(sizeof( struct yy_buffer_state ) ,yyscanner ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in turtle_lexer__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 *) turtle_lexer_alloc(b->yy_buf_size + 2 ,yyscanner ); if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in turtle_lexer__create_buffer()" ); b->yy_is_our_buffer = 1; turtle_lexer__init_buffer(b,file ,yyscanner); return b; } /** Destroy the buffer. * @param b a buffer created with turtle_lexer__create_buffer() * @param yyscanner The scanner object. */ void turtle_lexer__delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; 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 ) turtle_lexer_free((void *) b->yy_ch_buf ,yyscanner ); turtle_lexer_free((void *) b ,yyscanner ); } /* Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, * such as during a turtle_lexer_restart() or at EOF. */ static void turtle_lexer__init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner) { int oerrno = errno; struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; turtle_lexer__flush_buffer(b ,yyscanner); b->yy_input_file = file; b->yy_fill_buffer = 1; /* If b is the current buffer, then turtle_lexer__init_buffer was _probably_ * called from turtle_lexer_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 = 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. * @param yyscanner The scanner object. */ void turtle_lexer__flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; 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 ) turtle_lexer__load_buffer_state(yyscanner ); } /** 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. * @param yyscanner The scanner object. */ void turtle_lexer_push_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; if (new_buffer == NULL) return; turtle_lexer_ensure_buffer_stack(yyscanner); /* This block is copied from turtle_lexer__switch_to_buffer. */ if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ *yyg->yy_c_buf_p = yyg->yy_hold_char; YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p; YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; } /* Only push if top exists. Otherwise, replace top. */ if (YY_CURRENT_BUFFER) yyg->yy_buffer_stack_top++; YY_CURRENT_BUFFER_LVALUE = new_buffer; /* copied from turtle_lexer__switch_to_buffer. */ turtle_lexer__load_buffer_state(yyscanner ); yyg->yy_did_buffer_switch_on_eof = 1; } /** Removes and deletes the top of the stack, if present. * The next element becomes the new top. * @param yyscanner The scanner object. */ void turtle_lexer_pop_buffer_state (yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; if (!YY_CURRENT_BUFFER) return; turtle_lexer__delete_buffer(YY_CURRENT_BUFFER ,yyscanner); YY_CURRENT_BUFFER_LVALUE = NULL; if (yyg->yy_buffer_stack_top > 0) --yyg->yy_buffer_stack_top; if (YY_CURRENT_BUFFER) { turtle_lexer__load_buffer_state(yyscanner ); yyg->yy_did_buffer_switch_on_eof = 1; } } /* Allocates the stack if it does not exist. * Guarantees space for at least one push. */ static void turtle_lexer_ensure_buffer_stack (yyscan_t yyscanner) { int num_to_alloc; struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; if (!yyg->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; yyg->yy_buffer_stack = (struct yy_buffer_state**)turtle_lexer_alloc (num_to_alloc * sizeof(struct yy_buffer_state*) , yyscanner); if ( ! yyg->yy_buffer_stack ) YY_FATAL_ERROR( "out of dynamic memory in turtle_lexer_ensure_buffer_stack()" ); if(!yyg->yy_buffer_stack) YY_FATAL_ERROR("ouf of memory - lexer yy_buffer_stack"); memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*)); yyg->yy_buffer_stack_max = num_to_alloc; yyg->yy_buffer_stack_top = 0; return; } if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){ /* Increase the buffer to prepare for a possible push. */ int grow_size = 8 /* arbitrary grow size */; num_to_alloc = yyg->yy_buffer_stack_max + grow_size; yyg->yy_buffer_stack = (struct yy_buffer_state**)turtle_lexer_realloc (yyg->yy_buffer_stack, num_to_alloc * sizeof(struct yy_buffer_state*) , yyscanner); if ( ! yyg->yy_buffer_stack ) YY_FATAL_ERROR( "out of dynamic memory in turtle_lexer_ensure_buffer_stack()" ); /* zero only the new slots.*/ if(!yyg->yy_buffer_stack) YY_FATAL_ERROR("ouf of memory - lexer yy_buffer_stack"); memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*)); yyg->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 * @param yyscanner The scanner object. * @return the newly allocated buffer state object. */ YY_BUFFER_STATE turtle_lexer__scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner) { 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) turtle_lexer_alloc(sizeof( struct yy_buffer_state ) ,yyscanner ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in turtle_lexer__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; turtle_lexer__switch_to_buffer(b ,yyscanner ); return b; } /** Setup the input buffer state to scan a string. The next call to turtle_lexer_lex() will * scan from a @e copy of @a str. * @param yystr a NUL-terminated string to scan * @param yyscanner The scanner object. * @return the newly allocated buffer state object. * @note If you want to scan bytes that may contain NUL values, then use * turtle_lexer__scan_bytes() instead. */ YY_BUFFER_STATE turtle_lexer__scan_string (yyconst char * yystr , yyscan_t yyscanner) { return turtle_lexer__scan_bytes(yystr,strlen(yystr) ,yyscanner); } /** Setup the input buffer state to scan the given bytes. The next call to turtle_lexer_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. * @param yyscanner The scanner object. * @return the newly allocated buffer state object. */ YY_BUFFER_STATE turtle_lexer__scan_bytes (yyconst char * yybytes, int _yybytes_len , yyscan_t yyscanner) { 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 *) turtle_lexer_alloc(n ,yyscanner ); if ( ! buf ) YY_FATAL_ERROR( "out of dynamic memory in turtle_lexer__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 = turtle_lexer__scan_buffer(buf,n ,yyscanner); if ( ! b ) YY_FATAL_ERROR( "bad buffer in turtle_lexer__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 /* 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] = yyg->yy_hold_char; \ yyg->yy_c_buf_p = yytext + yyless_macro_arg; \ yyg->yy_hold_char = *yyg->yy_c_buf_p; \ *yyg->yy_c_buf_p = '\0'; \ yyleng = yyless_macro_arg; \ } \ while ( 0 ) /* Accessor methods (get/set functions) to struct members. */ /** Get the user-defined data for this scanner. * @param yyscanner The scanner object. */ YY_EXTRA_TYPE turtle_lexer_get_extra (yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; return yyextra; } /** Get the current line number. * @param yyscanner The scanner object. */ int turtle_lexer_get_lineno (yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; if (! YY_CURRENT_BUFFER) return 0; return yylineno; } /** Get the current column number. * @param yyscanner The scanner object. */ int turtle_lexer_get_column (yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; if (! YY_CURRENT_BUFFER) return 0; return yycolumn; } /** Get the input stream. * @param yyscanner The scanner object. */ FILE *turtle_lexer_get_in (yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; return yyin; } /** Get the output stream. * @param yyscanner The scanner object. */ FILE *turtle_lexer_get_out (yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; return yyout; } /** Get the length of the current token. * @param yyscanner The scanner object. */ int turtle_lexer_get_leng (yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; return yyleng; } /** Get the current token. * @param yyscanner The scanner object. */ char *turtle_lexer_get_text (yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; return yytext; } /** Set the user-defined data. This data is never touched by the scanner. * @param user_defined The data to be associated with this scanner. * @param yyscanner The scanner object. */ void turtle_lexer_set_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; yyextra = user_defined ; } /** Set the current line number. * @param line_number * @param yyscanner The scanner object. */ void turtle_lexer_set_lineno (int line_number , yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* lineno is only valid if an input buffer exists. */ if (! YY_CURRENT_BUFFER ) YY_FATAL_ERROR("turtle_lexer_set_lineno called with no buffer"); yylineno = line_number; } /** Set the current column. * @param line_number * @param yyscanner The scanner object. */ void turtle_lexer_set_column (int column_no , yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* column is only valid if an input buffer exists. */ if (! YY_CURRENT_BUFFER ) YY_FATAL_ERROR("turtle_lexer_set_column called with no buffer"); yycolumn = column_no; } /** Set the input stream. This does not discard the current * input buffer. * @param in_str A readable stream. * @param yyscanner The scanner object. * @see turtle_lexer__switch_to_buffer */ void turtle_lexer_set_in (FILE * in_str , yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; yyin = in_str ; } void turtle_lexer_set_out (FILE * out_str , yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; yyout = out_str ; } int turtle_lexer_get_debug (yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; return yy_flex_debug; } void turtle_lexer_set_debug (int bdebug , yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; yy_flex_debug = bdebug ; } /* Accessor methods for yylval and yylloc */ /* User-visible API */ /* turtle_lexer_lex_init is special because it creates the scanner itself, so it is * the ONLY reentrant function that doesn't take the scanner as the last argument. * That's why we explicitly handle the declaration, instead of using our macros. */ int turtle_lexer_lex_init(yyscan_t* ptr_yy_globals) { if (ptr_yy_globals == NULL){ errno = EINVAL; return 1; } *ptr_yy_globals = (yyscan_t) turtle_lexer_alloc ( sizeof( struct yyguts_t ), NULL ); if (*ptr_yy_globals == NULL){ errno = ENOMEM; return 1; } /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */ memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t)); return yy_init_globals ( *ptr_yy_globals ); } /* turtle_lexer_lex_init_extra has the same functionality as turtle_lexer_lex_init, but follows the * convention of taking the scanner as the last argument. Note however, that * this is a *pointer* to a scanner, as it will be allocated by this call (and * is the reason, too, why this function also must handle its own declaration). * The user defined value in the first argument will be available to turtle_lexer_alloc in * the yyextra field. */ int turtle_lexer_lex_init_extra(YY_EXTRA_TYPE yy_user_defined,yyscan_t* ptr_yy_globals ) { struct yyguts_t dummy_yyguts; turtle_lexer_set_extra (yy_user_defined, &dummy_yyguts); if (ptr_yy_globals == NULL){ errno = EINVAL; return 1; } *ptr_yy_globals = (yyscan_t) turtle_lexer_alloc ( sizeof( struct yyguts_t ), &dummy_yyguts ); if (*ptr_yy_globals == NULL){ errno = ENOMEM; return 1; } /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */ memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t)); turtle_lexer_set_extra (yy_user_defined, *ptr_yy_globals); return yy_init_globals ( *ptr_yy_globals ); } static int yy_init_globals (yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* Initialization is the same as for the non-reentrant scanner. * This function is called from turtle_lexer_lex_destroy(), so don't allocate here. */ yyg->yy_buffer_stack = 0; yyg->yy_buffer_stack_top = 0; yyg->yy_buffer_stack_max = 0; yyg->yy_c_buf_p = (char *) 0; yyg->yy_init = 0; yyg->yy_start = 0; yyg->yy_start_stack_ptr = 0; yyg->yy_start_stack_depth = 0; yyg->yy_start_stack = NULL; /* 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 * turtle_lexer_lex_init() */ return 0; } /* turtle_lexer_lex_destroy is for both reentrant and non-reentrant scanners. */ int turtle_lexer_lex_destroy (yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* Pop the buffer stack, destroying each element. */ while(YY_CURRENT_BUFFER){ turtle_lexer__delete_buffer(YY_CURRENT_BUFFER ,yyscanner ); YY_CURRENT_BUFFER_LVALUE = NULL; turtle_lexer_pop_buffer_state(yyscanner); } /* Destroy the stack itself. */ turtle_lexer_free(yyg->yy_buffer_stack ,yyscanner); yyg->yy_buffer_stack = NULL; /* Destroy the start condition stack. */ turtle_lexer_free(yyg->yy_start_stack ,yyscanner ); yyg->yy_start_stack = NULL; /* Reset the globals. This is important in a non-reentrant scanner so the next time * turtle_lexer_lex() is called, initialization will occur. */ yy_init_globals( yyscanner); /* Destroy the main struct (reentrant only). */ /* clean up leaks if any before freeing yyscanner */ turtle_lexer_cleanup(yyscanner); turtle_lexer_free ( yyscanner , yyscanner ); yyscanner = NULL; return 0; } /* * Internal utility routines. */ #ifndef yytext_ptr static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner) { 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 , yyscan_t yyscanner) { register int n; for ( n = 0; s[n]; ++n ) ; return n; } #endif #define YYTABLES_NAME "yytables" #line 336 "./turtle_lexer.l" /* user code */ int turtle_lexer_wrap (yyscan_t yyscanner) { return 1; } static unsigned char * turtle_copy_token(unsigned char *text, size_t len) { unsigned char *s; if(!len) len=strlen((const char*)text); s=(unsigned char *)RAPTOR_MALLOC(cstring, len+1); if(s) { strncpy((char*)s, (const char*)text, len); s[len] = '\0'; } return s; } static unsigned char * turtle_copy_string_token(raptor_parser* rdf_parser, unsigned char *string, size_t len, int delim) { raptor_stringbuffer* sb=NULL; int rc; if(len) { sb=raptor_new_stringbuffer(); if(!sb) return NULL; rc=raptor_stringbuffer_append_turtle_string(sb, string, len, delim, (raptor_simple_message_handler)turtle_lexer_syntax_error, rdf_parser); if(rc) { raptor_free_stringbuffer(sb); return NULL; } len=raptor_stringbuffer_length(sb); } string=(unsigned char *)RAPTOR_MALLOC(cstring, len+1); if(string) { if(sb) raptor_stringbuffer_copy_to_string(sb, string, len+1); string[len]='\0'; } if(sb) raptor_free_stringbuffer(sb); return string; } void turtle_lexer_syntax_error(void* ctx, const char *message, ...) { raptor_parser* rdf_parser=(raptor_parser *)ctx; raptor_turtle_parser* turtle_parser=(raptor_turtle_parser*)rdf_parser->context; va_list arguments; rdf_parser->locator.line=turtle_parser->lineno; #ifdef RAPTOR_TURTLE_USE_ERROR_COLUMNS rdf_parser->locator.column=turtle_lexer_get_column(yyscanner); #endif va_start(arguments, message); raptor_parser_error_varargs(((raptor_parser*)rdf_parser), message, arguments); va_end(arguments); } /* * turtle_lexer_fatal_error: * @msg: * @yyscanner: * * INTERNAL - replacement for the generated error handler. */ static void turtle_lexer_fatal_error(yyconst char *msg, yyscan_t yyscanner) { raptor_parser *rdf_parser=NULL; if(yyscanner) rdf_parser=(raptor_parser *)turtle_lexer_get_extra(yyscanner); if(rdf_parser) /* avoid "format not a string literal and no format arguments" warning with %s */ raptor_parser_fatal_error(rdf_parser, "%s", msg); else { fputs(msg, stderr); fputc('\n', stderr); } abort(); } /* Define LEXER_ALLOC_TRACKING to enable allocated memory tracking * - fixes lexer memory leak when ensure_buffer_stack fails */ #ifdef LEXER_ALLOC_TRACKING typedef struct { /* Number of void* slots allocated */ int lexer_allocs_size; /* Allocted void* slots follow in memory after this header */ } lexer_alloc_tracker_header; /* Initial alloc tracker slot array size - 2 seems to be enough for almost all cases */ static const int initial_lexer_allocs_size=2; #endif /* * turtle_lexer_cleanup: * @yyscanner: * * INTERNAL - Clean up unfreed lexer allocs if LEXER_ALLOC_TRACKING is enabled. */ static void turtle_lexer_cleanup(yyscan_t yyscanner) { #ifdef LEXER_ALLOC_TRACKING raptor_parser *rdf_parser; lexer_alloc_tracker_header *tracker; void **lexer_allocs; int i; if(!yyscanner) return; rdf_parser=(raptor_parser *)turtle_lexer_get_extra(yyscanner); if(!rdf_parser) return; tracker=(lexer_alloc_tracker_header *)rdf_parser->lexer_user_data; if(!tracker) return; lexer_allocs=(void**)&tracker[1]; for(i=0; ilexer_allocs_size; ++i) { if(lexer_allocs[i]) free(lexer_allocs[i]); lexer_allocs[i]=NULL; } free(rdf_parser->lexer_user_data); rdf_parser->lexer_user_data=NULL; #endif } /* * turtle_lexer_alloc: * @size * @yyscanner * * INTERNAL - alloc replacement. * Tracks allocated cells if LEXER_ALLOC_TRACKING is enabled. */ void *turtle_lexer_alloc(yy_size_t size, yyscan_t yyscanner) { #ifdef LEXER_ALLOC_TRACKING raptor_parser *rdf_parser; lexer_alloc_tracker_header *tracker; void **lexer_allocs; int i; void *ptr; /* yyscanner not initialized -> probably initializing yyscanner itself * -> just malloc without tracking */ if(!yyscanner) return malloc(size); rdf_parser=(raptor_parser *)turtle_lexer_get_extra(yyscanner); if(!rdf_parser) YY_FATAL_ERROR("lexer_alloc: yyscanner extra not initialized"); /* try to allocate tracker if it does not exist */ tracker=(lexer_alloc_tracker_header *)rdf_parser->lexer_user_data; if(!tracker) { /* allocate tracker header + array of void* slots */ tracker=calloc(1, sizeof(lexer_alloc_tracker_header)+initial_lexer_allocs_size*sizeof(void*)); if(!tracker) YY_FATAL_ERROR("lexer_alloc: cannot allocate tracker"); tracker->lexer_allocs_size=initial_lexer_allocs_size; rdf_parser->lexer_user_data=(void *)tracker; } lexer_allocs=(void**)&tracker[1]; /* allocate memory */ ptr=malloc(size); /* find a free slot for ptr */ for(i=0; ilexer_allocs_size; ++i) { if(!lexer_allocs[i]) { lexer_allocs[i]=ptr; break; } } /* no free slots -> grow tracker slot array */ if(i>=tracker->lexer_allocs_size) { int j; void **dest; tracker=calloc(1, sizeof(lexer_alloc_tracker_header)+i*2*sizeof(void*)); if(!tracker) { if(ptr) free(ptr); YY_FATAL_ERROR("lexer_alloc: cannot grow tracker"); } tracker->lexer_allocs_size=i*2; /* copy data from old tracker */ dest=(void**)&tracker[1]; for(j=0; jlexer_user_data); rdf_parser->lexer_user_data=tracker; } return ptr; #else return malloc(size); #endif } /* * turtle_lexer_realloc: * * INTERNAL - realloc replacement * Tracks allocated cells if LEXER_ALLOC_TRACKING is enabled. */ void *turtle_lexer_realloc(void *ptr, yy_size_t size, yyscan_t yyscanner) { #ifdef LEXER_ALLOC_TRACKING raptor_parser *rdf_parser; lexer_alloc_tracker_header *tracker; void **lexer_allocs; int i; void *newptr; if(!yyscanner) YY_FATAL_ERROR("lexer_realloc: yyscanner not initialized"); rdf_parser=(raptor_parser *)turtle_lexer_get_extra(yyscanner); if(!rdf_parser) YY_FATAL_ERROR("lexer_realloc: yyscanner extra not initialized"); tracker=(lexer_alloc_tracker_header *)rdf_parser->lexer_user_data; if(!tracker) YY_FATAL_ERROR("lexer_realloc: no alloc tracker"); lexer_allocs=(void**)&tracker[1]; /* find the old slot for ptr */ for(i=0; ilexer_allocs_size; ++i) { if(lexer_allocs[i]==ptr) break; } /* no old slot -> error */ if(i>=tracker->lexer_allocs_size) YY_FATAL_ERROR("lexer_realloc: cell not in tracker"); /* realloc */ newptr=realloc((char*)ptr, size); /* replace entry in tracker */ lexer_allocs[i]=newptr; return newptr; #else return realloc((char*)ptr, size); #endif } /* * turtle_lexer_free: * * INTERNAL - free replacement. * Checks for NULL pointer to be freed unlike the default lexer free function. * Tracks allocated cells if LEXER_ALLOC_TRACKING is enabled. */ void turtle_lexer_free(void *ptr, yyscan_t yyscanner) { #ifdef LEXER_ALLOC_TRACKING raptor_parser *rdf_parser; lexer_alloc_tracker_header *tracker; void **lexer_allocs; int i; /* do not free NULL */ if(!ptr) return; /* free ptr even if we would encounter an error */ free(ptr); /* yyscanner is allocated with turtle_lexer_alloc() but it's never stored in the tracker * - we need yyscanner to access the tracker */ if(!yyscanner || ptr==yyscanner) return; rdf_parser=(raptor_parser *)turtle_lexer_get_extra(yyscanner); if(!rdf_parser) return; tracker=(lexer_alloc_tracker_header *)rdf_parser->lexer_user_data; if(!tracker) return; lexer_allocs=(void**)&tracker[1]; /* find the slot for ptr */ for(i=0; ilexer_allocs_size; ++i) { if(lexer_allocs[i]==ptr) break; } /* no slot -> error */ if(i>=tracker->lexer_allocs_size) YY_FATAL_ERROR("lexer_free: cell not in tracker"); /* remove entry from tracker */ lexer_allocs[i]=NULL; #else if(ptr) free(ptr); #endif } #ifdef RAPTOR_DEBUG const char * turtle_token_print(int token, YYSTYPE *lval) { static char buffer[2048]; if(!token) return "<>"; switch(token) { case PREFIX: return "PREFIX"; case BASE: return "BASE"; case A: return "A"; case DOT: return "DOT"; case COMMA: return "COMMA"; case SEMICOLON: return "SEMICOLON"; case LEFT_SQUARE: return "LEFT_SQUARE"; case RIGHT_SQUARE: return "RIGHT_SQUARE"; case AT: return "AT"; case HAT: return "HAT"; case STRING_LITERAL: sprintf(buffer, "STRING_LITERAL(%s)", lval->string); return buffer; case URI_LITERAL: sprintf(buffer, "URI_LITERAL(%s)", (lval->uri ? (char*)raptor_uri_as_string(lval->uri) : "")); return buffer; case BLANK_LITERAL: sprintf(buffer, "BLANK_LITERAL(%s)", lval->string); return buffer; case QNAME_LITERAL: sprintf(buffer, "QNAME_LITERAL(%s)", (lval->uri ? (char*)raptor_uri_as_string(lval->uri) : "")); return buffer; case INTEGER_LITERAL: sprintf(buffer, "INTEGER_LITERAL(%d)", lval->integer); return buffer; case FLOATING_LITERAL: sprintf(buffer, "FLOATING_LITERAL(%s)", lval->string); return buffer; case IDENTIFIER: sprintf(buffer, "IDENTIFIER(%s)", (lval->string ? (char*)lval->string : "")); return buffer; case DECIMAL_LITERAL: sprintf(buffer, "DECIMAL_LITERAL(%s)", lval->string); return buffer; case ERROR_TOKEN: return "ERROR"; default: fprintf(stderr, "turtle_token_print: UNKNOWN token %d - add a new case\n", token); abort(); } } #endif #ifdef STANDALONE static void turtle_token_free(int token, YYSTYPE *lval) { if(!token) return; switch(token) { case STRING_LITERAL: case BLANK_LITERAL: case IDENTIFIER: if(lval->string) RAPTOR_FREE(cstring, lval->string); break; case URI_LITERAL: case QNAME_LITERAL: if(lval->uri) raptor_free_uri(lval->uri); break; default: break; } } int main(int argc, char *argv[]) { raptor_parser rdf_parser; raptor_turtle_parser turtle_parser; yyscan_t scanner; int token=EOF; FILE *fh; YYSTYPE lval; const unsigned char *uri_string; char *filename=NULL; raptor_init(); if(argc > 1) { filename=argv[1]; fh=fopen(filename, "r"); if(!fh) { fprintf(stderr, "%s: Cannot open file %s - %s\n", argv[0], filename, strerror(errno)); exit(1); } } else { filename=""; fh=stdin; } memset(&rdf_parser, 0, sizeof(raptor_parser)); memset(&turtle_parser, 0, sizeof(raptor_turtle_parser)); turtle_lexer_lex_init(&turtle_parser.scanner); scanner=turtle_parser.scanner; turtle_lexer_set_in(fh, scanner); turtle_lexer_set_extra(&rdf_parser, scanner); /* Initialise enough of the parser and locator to get error messages */ rdf_parser.context=&turtle_parser; turtle_parser.lineno=1; rdf_parser.locator.file=filename; rdf_parser.locator.column= -1; uri_string=raptor_uri_filename_to_uri_string(filename); rdf_parser.base_uri=raptor_new_uri(uri_string); RAPTOR_FREE(cstring, (void*)uri_string); while(1) { memset(&lval, 0, sizeof(YYSTYPE)); if(turtle_lexer_get_text(scanner) != NULL) printf("yyinput '%s'\n", turtle_lexer_get_text(scanner)); token=turtle_lexer_lex(&lval,scanner); #ifdef RAPTOR_DEBUG printf("token %s\n", turtle_token_print(token, &lval)); #else printf("token %d\n", token); #endif turtle_token_free(token, &lval); if(!token || token == EOF || token == ERROR_TOKEN) break; } turtle_lexer_lex_destroy(scanner); raptor_free_uri(rdf_parser.base_uri); raptor_finish(); if(token == ERROR_TOKEN) return 1; return 0; } #endif