#line 2 "pgc.c" /*------------------------------------------------------------------------- * * pgc.l * lexical scanner for ecpg * * This is a modified version of src/backend/parser/scan.l * * * Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION * src/interfaces/ecpg/preproc/pgc.l * *------------------------------------------------------------------------- */ #include "postgres_fe.h" #include #include #include "common/string.h" #include "extern.h" #include "preproc.h" #line 30 "pgc.c" #define YY_INT_ALIGNED short int /* A lexical scanner generated by flex */ #define yy_create_buffer base_yy_create_buffer #define yy_delete_buffer base_yy_delete_buffer #define yy_flex_debug base_yy_flex_debug #define yy_init_buffer base_yy_init_buffer #define yy_flush_buffer base_yy_flush_buffer #define yy_load_buffer_state base_yy_load_buffer_state #define yy_switch_to_buffer base_yy_switch_to_buffer #define yyin base_yyin #define yyleng base_yyleng #define yylex base_yylex #define yylineno base_yylineno #define yyout base_yyout #define yyrestart base_yyrestart #define yytext base_yytext #define yywrap base_yywrap #define yyalloc base_yyalloc #define yyrealloc base_yyrealloc #define yyfree base_yyfree #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 6 #define YY_FLEX_SUBMINOR_VERSION 1 #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 */ /* TODO: this is always defined, so inline it */ #define yyconst const #if defined(__GNUC__) && __GNUC__ >= 3 #define yynoreturn __attribute__((__noreturn__)) #else #define yynoreturn #endif /* Returned upon end-of-file. */ #define YY_NULL 0 /* Promotes a possibly negative, possibly signed char to an unsigned * integer for use as an array index. If the signed char is negative, * we want to instead treat it as an 8-bit unsigned char, hence the * double cast. */ #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) /* Enter a start condition. This macro really ought to take a parameter, * but we do it the disgusting crufty way forced on us by the ()-less * definition of BEGIN. */ #define BEGIN (yy_start) = 1 + 2 * /* Translate the current start state into a value that can be later handed * to BEGIN to return to the state. The YYSTATE alias is for lex * compatibility. */ #define YY_START (((yy_start) - 1) / 2) #define YYSTATE YY_START /* Action number for EOF rule of a given start state. */ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) /* Special action meaning "start processing a new file". */ #define YY_NEW_FILE base_yyrestart(base_yyin ) #define YY_END_OF_BUFFER_CHAR 0 /* Size of default input buffer. */ #ifndef YY_BUF_SIZE #ifdef __ia64__ /* On IA-64, the buffer size is 16k, not 8k. * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. * Ditto for the __ia64__ case accordingly. */ #define YY_BUF_SIZE 32768 #else #define YY_BUF_SIZE 16384 #endif /* __ia64__ */ #endif /* The state buf must be large enough to hold one state per character in the main buffer. */ #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) #ifndef YY_TYPEDEF_YY_BUFFER_STATE #define YY_TYPEDEF_YY_BUFFER_STATE typedef struct yy_buffer_state *YY_BUFFER_STATE; #endif #ifndef YY_TYPEDEF_YY_SIZE_T #define YY_TYPEDEF_YY_SIZE_T typedef size_t yy_size_t; #endif extern int base_yyleng; extern FILE *base_yyin, *base_yyout; #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 /* Note: We specifically omit the test for yy_rule_can_match_eol because it requires * access to the local variable yy_act. Since yyless() is a macro, it would break * existing scanners that call yyless() from OUTSIDE base_yylex. * One obvious solution it to make yy_act a global. I tried that, and saw * a 5% performance hit in a non-base_yylineno scanner, because yy_act is * normally declared as a register variable-- so it is not worth it. */ #define YY_LESS_LINENO(n) \ do { \ int yyl;\ for ( yyl = n; yyl < base_yyleng; ++yyl )\ if ( base_yytext[yyl] == '\n' )\ --base_yylineno;\ }while(0) #define YY_LINENO_REWIND_TO(dst) \ do {\ const char *p;\ for ( p = yy_cp-1; p >= (dst); --p)\ if ( *p == '\n' )\ --base_yylineno;\ }while(0) /* Return all but the first "n" matched characters back to the input stream. */ #define yyless(n) \ do \ { \ /* Undo effects of setting up base_yytext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ *yy_cp = (yy_hold_char); \ YY_RESTORE_YY_MORE_OFFSET \ (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ YY_DO_BEFORE_ACTION; /* set up base_yytext again */ \ } \ while ( 0 ) #define unput(c) yyunput( c, (yytext_ptr) ) #ifndef YY_STRUCT_YY_BUFFER_STATE #define YY_STRUCT_YY_BUFFER_STATE struct yy_buffer_state { FILE *yy_input_file; char *yy_ch_buf; /* input buffer */ char *yy_buf_pos; /* current position in input buffer */ /* Size of input buffer in bytes, not including room for EOB * characters. */ int yy_buf_size; /* Number of characters read into yy_ch_buf, not including EOB * characters. */ int yy_n_chars; /* Whether we "own" the buffer - i.e., we know we created it, * and can realloc() it to grow it, and should free() it to * delete it. */ int yy_is_our_buffer; /* Whether this is an "interactive" input source; if so, and * if we're using stdio for input, then we want to use getc() * instead of fread(), to make sure we stop fetching input after * each newline. */ int yy_is_interactive; /* Whether we're considered to be at the beginning of a line. * If so, '^' rules will be active on the next match, otherwise * not. */ int yy_at_bol; int yy_bs_lineno; /**< The line count. */ int yy_bs_column; /**< The column count. */ /* Whether to try to fill the input buffer when we reach the * end of it. */ int yy_fill_buffer; int yy_buffer_status; #define YY_BUFFER_NEW 0 #define YY_BUFFER_NORMAL 1 /* When an EOF's been seen but there's still some text to process * then we mark the buffer as YY_EOF_PENDING, to indicate that we * shouldn't try reading from the input source any more. We might * still have a bunch of tokens to match, though, because of * possible backing-up. * * When we actually see the EOF, we change the status to "new" * (via base_yyrestart()), so that the user can continue scanning by * just pointing base_yyin at a new input file. */ #define YY_BUFFER_EOF_PENDING 2 }; #endif /* !YY_STRUCT_YY_BUFFER_STATE */ /* Stack of input buffers. */ static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */ /* We provide macros for accessing buffer states in case in the * future we want to put the buffer states in a more general * "scanner state". * * Returns the top of the stack, or NULL. */ #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ : NULL) /* Same as previous macro, but useful when we know that the buffer stack is not * NULL or when we need an lvalue. For internal use only. */ #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] /* yy_hold_char holds the character lost when base_yytext is formed. */ static char yy_hold_char; static int yy_n_chars; /* number of characters read into yy_ch_buf */ int base_yyleng; /* Points to current character in buffer. */ static char *yy_c_buf_p = NULL; static int yy_init = 0; /* whether we need to initialize */ static int yy_start = 0; /* start state number */ /* Flag which is used to allow base_yywrap()'s to do buffer switches * instead of setting up a fresh base_yyin. A bit of a hack ... */ static int yy_did_buffer_switch_on_eof; void base_yyrestart (FILE *input_file ); void base_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ); YY_BUFFER_STATE base_yy_create_buffer (FILE *file,int size ); void base_yy_delete_buffer (YY_BUFFER_STATE b ); void base_yy_flush_buffer (YY_BUFFER_STATE b ); void base_yypush_buffer_state (YY_BUFFER_STATE new_buffer ); void base_yypop_buffer_state (void ); static void base_yyensure_buffer_stack (void ); static void base_yy_load_buffer_state (void ); static void base_yy_init_buffer (YY_BUFFER_STATE b,FILE *file ); #define YY_FLUSH_BUFFER base_yy_flush_buffer(YY_CURRENT_BUFFER ) YY_BUFFER_STATE base_yy_scan_buffer (char *base,yy_size_t size ); YY_BUFFER_STATE base_yy_scan_string (yyconst char *yy_str ); YY_BUFFER_STATE base_yy_scan_bytes (yyconst char *bytes,int len ); void *base_yyalloc (yy_size_t ); void *base_yyrealloc (void *,yy_size_t ); void base_yyfree (void * ); #define yy_new_buffer base_yy_create_buffer #define yy_set_interactive(is_interactive) \ { \ if ( ! YY_CURRENT_BUFFER ){ \ base_yyensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ base_yy_create_buffer(base_yyin,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ } #define yy_set_bol(at_bol) \ { \ if ( ! YY_CURRENT_BUFFER ){\ base_yyensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ base_yy_create_buffer(base_yyin,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ } #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) /* Begin user sect3 */ #define base_yywrap() (/*CONSTCOND*/1) #define YY_SKIP_YYWRAP typedef unsigned char YY_CHAR; FILE *base_yyin = NULL, *base_yyout = NULL; typedef int yy_state_type; extern int base_yylineno; int base_yylineno = 1; extern char *base_yytext; #ifdef yytext_ptr #undef yytext_ptr #endif #define yytext_ptr base_yytext static yy_state_type yy_get_previous_state (void ); static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); static int yy_get_next_buffer (void ); static void yynoreturn yy_fatal_error (yyconst char* msg ); /* Done after the current pattern has been matched and before the * corresponding action - sets up base_yytext. */ #define YY_DO_BEFORE_ACTION \ (yytext_ptr) = yy_bp; \ base_yyleng = (int) (yy_cp - yy_bp); \ (yy_hold_char) = *yy_cp; \ *yy_cp = '\0'; \ (yy_c_buf_p) = yy_cp; #define YY_NUM_RULES 151 #define YY_END_OF_BUFFER 152 /* 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[831] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 15, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 152, 150, 120, 98, 98, 120, 56, 120, 80, 92, 120, 22, 96, 97, 91, 94, 90, 95, 120, 93, 70, 70, 88, 89, 120, 103, 120, 86, 86, 101, 102, 99, 120, 100, 78, 1, 1, 68, 49, 68, 66, 67, 68, 23, 67, 67, 67, 67, 70, 67, 67, 67, 67, 77, 77, 77, 77, 77, 77, 149, 149, 149, 149, 145, 145, 144, 143, 142, 126, 126, 15, 12, 8, 8, 9, 9, 9, 9, 55, 51, 57, 52, 57, 14, 19, 36, 36, 28, 42, 35, 30, 26, 26, 35, 46, 46, 48, 141, 141, 139, 98, 98, 139, 139, 53, 32, 0, 0, 112, 0, 0, 0, 0, 0, 0, 0, 117, 108, 0, 87, 115, 109, 113, 110, 114, 104, 119, 72, 2, 0, 116, 72, 70, 0, 82, 106, 111, 105, 86, 86, 107, 1, 0, 68, 65, 68, 0, 0, 44, 69, 43, 1, 59, 72, 3, 72, 70, 74, 58, 60, 76, 62, 64, 61, 63, 77, 11, 24, 21, 0, 18, 0, 148, 0, 0, 0, 144, 142, 0, 0, 125, 15, 12, 12, 13, 8, 10, 7, 4, 10, 6, 5, 55, 54, 57, 14, 19, 19, 20, 36, 28, 28, 33, 29, 38, 39, 38, 38, 38, 35, 30, 30, 31, 26, 26, 27, 34, 46, 45, 47, 0, 0, 140, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 85, 85, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 118, 2, 0, 81, 72, 0, 73, 82, 86, 68, 68, 43, 1, 1, 3, 72, 70, 75, 76, 0, 0, 0, 50, 25, 147, 146, 12, 17, 13, 12, 4, 5, 19, 16, 20, 19, 28, 41, 29, 28, 39, 0, 0, 40, 30, 31, 30, 26, 27, 26, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 85, 85, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 86, 68, 0, 72, 70, 76, 0, 0, 0, 76, 147, 147, 146, 146, 12, 12, 12, 12, 19, 19, 19, 19, 28, 28, 28, 28, 39, 0, 0, 40, 30, 30, 30, 30, 26, 26, 26, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 85, 85, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 134, 0, 0, 0, 0, 0, 0, 0, 86, 68, 68, 0, 72, 72, 76, 0, 0, 0, 0, 12, 12, 12, 12, 12, 19, 19, 16, 19, 19, 28, 28, 28, 28, 28, 0, 0, 30, 30, 30, 30, 30, 26, 26, 26, 26, 26, 0, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 85, 85, 0, 0, 0, 0, 0, 0, 0, 0, 0, 134, 0, 136, 0, 130, 0, 0, 124, 0, 86, 68, 0, 0, 72, 0, 0, 0, 0, 76, 76, 12, 19, 28, 0, 37, 30, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 122, 0, 138, 130, 132, 0, 124, 0, 79, 71, 0, 0, 0, 0, 0, 76, 0, 0, 0, 0, 0, 0, 0, 83, 83, 122, 132, 128, 79, 79, 86, 86, 86, 86, 71, 76, 0, 0, 0, 0, 0, 0, 0, 0, 0, 83, 83, 83, 0, 83, 0, 128, 0, 0, 0, 86, 86, 86, 86, 86, 86, 71, 76, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 86, 86, 86, 86, 86, 86, 86, 86, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 86, 86, 86, 86, 86, 86, 86, 86, 133, 0, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 86, 133, 0, 135, 86, 86, 86, 86, 86, 0, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41, 0, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 84, 84, 0, 0, 123, 86, 0, 137, 129, 86, 86, 123, 131, 0, 53, 0, 0, 0, 0, 0, 53, 53, 0, 0, 0, 0, 0, 0, 0, 32, 32, 0, 0, 0, 0, 0, 32, 32, 84, 84, 84, 84, 121, 0, 121, 131, 86, 0, 0, 0, 0, 0, 0, 0, 0, 32, 0, 0, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 127, 127, 53, 0, 0, 0, 0, 0, 0, 0, 0, 32, 32, 0, 0, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ; static yyconst YY_CHAR yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 2, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 21, 21, 21, 21, 21, 21, 22, 22, 23, 24, 25, 26, 27, 28, 28, 29, 30, 31, 32, 33, 34, 35, 35, 36, 35, 35, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 35, 35, 47, 35, 35, 48, 49, 50, 51, 52, 28, 29, 30, 31, 32, 33, 34, 35, 35, 53, 35, 35, 37, 38, 39, 40, 41, 42, 43, 44, 45, 54, 35, 35, 55, 35, 35, 56, 57, 58, 28, 1, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59 } ; static yyconst YY_CHAR yy_meta[60] = { 0, 1, 2, 3, 3, 4, 5, 4, 6, 7, 4, 8, 9, 9, 10, 7, 1, 11, 12, 13, 14, 14, 14, 15, 16, 17, 18, 19, 4, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 12, 22, 9, 4, 21, 21, 21, 21, 1, 4, 1, 21 } ; static yyconst flex_uint16_t yy_base[922] = { 0, 0, 0, 0, 0, 59, 0, 113, 117, 122, 125, 149, 0, 208, 0, 1805, 1803, 263, 316, 116, 117, 1805, 1803, 263, 268, 1758, 1753, 273, 283, 1752, 1748, 1747, 1745, 260, 264, 131, 140, 373, 0, 294, 303, 1748, 1747, 1740, 1739, 1745, 5228, 5228, 297, 343, 1717, 5228, 257, 316, 1716, 1730, 5228, 5228, 5228, 289, 106, 5228, 302, 337, 342, 415, 420, 5228, 5228, 1713, 1711, 1708, 0, 232, 5228, 5228, 5228, 1675, 5228, 5228, 442, 448, 1704, 5228, 466, 439, 0, 0, 5228, 5228, 1712, 436, 1712, 445, 269, 311, 1697, 1695, 0, 1705, 1700, 1690, 1690, 1684, 1660, 0, 5228, 0, 5228, 484, 5228, 5228, 0, 5228, 494, 0, 497, 0, 0, 320, 1665, 341, 1654, 0, 1657, 5228, 5228, 275, 0, 503, 0, 0, 522, 483, 0, 532, 542, 538, 1641, 0, 0, 1639, 5228, 507, 5228, 5228, 5228, 436, 316, 548, 558, 564, 459, 5228, 612, 538, 540, 1609, 83, 400, 1592, 5228, 5228, 460, 5228, 5228, 5228, 5228, 5228, 5228, 1612, 5228, 560, 0, 1612, 5228, 563, 568, 588, 0, 5228, 5228, 5228, 0, 1572, 5228, 670, 477, 0, 0, 673, 430, 494, 5228, 344, 1591, 726, 5228, 578, 0, 664, 673, 687, 5228, 5228, 539, 0, 0, 0, 0, 0, 5228, 5228, 5228, 471, 5228, 1574, 5228, 1580, 1557, 708, 5228, 0, 713, 718, 5228, 0, 744, 753, 1546, 0, 502, 5228, 0, 508, 5228, 0, 0, 5228, 5228, 0, 756, 763, 1541, 0, 782, 785, 5228, 1534, 5228, 333, 0, 0, 0, 0, 788, 804, 1528, 807, 814, 1525, 5228, 0, 5228, 1533, 725, 810, 5228, 1496, 1493, 824, 1507, 1490, 833, 836, 1504, 1487, 862, 5228, 0, 1504, 0, 791, 531, 1476, 1469, 657, 1457, 1466, 1459, 807, 1455, 686, 1455, 1433, 5228, 0, 1454, 5228, 824, 834, 841, 0, 1420, 913, 1431, 1436, 0, 966, 0, 847, 853, 863, 696, 1412, 0, 908, 5228, 5228, 931, 941, 945, 5228, 1420, 949, 0, 0, 957, 5228, 1417, 984, 993, 5228, 1412, 996, 527, 0, 0, 0, 1003, 1410, 1022, 1025, 1407, 1028, 1415, 1390, 1031, 1373, 1047, 1397, 1050, 1369, 1043, 975, 1057, 1066, 1377, 1374, 1362, 1361, 1363, 1360, 1349, 1346, 726, 1348, 1344, 745, 1334, 1331, 1324, 1324, 1069, 1111, 1054, 1061, 1066, 721, 1105, 1129, 1139, 1146, 1087, 5228, 1149, 5228, 1155, 1167, 1173, 1178, 1189, 1184, 1195, 1200, 1205, 1211, 1216, 1221, 5228, 0, 0, 5228, 1228, 1232, 1238, 1244, 1248, 1254, 1260, 1264, 1270, 1276, 1280, 1283, 1286, 1324, 1304, 1292, 1308, 1314, 1339, 1316, 1345, 1331, 1362, 578, 1376, 1310, 1306, 1293, 680, 1301, 1300, 1285, 717, 1288, 1349, 1367, 1290, 1289, 1287, 722, 1279, 1371, 1263, 0, 1421, 1366, 1379, 1383, 841, 1478, 1405, 1535, 1416, 1439, 1450, 1460, 1488, 1456, 1505, 1508, 1529, 1589, 1593, 1600, 1605, 1610, 1621, 1616, 0, 0, 1626, 1637, 1642, 1647, 1653, 1658, 1663, 1674, 1679, 1669, 1557, 1262, 1685, 1690, 1273, 1695, 1706, 1711, 1716, 1744, 1764, 1769, 1272, 1285, 662, 1284, 1780, 1789, 1793, 0, 1258, 1246, 1244, 0, 1241, 1225, 1237, 1227, 1466, 1472, 5228, 1701, 1511, 1220, 1221, 1632, 1202, 1206, 858, 1754, 1767, 1784, 1842, 0, 0, 1220, 919, 1899, 1817, 1822, 1852, 0, 5228, 1869, 1872, 1192, 1833, 1186, 1917, 1920, 1936, 1185, 1188, 0, 1177, 1776, 1798, 5228, 1828, 1858, 1152, 1892, 1146, 1989, 1884, 1160, 1157, 755, 2015, 0, 2073, 0, 1942, 1948, 1132, 2062, 1952, 1121, 1955, 1958, 1939, 1981, 1984, 2122, 0, 1114, 108, 842, 1106, 1979, 2176, 0, 2094, 246, 1110, 2102, 2001, 2111, 2234, 2012, 2024, 2028, 2034, 1088, 2037, 1085, 2099, 1086, 880, 1071, 1071, 910, 1070, 765, 1067, 1065, 5228, 0, 0, 1059, 1048, 790, 2237, 2133, 0, 1061, 2241, 2244, 2149, 0, 1049, 1032, 1030, 1006, 990, 976, 767, 950, 936, 796, 924, 899, 892, 893, 890, 855, 936, 833, 832, 2261, 841, 2282, 2299, 2302, 822, 2318, 866, 895, 966, 793, 790, 780, 2107, 2265, 767, 766, 745, 936, 741, 2129, 2322, 716, 689, 686, 2338, 2348, 2358, 2364, 5228, 2368, 2384, 2394, 2404, 2420, 2423, 2439, 2442, 2374, 5228, 2459, 2469, 2480, 2496, 660, 658, 640, 957, 641, 562, 2159, 2334, 5228, 2499, 2167, 557, 541, 2170, 2502, 2253, 481, 426, 2507, 2517, 2527, 2537, 2547, 2565, 2575, 2585, 2595, 2605, 2621, 2624, 2640, 2643, 2660, 0, 355, 2663, 2679, 2696, 2699, 2718, 2735, 2745, 2756, 2766, 2776, 2788, 2445, 2512, 307, 286, 2533, 2543, 2772, 5228, 2553, 2601, 283, 2611, 2627, 2798, 2804, 2808, 2820, 2824, 2836, 2869, 2881, 0, 2892, 2897, 2902, 2914, 2924, 2950, 2960, 2930, 5228, 2970, 2986, 2990, 3006, 3009, 3026, 0, 2646, 2689, 2724, 2728, 2782, 100, 2814, 2830, 2853, 3045, 3055, 3065, 3075, 3085, 3101, 3111, 3133, 3121, 3149, 3159, 3169, 3179, 3189, 3207, 3217, 3227, 3237, 3247, 3263, 3273, 3283, 3294, 2857, 2861, 3311, 3322, 3332, 3343, 3360, 3370, 3388, 3391, 3408, 3424, 0, 3427, 3446, 3457, 3482, 3485, 3504, 3515, 3531, 3549, 3553, 3572, 3576, 3598, 3608, 3625, 5228, 3679, 3701, 3723, 3745, 3767, 3789, 3811, 3833, 3855, 3877, 3899, 3921, 3943, 3960, 3978, 3992, 3999, 4015, 4036, 4058, 4080, 4097, 4117, 4138, 4160, 4182, 4204, 4226, 4247, 4269, 4291, 1035, 4312, 4330, 4349, 470, 4366, 4387, 4406, 4420, 4438, 4454, 544, 828, 995, 4468, 586, 4488, 4509, 4531, 4553, 998, 1002, 1023, 4575, 4597, 4619, 4641, 4663, 4680, 4701, 4723, 4745, 1024, 1086, 4767, 4789, 4811, 4833, 4855, 1103, 1115, 4876, 1120, 1147, 1191, 4897, 4919, 4941, 4963, 4985, 5007, 5029, 5051, 5073, 5095, 5117, 5139, 5161, 5183, 5205 } ; static yyconst flex_int16_t yy_def[922] = { 0, 831, 831, 830, 3, 830, 5, 832, 832, 833, 833, 830, 11, 830, 13, 834, 834, 835, 835, 18, 18, 836, 836, 837, 837, 838, 838, 839, 839, 840, 840, 840, 840, 840, 840, 841, 841, 830, 37, 842, 842, 836, 836, 840, 840, 830, 830, 830, 830, 830, 830, 830, 843, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 844, 844, 830, 830, 830, 830, 830, 830, 830, 830, 845, 830, 843, 846, 845, 845, 830, 830, 845, 830, 845, 830, 847, 845, 845, 845, 848, 848, 848, 848, 848, 848, 849, 850, 830, 851, 830, 830, 830, 830, 852, 830, 853, 854, 830, 855, 855, 830, 830, 830, 830, 856, 830, 830, 830, 830, 857, 830, 858, 858, 830, 859, 860, 830, 830, 830, 860, 861, 861, 862, 830, 863, 830, 830, 830, 830, 830, 830, 830, 830, 843, 830, 830, 154, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 864, 865, 830, 830, 830, 830, 866, 830, 830, 830, 844, 844, 830, 830, 843, 845, 845, 154, 154, 830, 830, 830, 867, 868, 830, 830, 869, 830, 830, 830, 830, 830, 870, 845, 845, 845, 845, 848, 830, 830, 830, 830, 830, 849, 830, 850, 851, 830, 830, 852, 830, 853, 830, 854, 830, 830, 830, 855, 830, 830, 871, 830, 830, 872, 856, 830, 830, 857, 830, 830, 830, 858, 830, 830, 830, 830, 830, 830, 873, 874, 875, 860, 830, 830, 830, 830, 830, 830, 830, 861, 830, 876, 830, 863, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 154, 830, 277, 277, 154, 277, 154, 154, 154, 277, 830, 830, 830, 830, 830, 830, 830, 830, 830, 864, 865, 830, 830, 830, 830, 866, 844, 277, 304, 867, 868, 868, 869, 830, 830, 830, 870, 830, 877, 878, 830, 830, 830, 830, 830, 830, 830, 879, 871, 872, 830, 830, 830, 880, 830, 830, 830, 881, 830, 882, 883, 884, 830, 830, 885, 830, 830, 886, 876, 830, 887, 830, 830, 830, 888, 830, 889, 277, 277, 277, 154, 154, 154, 154, 277, 277, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 844, 889, 830, 830, 830, 890, 878, 878, 878, 878, 830, 830, 830, 830, 891, 879, 879, 879, 892, 880, 880, 880, 893, 881, 881, 881, 830, 894, 895, 830, 896, 885, 885, 885, 897, 886, 886, 886, 830, 887, 887, 887, 887, 830, 898, 888, 888, 888, 888, 830, 889, 899, 889, 277, 889, 154, 154, 154, 154, 277, 277, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 844, 374, 277, 830, 830, 830, 890, 900, 878, 830, 878, 891, 891, 891, 891, 879, 892, 892, 892, 892, 880, 893, 893, 893, 893, 881, 901, 902, 896, 896, 896, 896, 885, 897, 897, 897, 897, 886, 830, 830, 887, 887, 830, 898, 898, 898, 898, 898, 888, 888, 830, 899, 830, 277, 889, 889, 889, 154, 154, 154, 154, 277, 277, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 844, 447, 830, 830, 830, 900, 525, 525, 525, 525, 903, 891, 892, 893, 904, 830, 896, 897, 830, 887, 830, 898, 898, 888, 830, 154, 277, 830, 830, 830, 830, 830, 830, 830, 830, 830, 844, 830, 830, 525, 525, 525, 525, 903, 905, 830, 887, 830, 898, 888, 830, 154, 830, 830, 830, 830, 830, 576, 844, 844, 844, 844, 830, 830, 906, 830, 830, 830, 887, 830, 898, 888, 830, 277, 830, 277, 277, 830, 830, 830, 830, 830, 830, 844, 844, 844, 844, 844, 844, 830, 583, 902, 830, 830, 830, 887, 830, 907, 830, 898, 888, 830, 908, 830, 277, 830, 830, 830, 830, 844, 844, 844, 844, 844, 844, 844, 844, 830, 830, 830, 830, 830, 887, 830, 909, 898, 888, 830, 910, 277, 830, 830, 830, 830, 844, 844, 844, 844, 844, 844, 844, 844, 830, 830, 830, 830, 830, 887, 830, 911, 887, 830, 909, 909, 912, 909, 898, 888, 830, 913, 888, 830, 910, 910, 914, 910, 277, 830, 830, 830, 830, 844, 830, 830, 830, 844, 844, 844, 844, 844, 830, 830, 830, 830, 887, 887, 830, 887, 887, 915, 909, 909, 830, 909, 909, 898, 830, 916, 898, 908, 830, 888, 888, 830, 888, 888, 917, 910, 910, 830, 910, 910, 277, 830, 830, 830, 830, 844, 830, 830, 830, 844, 844, 830, 830, 915, 887, 915, 915, 918, 915, 915, 912, 907, 898, 898, 830, 898, 898, 919, 919, 888, 830, 917, 917, 920, 917, 917, 914, 908, 277, 830, 277, 830, 830, 830, 830, 830, 844, 915, 915, 915, 830, 915, 915, 915, 915, 898, 919, 919, 921, 919, 919, 919, 917, 917, 917, 830, 917, 917, 917, 917, 830, 830, 918, 915, 919, 919, 830, 919, 919, 919, 919, 920, 908, 917, 915, 921, 919, 917, 915, 919, 917, 915, 919, 917, 915, 919, 917, 919, 0, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830 } ; static yyconst flex_uint16_t yy_nxt[5288] = { 0, 47, 48, 49, 48, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 66, 67, 68, 69, 70, 71, 47, 72, 72, 72, 72, 73, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 74, 47, 75, 47, 72, 72, 72, 72, 76, 77, 78, 72, 79, 80, 81, 80, 82, 83, 84, 85, 86, 87, 88, 89, 89, 86, 86, 89, 90, 91, 92, 93, 93, 93, 94, 89, 95, 96, 97, 87, 98, 99, 98, 98, 100, 98, 98, 98, 98, 98, 101, 98, 98, 98, 98, 98, 98, 102, 103, 89, 79, 89, 86, 98, 98, 102, 103, 79, 87, 79, 98, 105, 290, 166, 291, 105, 109, 109, 109, 109, 109, 109, 121, 121, 167, 802, 140, 122, 122, 106, 107, 141, 106, 106, 107, 140, 106, 604, 110, 605, 141, 110, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 111, 111, 111, 111, 112, 112, 112, 112, 111, 111, 111, 112, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 113, 113, 113, 113, 114, 114, 114, 114, 113, 113, 113, 114, 118, 126, 118, 137, 118, 118, 126, 137, 131, 119, 118, 184, 118, 239, 120, 612, 132, 613, 131, 184, 118, 118, 118, 118, 203, 155, 132, 204, 145, 146, 145, 151, 151, 151, 147, 163, 152, 145, 146, 145, 164, 138, 156, 147, 127, 138, 118, 165, 778, 127, 775, 168, 118, 118, 133, 118, 239, 118, 118, 148, 169, 170, 119, 118, 133, 118, 231, 120, 148, 206, 207, 232, 774, 118, 118, 118, 118, 151, 151, 151, 157, 158, 152, 171, 159, 335, 335, 234, 173, 172, 172, 172, 235, 174, 160, 269, 194, 194, 194, 118, 175, 159, 160, 269, 760, 118, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 142, 142, 142, 142, 143, 143, 143, 143, 142, 142, 142, 143, 176, 292, 177, 177, 177, 176, 293, 177, 177, 177, 745, 186, 186, 186, 193, 178, 187, 186, 186, 186, 178, 197, 187, 198, 198, 198, 194, 194, 194, 179, 200, 283, 201, 201, 201, 284, 158, 179, 190, 268, 190, 163, 190, 190, 317, 202, 164, 190, 190, 318, 190, 302, 190, 220, 220, 220, 268, 302, 190, 190, 190, 190, 155, 223, 223, 223, 227, 228, 228, 191, 250, 250, 241, 242, 242, 221, 265, 265, 265, 156, 191, 229, 744, 231, 190, 225, 192, 243, 232, 234, 190, 245, 246, 246, 235, 286, 251, 192, 267, 287, 247, 255, 256, 256, 252, 253, 248, 258, 259, 259, 247, 258, 259, 259, 399, 399, 257, 270, 270, 270, 247, 238, 260, 314, 315, 336, 260, 273, 274, 274, 357, 336, 271, 151, 151, 151, 247, 358, 152, 283, 742, 286, 275, 284, 285, 287, 288, 172, 172, 172, 299, 299, 299, 176, 316, 177, 177, 177, 741, 426, 178, 272, 737, 178, 498, 198, 198, 198, 178, 272, 300, 276, 300, 378, 378, 301, 301, 301, 202, 276, 277, 277, 278, 279, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 280, 277, 277, 277, 277, 277, 277, 277, 277, 277, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 277, 282, 277, 277, 277, 281, 281, 281, 277, 277, 277, 277, 186, 186, 186, 736, 497, 187, 304, 734, 304, 277, 304, 304, 310, 310, 310, 304, 304, 361, 304, 200, 305, 311, 311, 311, 362, 202, 304, 304, 304, 304, 312, 733, 312, 732, 202, 301, 301, 301, 220, 220, 220, 314, 315, 223, 223, 223, 369, 702, 223, 223, 223, 701, 304, 370, 505, 265, 265, 265, 304, 308, 221, 308, 505, 308, 308, 225, 314, 315, 308, 308, 225, 308, 316, 308, 227, 228, 228, 267, 700, 308, 308, 308, 308, 321, 321, 321, 241, 242, 242, 229, 436, 509, 322, 327, 327, 327, 517, 316, 323, 509, 528, 243, 328, 699, 517, 308, 697, 436, 329, 439, 561, 308, 245, 246, 246, 331, 331, 331, 255, 256, 256, 354, 355, 356, 332, 633, 439, 248, 696, 695, 333, 654, 634, 257, 339, 339, 339, 258, 259, 259, 265, 265, 265, 332, 342, 342, 342, 691, 654, 340, 640, 690, 260, 332, 270, 270, 270, 641, 689, 343, 657, 681, 267, 273, 274, 274, 349, 349, 349, 271, 337, 366, 299, 299, 299, 332, 337, 657, 275, 367, 671, 350, 301, 301, 301, 178, 314, 315, 366, 301, 301, 301, 666, 375, 665, 376, 376, 376, 272, 200, 374, 377, 377, 377, 606, 305, 272, 276, 202, 607, 276, 301, 301, 301, 202, 276, 663, 316, 276, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 379, 379, 379, 686, 614, 277, 277, 277, 304, 627, 304, 686, 304, 304, 662, 381, 661, 304, 304, 660, 304, 659, 305, 383, 383, 383, 560, 561, 304, 304, 304, 304, 687, 385, 385, 385, 630, 321, 321, 321, 687, 389, 228, 228, 631, 384, 322, 658, 382, 327, 327, 327, 323, 630, 304, 386, 390, 562, 328, 656, 304, 308, 664, 308, 329, 308, 308, 354, 355, 356, 308, 308, 698, 308, 655, 308, 393, 242, 242, 664, 698, 308, 308, 308, 308, 331, 331, 331, 397, 246, 246, 394, 688, 735, 332, 339, 339, 339, 653, 338, 333, 735, 400, 398, 332, 338, 401, 308, 400, 688, 340, 652, 401, 308, 405, 256, 256, 342, 342, 342, 409, 259, 259, 413, 270, 270, 332, 402, 471, 406, 651, 264, 343, 402, 471, 410, 424, 425, 414, 349, 349, 349, 419, 274, 274, 264, 264, 426, 332, 354, 355, 356, 280, 650, 350, 649, 648, 420, 354, 355, 356, 444, 444, 444, 448, 448, 448, 415, 644, 375, 639, 449, 449, 449, 450, 415, 377, 377, 377, 383, 383, 383, 427, 276, 202, 637, 421, 636, 635, 202, 472, 276, 632, 638, 421, 629, 472, 379, 379, 379, 628, 384, 637, 445, 424, 425, 446, 534, 446, 626, 446, 446, 381, 534, 625, 447, 446, 624, 446, 535, 305, 379, 379, 379, 564, 535, 446, 446, 446, 446, 564, 379, 379, 379, 614, 608, 381, 603, 379, 379, 379, 385, 385, 385, 592, 382, 452, 457, 321, 321, 427, 584, 446, 453, 454, 589, 458, 584, 446, 389, 228, 228, 459, 386, 528, 389, 228, 228, 522, 382, 389, 228, 228, 576, 390, 575, 393, 242, 242, 382, 390, 462, 327, 327, 455, 460, 382, 393, 242, 242, 463, 394, 393, 242, 242, 611, 464, 467, 331, 331, 572, 611, 394, 397, 246, 246, 468, 465, 397, 246, 246, 571, 469, 397, 246, 246, 570, 567, 398, 565, 474, 339, 339, 398, 405, 256, 256, 528, 470, 475, 405, 256, 256, 556, 555, 476, 405, 256, 256, 406, 479, 342, 342, 553, 552, 406, 409, 259, 259, 480, 548, 477, 409, 259, 259, 481, 409, 259, 259, 547, 546, 410, 483, 483, 483, 506, 545, 410, 413, 270, 270, 482, 413, 270, 270, 413, 270, 270, 413, 270, 270, 502, 502, 414, 419, 274, 274, 414, 353, 497, 485, 544, 540, 414, 538, 520, 489, 349, 349, 420, 419, 274, 274, 518, 484, 490, 419, 274, 274, 486, 516, 491, 415, 515, 514, 420, 415, 510, 508, 415, 415, 493, 415, 507, 415, 506, 504, 415, 421, 503, 415, 419, 274, 274, 502, 497, 421, 495, 424, 425, 492, 511, 511, 511, 421, 487, 420, 443, 492, 426, 421, 442, 421, 441, 280, 424, 425, 440, 421, 512, 512, 512, 494, 444, 444, 444, 426, 438, 499, 500, 501, 280, 437, 435, 522, 421, 523, 523, 523, 434, 426, 513, 433, 421, 427, 280, 432, 375, 431, 524, 524, 524, 430, 524, 524, 524, 429, 379, 379, 379, 428, 427, 202, 422, 417, 519, 202, 416, 379, 379, 379, 411, 452, 263, 407, 427, 304, 403, 304, 395, 304, 304, 454, 381, 391, 447, 304, 387, 304, 315, 521, 457, 321, 321, 193, 374, 304, 304, 304, 304, 458, 373, 457, 321, 321, 382, 459, 298, 389, 228, 228, 458, 457, 321, 321, 372, 382, 459, 511, 511, 511, 458, 304, 460, 512, 512, 512, 459, 304, 525, 526, 379, 379, 525, 525, 525, 371, 368, 525, 525, 457, 321, 321, 365, 525, 528, 513, 364, 363, 458, 360, 525, 525, 525, 525, 531, 525, 462, 327, 327, 462, 327, 327, 551, 551, 551, 463, 359, 353, 463, 352, 351, 464, 348, 347, 464, 346, 525, 529, 525, 292, 462, 327, 327, 525, 525, 525, 379, 379, 379, 463, 263, 344, 380, 380, 341, 464, 380, 380, 380, 380, 334, 381, 380, 380, 380, 380, 380, 330, 483, 483, 483, 380, 324, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 380, 320, 382, 319, 530, 530, 530, 530, 462, 327, 327, 530, 393, 242, 242, 217, 193, 463, 484, 467, 331, 331, 303, 532, 467, 331, 331, 465, 468, 467, 331, 331, 298, 468, 469, 397, 246, 246, 468, 469, 467, 331, 331, 295, 469, 474, 339, 339, 294, 468, 470, 554, 554, 554, 475, 533, 474, 339, 339, 289, 476, 474, 339, 339, 263, 475, 474, 339, 339, 261, 475, 476, 405, 256, 256, 475, 476, 479, 342, 342, 238, 536, 479, 342, 342, 236, 480, 477, 409, 259, 259, 480, 481, 479, 342, 342, 233, 481, 479, 342, 342, 217, 480, 482, 413, 270, 270, 480, 481, 413, 270, 270, 215, 537, 489, 349, 349, 214, 213, 485, 549, 549, 549, 490, 414, 489, 349, 349, 212, 491, 489, 349, 349, 211, 490, 489, 349, 349, 209, 490, 491, 208, 550, 199, 490, 491, 196, 189, 415, 185, 541, 539, 182, 415, 181, 180, 415, 162, 492, 161, 153, 415, 830, 489, 349, 349, 492, 150, 150, 492, 149, 149, 490, 136, 492, 136, 135, 492, 491, 492, 135, 129, 492, 419, 274, 274, 129, 492, 419, 274, 274, 557, 557, 557, 542, 573, 573, 573, 493, 499, 500, 501, 522, 420, 558, 558, 558, 492, 499, 500, 501, 426, 499, 500, 501, 492, 280, 549, 549, 549, 426, 524, 524, 524, 426, 280, 124, 421, 124, 280, 543, 116, 421, 116, 202, 421, 457, 321, 321, 550, 421, 462, 327, 327, 830, 458, 427, 551, 551, 551, 463, 531, 413, 270, 270, 427, 532, 830, 830, 427, 525, 526, 379, 379, 525, 525, 525, 414, 830, 525, 525, 467, 331, 331, 830, 525, 559, 574, 574, 574, 468, 566, 525, 525, 525, 525, 533, 525, 474, 339, 339, 479, 342, 342, 830, 830, 415, 475, 830, 830, 480, 830, 830, 536, 415, 830, 537, 830, 525, 529, 525, 554, 554, 554, 830, 525, 525, 525, 379, 379, 379, 582, 582, 582, 830, 380, 830, 830, 380, 380, 380, 380, 830, 453, 454, 380, 489, 349, 349, 489, 349, 349, 830, 380, 830, 490, 830, 830, 490, 830, 830, 541, 830, 830, 491, 419, 274, 274, 573, 573, 573, 585, 585, 585, 455, 830, 382, 413, 270, 270, 420, 419, 274, 274, 593, 594, 595, 597, 597, 597, 492, 568, 414, 492, 569, 830, 420, 830, 492, 830, 830, 492, 586, 830, 588, 587, 830, 830, 591, 421, 574, 574, 574, 599, 599, 599, 830, 421, 577, 577, 577, 415, 587, 830, 830, 421, 609, 609, 609, 415, 616, 616, 616, 421, 596, 830, 830, 598, 830, 617, 830, 621, 621, 621, 830, 618, 830, 830, 578, 579, 622, 830, 580, 593, 594, 595, 623, 597, 597, 597, 830, 830, 581, 593, 594, 595, 597, 597, 597, 580, 581, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 830, 489, 349, 349, 583, 583, 583, 583, 830, 830, 490, 583, 379, 379, 379, 830, 491, 830, 830, 380, 830, 830, 380, 380, 380, 380, 830, 453, 454, 380, 590, 830, 830, 585, 585, 585, 830, 380, 599, 599, 599, 413, 270, 270, 830, 492, 692, 692, 692, 830, 489, 349, 349, 492, 830, 830, 414, 830, 455, 490, 382, 577, 577, 577, 586, 491, 830, 587, 692, 692, 692, 830, 616, 616, 616, 830, 830, 619, 830, 830, 615, 617, 830, 830, 587, 415, 830, 618, 621, 621, 621, 600, 586, 415, 492, 601, 830, 622, 692, 692, 692, 830, 492, 623, 830, 602, 740, 740, 740, 743, 743, 743, 601, 602, 525, 526, 379, 379, 525, 525, 525, 610, 527, 525, 525, 527, 527, 527, 527, 525, 560, 561, 527, 610, 610, 610, 525, 525, 525, 525, 527, 525, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 562, 525, 529, 525, 610, 610, 610, 610, 525, 525, 525, 610, 419, 274, 274, 413, 270, 270, 830, 489, 349, 349, 419, 274, 274, 830, 830, 420, 490, 830, 414, 740, 740, 740, 491, 830, 830, 420, 830, 667, 668, 668, 830, 693, 693, 693, 642, 830, 669, 830, 830, 620, 830, 646, 670, 830, 421, 830, 645, 415, 673, 616, 616, 492, 421, 694, 421, 415, 830, 674, 830, 492, 830, 830, 421, 675, 830, 489, 349, 349, 677, 678, 678, 415, 830, 830, 490, 830, 830, 679, 830, 415, 491, 830, 830, 680, 683, 621, 621, 830, 693, 693, 693, 830, 830, 684, 830, 830, 676, 830, 830, 685, 693, 693, 693, 830, 667, 668, 668, 830, 830, 492, 694, 830, 421, 669, 668, 668, 668, 492, 830, 670, 421, 830, 694, 617, 705, 706, 706, 830, 830, 703, 413, 270, 270, 412, 673, 616, 616, 830, 830, 707, 419, 274, 274, 674, 830, 709, 830, 830, 415, 675, 673, 616, 616, 830, 830, 726, 415, 830, 272, 674, 711, 712, 712, 830, 830, 675, 272, 830, 708, 674, 673, 616, 616, 830, 415, 713, 708, 830, 830, 674, 830, 830, 415, 830, 421, 714, 715, 716, 716, 677, 678, 678, 421, 830, 830, 717, 830, 830, 679, 830, 830, 718, 830, 830, 680, 716, 716, 716, 722, 723, 723, 770, 771, 772, 719, 830, 830, 418, 830, 830, 720, 830, 830, 724, 830, 683, 621, 621, 830, 830, 492, 830, 830, 421, 684, 683, 621, 621, 492, 830, 685, 421, 830, 830, 684, 830, 728, 729, 729, 276, 685, 830, 725, 830, 830, 684, 830, 276, 830, 830, 725, 730, 683, 621, 621, 738, 738, 738, 738, 738, 738, 684, 830, 413, 270, 270, 830, 731, 773, 773, 773, 830, 746, 413, 270, 270, 830, 739, 414, 830, 739, 830, 746, 270, 270, 270, 830, 830, 414, 743, 743, 743, 671, 413, 270, 270, 830, 830, 271, 776, 776, 776, 746, 413, 270, 270, 830, 415, 485, 740, 740, 740, 746, 830, 830, 415, 830, 415, 414, 830, 830, 748, 668, 668, 830, 415, 830, 272, 830, 830, 749, 673, 616, 616, 486, 272, 750, 415, 830, 830, 752, 673, 616, 616, 830, 415, 675, 415, 830, 830, 752, 616, 616, 616, 830, 415, 675, 777, 777, 777, 753, 673, 616, 616, 830, 751, 618, 743, 743, 743, 752, 830, 830, 751, 830, 830, 714, 673, 616, 616, 715, 716, 716, 777, 777, 777, 674, 830, 830, 717, 830, 830, 714, 830, 830, 718, 716, 716, 716, 755, 756, 756, 770, 771, 772, 719, 830, 830, 490, 830, 830, 720, 830, 830, 757, 830, 489, 349, 349, 419, 274, 274, 830, 830, 492, 490, 830, 830, 761, 830, 830, 759, 492, 830, 420, 419, 274, 274, 830, 830, 276, 830, 830, 758, 761, 773, 773, 773, 276, 830, 420, 758, 349, 349, 349, 419, 274, 274, 830, 830, 492, 762, 830, 421, 761, 830, 830, 350, 492, 830, 493, 421, 830, 830, 419, 274, 274, 830, 830, 421, 770, 771, 772, 761, 773, 773, 773, 421, 830, 420, 830, 764, 678, 678, 830, 830, 276, 830, 830, 421, 765, 683, 621, 621, 276, 494, 766, 421, 830, 830, 768, 830, 683, 621, 621, 830, 685, 830, 421, 830, 830, 768, 621, 621, 621, 830, 421, 685, 738, 738, 738, 769, 683, 621, 621, 767, 830, 623, 776, 776, 776, 768, 830, 767, 683, 621, 621, 731, 830, 830, 739, 830, 830, 684, 748, 668, 668, 830, 830, 731, 413, 270, 270, 749, 748, 668, 668, 830, 830, 779, 776, 776, 776, 749, 830, 414, 748, 668, 668, 779, 781, 782, 782, 830, 830, 749, 777, 777, 777, 749, 830, 779, 748, 668, 668, 783, 830, 830, 751, 830, 830, 749, 830, 830, 415, 830, 751, 785, 751, 803, 803, 803, 415, 803, 803, 803, 751, 803, 803, 803, 751, 830, 830, 830, 784, 748, 668, 668, 751, 830, 830, 830, 784, 830, 749, 830, 751, 711, 712, 712, 779, 830, 830, 830, 751, 830, 674, 830, 489, 349, 349, 830, 713, 489, 349, 349, 786, 787, 349, 349, 349, 830, 787, 491, 830, 830, 830, 762, 491, 751, 489, 349, 349, 350, 830, 830, 830, 751, 830, 787, 489, 349, 349, 830, 830, 541, 419, 274, 274, 787, 830, 830, 492, 830, 830, 491, 830, 492, 830, 830, 492, 420, 276, 830, 830, 492, 789, 716, 716, 830, 276, 542, 830, 830, 492, 790, 789, 716, 716, 830, 830, 791, 492, 830, 492, 790, 764, 678, 678, 830, 421, 793, 492, 830, 830, 765, 830, 830, 421, 830, 830, 794, 764, 678, 678, 830, 796, 797, 797, 830, 792, 765, 830, 830, 830, 765, 830, 794, 792, 830, 792, 798, 764, 678, 678, 764, 678, 678, 792, 830, 767, 765, 830, 830, 765, 830, 830, 800, 767, 830, 794, 830, 728, 729, 729, 830, 767, 830, 830, 830, 799, 684, 830, 830, 767, 830, 801, 730, 799, 830, 830, 748, 668, 668, 830, 830, 767, 830, 830, 767, 749, 748, 668, 668, 767, 830, 785, 767, 830, 830, 804, 748, 668, 668, 830, 830, 779, 830, 830, 830, 804, 668, 668, 668, 830, 830, 779, 830, 830, 830, 753, 748, 668, 668, 830, 751, 703, 830, 830, 830, 804, 830, 830, 751, 830, 751, 785, 748, 668, 668, 830, 830, 830, 751, 830, 751, 804, 748, 668, 668, 830, 830, 779, 751, 830, 272, 749, 489, 349, 349, 830, 830, 785, 272, 830, 751, 490, 830, 786, 748, 668, 668, 491, 751, 830, 830, 830, 830, 749, 830, 830, 751, 830, 830, 779, 789, 716, 716, 830, 751, 830, 751, 830, 830, 790, 789, 716, 716, 830, 751, 793, 492, 830, 830, 790, 807, 808, 808, 830, 492, 793, 805, 830, 751, 790, 789, 716, 716, 830, 830, 809, 751, 830, 830, 790, 789, 716, 716, 830, 792, 811, 830, 830, 830, 790, 830, 830, 792, 830, 792, 793, 830, 830, 789, 716, 716, 830, 792, 830, 810, 830, 830, 790, 764, 678, 678, 812, 810, 811, 792, 830, 830, 765, 764, 678, 678, 830, 792, 800, 792, 830, 830, 813, 764, 678, 678, 830, 792, 794, 830, 830, 830, 813, 716, 716, 716, 830, 792, 794, 830, 830, 830, 814, 830, 830, 792, 830, 767, 720, 764, 678, 678, 830, 830, 830, 767, 830, 767, 813, 764, 678, 678, 830, 830, 800, 767, 830, 767, 813, 764, 678, 678, 830, 830, 794, 767, 830, 276, 765, 830, 764, 678, 678, 830, 800, 276, 830, 830, 830, 765, 801, 830, 830, 767, 830, 794, 830, 781, 782, 782, 830, 767, 830, 767, 830, 830, 749, 830, 748, 668, 668, 767, 783, 767, 830, 830, 830, 749, 789, 716, 716, 767, 815, 779, 767, 830, 830, 817, 830, 789, 716, 716, 767, 793, 830, 830, 830, 816, 817, 830, 830, 784, 830, 830, 793, 830, 716, 716, 716, 784, 830, 830, 751, 830, 830, 814, 789, 716, 716, 830, 751, 720, 792, 830, 830, 817, 830, 830, 830, 830, 792, 811, 830, 792, 789, 716, 716, 789, 716, 716, 830, 792, 830, 817, 830, 830, 790, 830, 830, 793, 276, 830, 811, 830, 789, 716, 716, 830, 276, 830, 792, 830, 830, 790, 830, 812, 830, 830, 792, 793, 796, 797, 797, 764, 678, 678, 830, 830, 792, 765, 830, 792, 765, 830, 830, 798, 792, 830, 794, 792, 830, 830, 748, 668, 668, 830, 818, 830, 792, 830, 830, 749, 819, 807, 808, 808, 792, 779, 830, 830, 830, 830, 790, 830, 799, 830, 830, 767, 809, 820, 830, 830, 799, 830, 830, 767, 830, 830, 789, 716, 716, 764, 678, 678, 830, 830, 751, 790, 830, 830, 765, 830, 830, 793, 751, 830, 794, 810, 830, 830, 748, 668, 668, 830, 830, 810, 830, 821, 822, 749, 830, 789, 716, 716, 830, 779, 830, 830, 830, 830, 790, 830, 792, 830, 830, 767, 793, 764, 678, 678, 792, 830, 830, 767, 830, 830, 765, 830, 824, 823, 830, 830, 794, 830, 751, 748, 668, 668, 830, 789, 716, 716, 751, 830, 749, 792, 830, 830, 790, 830, 779, 830, 830, 792, 793, 830, 825, 830, 764, 678, 678, 767, 748, 668, 668, 830, 826, 765, 830, 767, 830, 749, 830, 794, 830, 830, 830, 779, 827, 751, 830, 830, 830, 792, 789, 716, 716, 751, 830, 828, 830, 792, 830, 790, 764, 678, 678, 830, 830, 793, 830, 830, 767, 765, 830, 830, 751, 830, 830, 794, 767, 789, 716, 716, 751, 829, 830, 830, 830, 830, 790, 830, 830, 830, 830, 830, 793, 830, 792, 830, 830, 830, 830, 830, 830, 830, 792, 830, 767, 830, 830, 830, 830, 830, 830, 830, 767, 830, 830, 830, 830, 830, 830, 830, 830, 792, 830, 830, 830, 830, 830, 830, 830, 792, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 183, 830, 830, 830, 830, 830, 830, 830, 183, 830, 830, 830, 830, 830, 183, 183, 188, 830, 830, 188, 830, 830, 188, 188, 830, 188, 830, 830, 830, 188, 188, 188, 195, 830, 830, 830, 830, 830, 830, 830, 195, 830, 830, 830, 830, 830, 195, 195, 205, 830, 830, 205, 830, 205, 205, 210, 830, 830, 830, 830, 830, 830, 830, 210, 830, 830, 830, 830, 830, 210, 210, 216, 216, 216, 216, 830, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 830, 216, 830, 216, 216, 216, 218, 218, 218, 218, 830, 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 830, 219, 219, 219, 222, 830, 830, 830, 830, 830, 830, 830, 222, 830, 830, 830, 830, 830, 222, 222, 224, 224, 830, 830, 224, 830, 830, 830, 830, 830, 830, 830, 224, 830, 224, 830, 830, 830, 224, 224, 226, 226, 226, 226, 226, 226, 226, 830, 226, 226, 226, 226, 226, 226, 226, 226, 226, 226, 226, 226, 226, 226, 230, 230, 230, 230, 230, 230, 230, 230, 230, 830, 230, 230, 830, 230, 230, 230, 230, 230, 230, 230, 230, 230, 237, 237, 237, 237, 830, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 240, 240, 240, 240, 240, 240, 240, 830, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 244, 244, 244, 244, 244, 244, 244, 830, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 254, 254, 254, 254, 254, 254, 254, 830, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 262, 262, 262, 262, 262, 830, 262, 262, 262, 262, 262, 262, 262, 262, 262, 262, 262, 262, 262, 262, 262, 262, 266, 266, 830, 830, 266, 830, 830, 830, 830, 830, 830, 830, 266, 830, 266, 830, 830, 830, 266, 266, 296, 830, 830, 296, 830, 830, 296, 296, 830, 296, 830, 830, 830, 296, 296, 296, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 306, 830, 830, 830, 830, 830, 830, 830, 306, 830, 830, 830, 830, 830, 306, 306, 307, 307, 830, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 309, 830, 830, 309, 830, 830, 309, 309, 830, 309, 830, 830, 830, 309, 309, 309, 313, 830, 830, 830, 830, 313, 313, 830, 313, 830, 830, 830, 830, 830, 313, 313, 325, 830, 830, 325, 830, 830, 325, 325, 830, 325, 830, 830, 830, 325, 325, 325, 326, 830, 830, 326, 830, 830, 326, 326, 830, 326, 830, 830, 830, 326, 326, 326, 345, 830, 830, 830, 830, 830, 830, 830, 345, 830, 830, 830, 830, 830, 345, 345, 380, 380, 830, 830, 380, 380, 830, 380, 380, 380, 380, 380, 380, 830, 830, 830, 830, 380, 380, 380, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 404, 404, 404, 404, 404, 404, 404, 404, 404, 404, 404, 404, 404, 404, 404, 404, 404, 404, 404, 404, 404, 404, 408, 408, 408, 408, 408, 408, 408, 408, 408, 408, 408, 408, 408, 408, 408, 408, 408, 408, 408, 408, 408, 408, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 418, 418, 418, 418, 418, 418, 418, 418, 418, 418, 418, 418, 418, 418, 418, 418, 418, 418, 418, 418, 418, 418, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 451, 830, 830, 830, 830, 451, 451, 830, 451, 830, 830, 830, 830, 830, 451, 451, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 466, 466, 466, 466, 466, 466, 466, 466, 466, 466, 466, 466, 466, 466, 466, 466, 466, 466, 466, 466, 466, 466, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 830, 496, 496, 496, 496, 496, 496, 496, 496, 496, 527, 527, 527, 527, 527, 527, 527, 527, 527, 527, 527, 527, 527, 527, 527, 527, 527, 527, 527, 527, 527, 527, 563, 563, 830, 830, 563, 563, 830, 563, 563, 563, 563, 563, 563, 830, 830, 830, 830, 563, 563, 563, 643, 643, 643, 643, 643, 643, 643, 830, 643, 643, 643, 643, 643, 643, 643, 643, 643, 643, 643, 643, 643, 643, 647, 647, 647, 647, 647, 647, 647, 830, 647, 647, 647, 647, 647, 647, 647, 647, 647, 647, 647, 647, 647, 647, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 682, 682, 682, 682, 682, 682, 682, 682, 682, 682, 682, 682, 682, 682, 682, 682, 682, 682, 682, 682, 682, 682, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 780, 780, 780, 780, 780, 780, 780, 780, 780, 780, 780, 780, 780, 780, 780, 780, 780, 780, 780, 780, 780, 780, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 795, 795, 795, 795, 795, 795, 795, 795, 795, 795, 795, 795, 795, 795, 795, 795, 795, 795, 795, 795, 795, 795, 806, 806, 806, 806, 806, 806, 806, 806, 806, 806, 806, 806, 806, 806, 806, 806, 806, 806, 806, 806, 806, 806, 45, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830 } ; static yyconst flex_int16_t yy_chk[5288] = { 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 7, 158, 60, 158, 8, 9, 9, 9, 10, 10, 10, 19, 20, 60, 775, 35, 19, 20, 7, 7, 35, 7, 8, 8, 36, 8, 579, 9, 579, 36, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 17, 23, 17, 33, 17, 17, 24, 34, 27, 17, 17, 73, 17, 127, 17, 586, 27, 586, 28, 73, 17, 17, 17, 17, 94, 52, 28, 94, 39, 39, 39, 48, 48, 48, 39, 59, 48, 40, 40, 40, 59, 33, 52, 40, 23, 34, 17, 59, 742, 24, 735, 62, 17, 18, 27, 18, 127, 18, 18, 39, 62, 62, 18, 18, 28, 18, 119, 18, 40, 95, 95, 119, 734, 18, 18, 18, 18, 49, 49, 49, 53, 53, 49, 63, 53, 250, 250, 121, 64, 63, 63, 63, 121, 64, 53, 148, 194, 194, 194, 18, 64, 53, 53, 148, 720, 18, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 65, 159, 65, 65, 65, 66, 159, 66, 66, 66, 703, 80, 80, 80, 85, 65, 80, 81, 81, 81, 66, 91, 81, 91, 91, 91, 85, 85, 85, 65, 93, 191, 93, 93, 93, 191, 147, 65, 84, 147, 84, 163, 84, 84, 214, 93, 163, 84, 84, 214, 84, 866, 84, 109, 109, 109, 147, 866, 84, 84, 84, 84, 152, 114, 114, 114, 116, 116, 116, 84, 133, 133, 129, 129, 129, 109, 143, 143, 143, 152, 187, 116, 702, 231, 84, 114, 84, 129, 231, 234, 84, 132, 132, 132, 234, 192, 133, 187, 143, 192, 132, 135, 135, 135, 133, 133, 132, 137, 137, 137, 135, 136, 136, 136, 335, 335, 135, 149, 149, 149, 136, 149, 137, 205, 205, 873, 136, 150, 150, 150, 283, 873, 149, 151, 151, 151, 150, 283, 151, 155, 698, 156, 150, 155, 155, 156, 156, 172, 172, 172, 176, 176, 176, 177, 205, 177, 177, 177, 697, 426, 172, 149, 691, 176, 426, 198, 198, 198, 177, 149, 178, 150, 178, 877, 877, 178, 178, 178, 198, 150, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 186, 186, 186, 690, 497, 186, 190, 688, 190, 497, 190, 190, 200, 200, 200, 190, 190, 286, 190, 201, 190, 201, 201, 201, 286, 200, 190, 190, 190, 190, 202, 687, 202, 686, 201, 202, 202, 202, 220, 220, 220, 313, 313, 223, 223, 223, 292, 666, 224, 224, 224, 665, 190, 292, 431, 265, 265, 265, 190, 196, 220, 196, 431, 196, 196, 223, 378, 378, 196, 196, 224, 196, 313, 196, 227, 227, 227, 265, 664, 196, 196, 196, 196, 228, 228, 228, 241, 241, 241, 227, 365, 435, 228, 242, 242, 242, 442, 378, 228, 435, 560, 241, 242, 661, 442, 196, 659, 365, 242, 368, 560, 196, 245, 245, 245, 246, 246, 246, 255, 255, 255, 282, 282, 282, 246, 606, 368, 245, 658, 657, 246, 629, 606, 255, 256, 256, 256, 258, 258, 258, 266, 266, 266, 256, 259, 259, 259, 654, 629, 256, 614, 653, 258, 259, 270, 270, 270, 614, 652, 259, 632, 647, 266, 273, 273, 273, 274, 274, 274, 270, 874, 290, 299, 299, 299, 274, 874, 632, 273, 290, 643, 274, 300, 300, 300, 299, 451, 451, 290, 301, 301, 301, 641, 310, 640, 310, 310, 310, 270, 311, 521, 311, 311, 311, 580, 521, 270, 273, 310, 580, 274, 312, 312, 312, 311, 273, 638, 451, 274, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 316, 316, 316, 649, 601, 277, 277, 277, 304, 601, 304, 649, 304, 304, 637, 316, 636, 304, 304, 635, 304, 634, 304, 319, 319, 319, 529, 529, 304, 304, 304, 304, 650, 320, 320, 320, 604, 321, 321, 321, 650, 324, 324, 324, 604, 319, 321, 633, 316, 327, 327, 327, 321, 604, 304, 320, 324, 529, 327, 631, 304, 308, 639, 308, 327, 308, 308, 354, 354, 354, 308, 308, 660, 308, 630, 308, 330, 330, 330, 639, 660, 308, 308, 308, 308, 331, 331, 331, 334, 334, 334, 330, 651, 689, 331, 339, 339, 339, 628, 875, 331, 689, 882, 334, 339, 875, 883, 308, 882, 651, 339, 627, 883, 308, 341, 341, 341, 342, 342, 342, 344, 344, 344, 347, 347, 347, 342, 884, 894, 341, 626, 862, 342, 884, 894, 344, 353, 353, 347, 349, 349, 349, 351, 351, 351, 862, 862, 353, 349, 355, 355, 355, 353, 625, 349, 624, 623, 351, 356, 356, 356, 373, 373, 373, 375, 375, 375, 347, 618, 376, 613, 376, 376, 376, 377, 347, 377, 377, 377, 383, 383, 383, 353, 349, 376, 612, 351, 608, 607, 377, 895, 349, 605, 612, 351, 603, 895, 379, 379, 379, 602, 383, 612, 373, 374, 374, 374, 901, 374, 600, 374, 374, 379, 901, 598, 374, 374, 596, 374, 902, 374, 380, 380, 380, 904, 902, 374, 374, 374, 374, 904, 381, 381, 381, 587, 581, 380, 578, 382, 382, 382, 385, 385, 385, 570, 379, 381, 387, 387, 387, 374, 905, 374, 382, 382, 567, 387, 905, 374, 388, 388, 388, 387, 385, 559, 389, 389, 389, 558, 380, 390, 390, 390, 555, 388, 553, 392, 392, 392, 381, 389, 391, 391, 391, 382, 390, 382, 393, 393, 393, 391, 392, 394, 394, 394, 906, 391, 395, 395, 395, 547, 906, 393, 396, 396, 396, 395, 394, 397, 397, 397, 545, 395, 398, 398, 398, 544, 540, 396, 538, 403, 403, 403, 397, 404, 404, 404, 528, 398, 403, 405, 405, 405, 520, 519, 403, 406, 406, 406, 404, 407, 407, 407, 517, 516, 405, 408, 408, 408, 407, 510, 406, 409, 409, 409, 407, 410, 410, 410, 509, 508, 408, 411, 411, 411, 507, 505, 409, 412, 412, 412, 410, 413, 413, 413, 414, 414, 414, 415, 415, 415, 504, 503, 412, 418, 418, 418, 413, 498, 496, 414, 495, 487, 415, 484, 445, 417, 417, 417, 418, 419, 419, 419, 443, 411, 417, 420, 420, 420, 415, 441, 417, 412, 440, 439, 419, 413, 436, 434, 414, 412, 420, 415, 433, 413, 432, 430, 414, 418, 429, 415, 421, 421, 421, 428, 424, 418, 422, 423, 423, 417, 437, 437, 437, 419, 416, 421, 372, 417, 423, 420, 371, 419, 370, 423, 425, 425, 369, 420, 438, 438, 438, 421, 444, 444, 444, 425, 367, 427, 427, 427, 425, 366, 364, 448, 421, 448, 448, 448, 363, 427, 438, 362, 421, 423, 427, 361, 449, 360, 449, 449, 449, 359, 450, 450, 450, 358, 453, 453, 453, 357, 425, 449, 352, 350, 444, 450, 348, 455, 455, 455, 346, 453, 345, 343, 427, 447, 340, 447, 333, 447, 447, 453, 455, 329, 447, 447, 323, 447, 314, 447, 456, 456, 456, 306, 305, 447, 447, 447, 447, 456, 303, 457, 457, 457, 453, 456, 297, 460, 460, 460, 457, 458, 458, 458, 294, 455, 457, 511, 511, 511, 458, 447, 460, 512, 512, 512, 458, 447, 452, 452, 452, 452, 452, 452, 452, 293, 291, 452, 452, 459, 459, 459, 289, 452, 452, 512, 288, 287, 459, 285, 452, 452, 452, 452, 459, 452, 461, 461, 461, 462, 462, 462, 515, 515, 515, 461, 284, 280, 462, 276, 275, 461, 272, 271, 462, 269, 452, 452, 452, 268, 463, 463, 463, 452, 452, 452, 454, 454, 454, 463, 264, 260, 454, 454, 257, 463, 454, 454, 454, 454, 248, 454, 454, 454, 454, 454, 454, 243, 483, 483, 483, 454, 229, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 219, 454, 218, 454, 454, 454, 454, 464, 464, 464, 454, 465, 465, 465, 216, 195, 464, 483, 466, 466, 466, 184, 464, 467, 467, 467, 465, 466, 468, 468, 468, 174, 467, 466, 470, 470, 470, 468, 467, 469, 469, 469, 170, 468, 473, 473, 473, 160, 469, 470, 518, 518, 518, 473, 469, 474, 474, 474, 157, 473, 475, 475, 475, 141, 474, 476, 476, 476, 138, 475, 474, 477, 477, 477, 476, 475, 478, 478, 478, 124, 476, 479, 479, 479, 122, 478, 477, 482, 482, 482, 479, 478, 480, 480, 480, 120, 479, 481, 481, 481, 104, 480, 482, 485, 485, 485, 481, 480, 486, 486, 486, 103, 481, 488, 488, 488, 102, 101, 485, 514, 514, 514, 488, 486, 489, 489, 489, 100, 488, 490, 490, 490, 99, 489, 491, 491, 491, 97, 490, 489, 96, 514, 92, 491, 490, 90, 82, 485, 77, 491, 486, 71, 486, 70, 69, 485, 55, 488, 54, 50, 486, 45, 492, 492, 492, 488, 44, 43, 489, 42, 41, 492, 32, 490, 31, 30, 489, 492, 491, 29, 26, 490, 493, 493, 493, 25, 491, 494, 494, 494, 522, 522, 522, 492, 548, 548, 548, 493, 499, 499, 499, 523, 494, 523, 523, 523, 492, 500, 500, 500, 499, 501, 501, 501, 492, 499, 549, 549, 549, 500, 524, 524, 524, 501, 500, 22, 493, 21, 501, 494, 16, 494, 15, 524, 493, 531, 531, 531, 549, 494, 532, 532, 532, 0, 531, 499, 551, 551, 551, 532, 531, 539, 539, 539, 500, 532, 0, 0, 501, 525, 525, 525, 525, 525, 525, 525, 539, 0, 525, 525, 533, 533, 533, 0, 525, 525, 552, 552, 552, 533, 539, 525, 525, 525, 525, 533, 525, 536, 536, 536, 537, 537, 537, 0, 0, 539, 536, 0, 0, 537, 0, 0, 536, 539, 0, 537, 0, 525, 525, 525, 554, 554, 554, 0, 525, 525, 525, 530, 530, 530, 557, 557, 557, 0, 530, 0, 0, 530, 530, 530, 530, 0, 530, 530, 530, 541, 541, 541, 542, 542, 542, 0, 530, 0, 541, 0, 0, 542, 0, 0, 541, 0, 0, 542, 543, 543, 543, 573, 573, 573, 565, 565, 565, 530, 0, 530, 566, 566, 566, 543, 569, 569, 569, 571, 571, 571, 572, 572, 572, 541, 542, 566, 542, 543, 0, 569, 0, 541, 0, 0, 542, 565, 0, 566, 565, 0, 0, 569, 543, 574, 574, 574, 575, 575, 575, 0, 543, 556, 556, 556, 566, 565, 0, 0, 569, 582, 582, 582, 566, 589, 589, 589, 569, 571, 0, 0, 572, 0, 589, 0, 592, 592, 592, 0, 589, 0, 0, 556, 556, 592, 0, 556, 593, 593, 593, 592, 594, 594, 594, 0, 0, 556, 595, 595, 595, 597, 597, 597, 556, 556, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 0, 568, 568, 568, 561, 561, 561, 561, 0, 0, 568, 561, 563, 563, 563, 0, 568, 0, 0, 563, 0, 0, 563, 563, 563, 563, 0, 563, 563, 563, 568, 0, 0, 585, 585, 585, 0, 563, 599, 599, 599, 588, 588, 588, 0, 568, 655, 655, 655, 0, 590, 590, 590, 568, 0, 0, 588, 0, 563, 590, 563, 576, 576, 576, 585, 590, 0, 585, 662, 662, 662, 0, 616, 616, 616, 0, 0, 590, 0, 0, 588, 616, 0, 0, 585, 588, 0, 616, 621, 621, 621, 576, 576, 588, 590, 576, 0, 621, 692, 692, 692, 0, 590, 621, 0, 576, 696, 696, 696, 699, 699, 699, 576, 576, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 591, 591, 591, 615, 615, 615, 0, 619, 619, 619, 620, 620, 620, 0, 0, 591, 619, 0, 615, 701, 701, 701, 619, 0, 0, 620, 0, 642, 642, 642, 0, 656, 656, 656, 615, 0, 642, 0, 0, 591, 0, 620, 642, 0, 591, 0, 619, 615, 644, 644, 644, 619, 591, 656, 620, 615, 0, 644, 0, 619, 0, 0, 620, 644, 0, 645, 645, 645, 646, 646, 646, 642, 0, 0, 645, 0, 0, 646, 0, 642, 645, 0, 0, 646, 648, 648, 648, 0, 663, 663, 663, 0, 0, 648, 0, 0, 645, 0, 0, 648, 693, 693, 693, 0, 667, 667, 667, 0, 0, 645, 663, 0, 646, 667, 668, 668, 668, 645, 0, 667, 646, 0, 693, 668, 669, 669, 669, 0, 0, 668, 670, 670, 670, 669, 672, 672, 672, 0, 0, 669, 680, 680, 680, 672, 0, 670, 0, 0, 667, 672, 673, 673, 673, 0, 0, 680, 667, 0, 668, 673, 674, 674, 674, 0, 0, 673, 668, 0, 669, 674, 675, 675, 675, 0, 670, 674, 669, 0, 0, 675, 0, 0, 670, 0, 680, 675, 676, 676, 676, 677, 677, 677, 680, 0, 0, 676, 0, 0, 677, 0, 0, 676, 0, 0, 677, 678, 678, 678, 679, 679, 679, 732, 732, 732, 678, 0, 0, 679, 0, 0, 678, 0, 0, 679, 0, 682, 682, 682, 0, 0, 676, 0, 0, 677, 682, 683, 683, 683, 676, 0, 682, 677, 0, 0, 683, 0, 684, 684, 684, 678, 683, 0, 679, 0, 0, 684, 0, 678, 0, 0, 679, 684, 685, 685, 685, 695, 695, 695, 700, 700, 700, 685, 0, 704, 704, 704, 0, 685, 733, 733, 733, 0, 704, 705, 705, 705, 0, 695, 704, 0, 700, 0, 705, 706, 706, 706, 0, 0, 705, 736, 736, 736, 706, 707, 707, 707, 0, 0, 706, 737, 737, 737, 707, 708, 708, 708, 0, 704, 707, 740, 740, 740, 708, 0, 0, 704, 0, 705, 708, 0, 0, 709, 709, 709, 0, 705, 0, 706, 0, 0, 709, 710, 710, 710, 708, 706, 709, 707, 0, 0, 710, 711, 711, 711, 0, 707, 710, 708, 0, 0, 711, 712, 712, 712, 0, 708, 711, 741, 741, 741, 712, 713, 713, 713, 0, 709, 712, 743, 743, 743, 713, 0, 0, 709, 0, 0, 713, 714, 714, 714, 715, 715, 715, 744, 744, 744, 714, 0, 0, 715, 0, 0, 714, 0, 0, 715, 716, 716, 716, 717, 717, 717, 770, 770, 770, 716, 0, 0, 717, 0, 0, 716, 0, 0, 717, 0, 718, 718, 718, 721, 721, 721, 0, 0, 715, 718, 0, 0, 721, 0, 0, 718, 715, 0, 721, 722, 722, 722, 0, 0, 716, 0, 0, 717, 722, 771, 771, 771, 716, 0, 722, 717, 723, 723, 723, 724, 724, 724, 0, 0, 718, 723, 0, 721, 724, 0, 0, 723, 718, 0, 724, 721, 0, 0, 725, 725, 725, 0, 0, 722, 772, 772, 772, 725, 773, 773, 773, 722, 0, 725, 0, 726, 726, 726, 0, 0, 723, 0, 0, 724, 726, 727, 727, 727, 723, 725, 726, 724, 0, 0, 727, 0, 728, 728, 728, 0, 727, 0, 725, 0, 0, 728, 729, 729, 729, 0, 725, 728, 738, 738, 738, 729, 730, 730, 730, 726, 0, 729, 774, 774, 774, 730, 0, 726, 731, 731, 731, 730, 0, 0, 738, 0, 0, 731, 745, 745, 745, 0, 0, 731, 746, 746, 746, 745, 747, 747, 747, 0, 0, 745, 776, 776, 776, 747, 0, 746, 748, 748, 748, 747, 749, 749, 749, 0, 0, 748, 777, 777, 777, 749, 0, 748, 750, 750, 750, 749, 0, 0, 745, 0, 0, 750, 0, 0, 746, 0, 745, 750, 747, 778, 778, 778, 746, 802, 802, 802, 747, 803, 803, 803, 748, 0, 0, 0, 749, 751, 751, 751, 748, 0, 0, 0, 749, 0, 751, 0, 750, 752, 752, 752, 751, 0, 0, 0, 750, 0, 752, 0, 754, 754, 754, 0, 752, 755, 755, 755, 751, 754, 756, 756, 756, 0, 755, 754, 0, 0, 0, 756, 755, 751, 757, 757, 757, 756, 0, 0, 0, 751, 0, 757, 758, 758, 758, 0, 0, 757, 761, 761, 761, 758, 0, 0, 754, 0, 0, 758, 0, 755, 0, 0, 754, 761, 756, 0, 0, 755, 759, 759, 759, 0, 756, 758, 0, 0, 757, 759, 760, 760, 760, 0, 0, 759, 757, 0, 758, 760, 763, 763, 763, 0, 761, 760, 758, 0, 0, 763, 0, 0, 761, 0, 0, 763, 764, 764, 764, 0, 765, 765, 765, 0, 759, 764, 0, 0, 0, 765, 0, 764, 759, 0, 760, 765, 766, 766, 766, 767, 767, 767, 760, 0, 763, 766, 0, 0, 767, 0, 0, 766, 763, 0, 767, 0, 768, 768, 768, 0, 764, 0, 0, 0, 765, 768, 0, 0, 764, 0, 767, 768, 765, 0, 0, 779, 779, 779, 0, 0, 766, 0, 0, 767, 779, 780, 780, 780, 766, 0, 779, 767, 0, 0, 780, 781, 781, 781, 0, 0, 780, 0, 0, 0, 781, 782, 782, 782, 0, 0, 781, 0, 0, 0, 782, 783, 783, 783, 0, 779, 782, 0, 0, 0, 783, 0, 0, 779, 0, 780, 783, 784, 784, 784, 0, 0, 0, 780, 0, 781, 784, 785, 785, 785, 0, 0, 784, 781, 0, 782, 785, 787, 787, 787, 0, 0, 785, 782, 0, 783, 787, 0, 784, 786, 786, 786, 787, 783, 0, 0, 0, 0, 786, 0, 0, 784, 0, 0, 786, 788, 788, 788, 0, 784, 0, 785, 0, 0, 788, 789, 789, 789, 0, 785, 788, 787, 0, 0, 789, 790, 790, 790, 0, 787, 789, 786, 0, 786, 790, 791, 791, 791, 0, 0, 790, 786, 0, 0, 791, 792, 792, 792, 0, 788, 791, 0, 0, 0, 792, 0, 0, 788, 0, 789, 792, 0, 0, 793, 793, 793, 0, 789, 0, 790, 0, 0, 793, 794, 794, 794, 792, 790, 793, 791, 0, 0, 794, 795, 795, 795, 0, 791, 794, 792, 0, 0, 795, 796, 796, 796, 0, 792, 795, 0, 0, 0, 796, 797, 797, 797, 0, 793, 796, 0, 0, 0, 797, 0, 0, 793, 0, 794, 797, 798, 798, 798, 0, 0, 0, 794, 0, 795, 798, 799, 799, 799, 0, 0, 798, 795, 0, 796, 799, 800, 800, 800, 0, 0, 799, 796, 0, 797, 800, 0, 801, 801, 801, 0, 800, 797, 0, 0, 0, 801, 799, 0, 0, 798, 0, 801, 0, 804, 804, 804, 0, 798, 0, 799, 0, 0, 804, 0, 805, 805, 805, 799, 804, 800, 0, 0, 0, 805, 806, 806, 806, 800, 801, 805, 801, 0, 0, 806, 0, 807, 807, 807, 801, 806, 0, 0, 0, 805, 807, 0, 0, 804, 0, 0, 807, 0, 808, 808, 808, 804, 0, 0, 805, 0, 0, 808, 809, 809, 809, 0, 805, 808, 806, 0, 0, 809, 0, 0, 0, 0, 806, 809, 0, 807, 810, 810, 810, 811, 811, 811, 0, 807, 0, 810, 0, 0, 811, 0, 0, 810, 808, 0, 811, 0, 812, 812, 812, 0, 808, 0, 809, 0, 0, 812, 0, 810, 0, 0, 809, 812, 813, 813, 813, 815, 815, 815, 0, 0, 810, 813, 0, 811, 815, 0, 0, 813, 810, 0, 815, 811, 0, 0, 816, 816, 816, 0, 812, 0, 812, 0, 0, 816, 815, 817, 817, 817, 812, 816, 0, 0, 0, 0, 817, 0, 813, 0, 0, 815, 817, 816, 0, 0, 813, 0, 0, 815, 0, 0, 818, 818, 818, 819, 819, 819, 0, 0, 816, 818, 0, 0, 819, 0, 0, 818, 816, 0, 819, 817, 0, 0, 820, 820, 820, 0, 0, 817, 0, 818, 819, 820, 0, 821, 821, 821, 0, 820, 0, 0, 0, 0, 821, 0, 818, 0, 0, 819, 821, 822, 822, 822, 818, 0, 0, 819, 0, 0, 822, 0, 821, 820, 0, 0, 822, 0, 820, 823, 823, 823, 0, 824, 824, 824, 820, 0, 823, 821, 0, 0, 824, 0, 823, 0, 0, 821, 824, 0, 822, 0, 825, 825, 825, 822, 826, 826, 826, 0, 823, 825, 0, 822, 0, 826, 0, 825, 0, 0, 0, 826, 824, 823, 0, 0, 0, 824, 827, 827, 827, 823, 0, 825, 0, 824, 0, 827, 828, 828, 828, 0, 0, 827, 0, 0, 825, 828, 0, 0, 826, 0, 0, 828, 825, 829, 829, 829, 826, 827, 0, 0, 0, 0, 829, 0, 0, 0, 0, 0, 829, 0, 827, 0, 0, 0, 0, 0, 0, 0, 827, 0, 828, 0, 0, 0, 0, 0, 0, 0, 828, 0, 0, 0, 0, 0, 0, 0, 0, 829, 0, 0, 0, 0, 0, 0, 0, 829, 831, 831, 831, 831, 831, 831, 831, 831, 831, 831, 831, 831, 831, 831, 831, 831, 831, 831, 831, 831, 831, 831, 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, 833, 833, 833, 833, 833, 833, 833, 833, 833, 833, 833, 833, 833, 833, 833, 833, 833, 833, 833, 833, 833, 833, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 837, 837, 837, 837, 837, 837, 837, 837, 837, 837, 837, 837, 837, 837, 837, 837, 837, 837, 837, 837, 837, 837, 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, 839, 839, 839, 839, 839, 839, 839, 839, 839, 839, 839, 839, 839, 839, 839, 839, 839, 839, 839, 839, 839, 839, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 841, 841, 841, 841, 841, 841, 841, 841, 841, 841, 841, 841, 841, 841, 841, 841, 841, 841, 841, 841, 841, 841, 842, 842, 842, 842, 842, 842, 842, 842, 842, 842, 842, 842, 842, 842, 842, 842, 842, 842, 842, 842, 842, 842, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 844, 0, 0, 0, 0, 0, 0, 0, 844, 0, 0, 0, 0, 0, 844, 844, 845, 0, 0, 845, 0, 0, 845, 845, 0, 845, 0, 0, 0, 845, 845, 845, 846, 0, 0, 0, 0, 0, 0, 0, 846, 0, 0, 0, 0, 0, 846, 846, 847, 0, 0, 847, 0, 847, 847, 848, 0, 0, 0, 0, 0, 0, 0, 848, 0, 0, 0, 0, 0, 848, 848, 849, 849, 849, 849, 0, 849, 849, 849, 849, 849, 849, 849, 849, 849, 849, 849, 0, 849, 0, 849, 849, 849, 850, 850, 850, 850, 0, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 851, 851, 851, 851, 851, 851, 851, 851, 851, 851, 851, 851, 851, 851, 851, 851, 851, 851, 0, 851, 851, 851, 852, 0, 0, 0, 0, 0, 0, 0, 852, 0, 0, 0, 0, 0, 852, 852, 853, 853, 0, 0, 853, 0, 0, 0, 0, 0, 0, 0, 853, 0, 853, 0, 0, 0, 853, 853, 854, 854, 854, 854, 854, 854, 854, 0, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 855, 855, 855, 855, 855, 855, 855, 855, 855, 0, 855, 855, 0, 855, 855, 855, 855, 855, 855, 855, 855, 855, 856, 856, 856, 856, 0, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 857, 857, 857, 857, 857, 857, 857, 0, 857, 857, 857, 857, 857, 857, 857, 857, 857, 857, 857, 857, 857, 857, 858, 858, 858, 858, 858, 858, 858, 0, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 860, 860, 860, 860, 860, 860, 860, 0, 860, 860, 860, 860, 860, 860, 860, 860, 860, 860, 860, 860, 860, 860, 861, 861, 861, 861, 861, 0, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 863, 863, 0, 0, 863, 0, 0, 0, 0, 0, 0, 0, 863, 0, 863, 0, 0, 0, 863, 863, 864, 0, 0, 864, 0, 0, 864, 864, 0, 864, 0, 0, 0, 864, 864, 864, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 867, 0, 0, 0, 0, 0, 0, 0, 867, 0, 0, 0, 0, 0, 867, 867, 868, 868, 0, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 869, 0, 0, 869, 0, 0, 869, 869, 0, 869, 0, 0, 0, 869, 869, 869, 870, 0, 0, 0, 0, 870, 870, 0, 870, 0, 0, 0, 0, 0, 870, 870, 871, 0, 0, 871, 0, 0, 871, 871, 0, 871, 0, 0, 0, 871, 871, 871, 872, 0, 0, 872, 0, 0, 872, 872, 0, 872, 0, 0, 0, 872, 872, 872, 876, 0, 0, 0, 0, 0, 0, 0, 876, 0, 0, 0, 0, 0, 876, 876, 878, 878, 0, 0, 878, 878, 0, 878, 878, 878, 878, 878, 878, 0, 0, 0, 0, 878, 878, 878, 879, 879, 879, 879, 879, 879, 879, 879, 879, 879, 879, 879, 879, 879, 879, 879, 879, 879, 879, 879, 879, 879, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 881, 881, 881, 881, 881, 881, 881, 881, 881, 881, 881, 881, 881, 881, 881, 881, 881, 881, 881, 881, 881, 881, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 888, 888, 888, 888, 888, 888, 888, 888, 888, 888, 888, 888, 888, 888, 888, 888, 888, 888, 888, 888, 888, 888, 889, 889, 889, 889, 889, 889, 889, 889, 889, 889, 889, 889, 889, 889, 889, 889, 889, 889, 889, 889, 889, 889, 890, 0, 0, 0, 0, 890, 890, 0, 890, 0, 0, 0, 0, 0, 890, 890, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 896, 896, 896, 896, 896, 896, 896, 896, 896, 896, 896, 896, 896, 896, 896, 896, 896, 896, 896, 896, 896, 896, 897, 897, 897, 897, 897, 897, 897, 897, 897, 897, 897, 897, 897, 897, 897, 897, 897, 897, 897, 897, 897, 897, 898, 898, 898, 898, 898, 898, 898, 898, 898, 898, 898, 898, 898, 898, 898, 898, 898, 898, 898, 898, 898, 898, 899, 899, 899, 899, 899, 899, 899, 899, 899, 899, 899, 899, 0, 899, 899, 899, 899, 899, 899, 899, 899, 899, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 903, 903, 0, 0, 903, 903, 0, 903, 903, 903, 903, 903, 903, 0, 0, 0, 0, 903, 903, 903, 907, 907, 907, 907, 907, 907, 907, 0, 907, 907, 907, 907, 907, 907, 907, 907, 907, 907, 907, 907, 907, 907, 908, 908, 908, 908, 908, 908, 908, 0, 908, 908, 908, 908, 908, 908, 908, 908, 908, 908, 908, 908, 908, 908, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 912, 912, 912, 912, 912, 912, 912, 912, 912, 912, 912, 912, 912, 912, 912, 912, 912, 912, 912, 912, 912, 912, 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 920, 920, 920, 920, 920, 920, 920, 920, 920, 920, 920, 920, 920, 920, 920, 920, 920, 920, 920, 920, 920, 920, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830 } ; /* Table of booleans, true if rule could match eol. */ static yyconst flex_int32_t yy_rule_can_match_eol[152] = { 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, }; static yy_state_type yy_last_accepting_state; static char *yy_last_accepting_cpos; extern int base_yy_flex_debug; int base_yy_flex_debug = 0; /* The intent behind this definition is that it'll catch * any uses of REJECT which flex missed. */ #define REJECT reject_used_but_not_detected #define yymore() yymore_used_but_not_detected #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET char *base_yytext; #line 1 "pgc.l" #line 31 "pgc.l" extern YYSTYPE base_yylval; static int xcdepth = 0; /* depth of nesting in slash-star comments */ static char *dolqstart = NULL; /* current $foo$ quote start string */ static YY_BUFFER_STATE scanbufhandle; static char *scanbuf; /* * literalbuf is used to accumulate literal values when multiple rules * are needed to parse a single literal. Call startlit to reset buffer * to empty, addlit to add text. Note that the buffer is permanently * malloc'd to the largest size needed so far in the current run. */ static char *literalbuf = NULL; /* expandable buffer */ static int literallen; /* actual current length */ static int literalalloc; /* current allocated buffer size */ /* Used for detecting global state together with braces_open */ static int parenths_open; /* Used to tell parse_include() whether the command was #include or #include_next */ static bool include_next; #define startlit() (literalbuf[0] = '\0', literallen = 0) static void addlit(char *ytext, int yleng); static void addlitchar (unsigned char); static void parse_include (void); static bool ecpg_isspace(char ch); static bool isdefine(void); static bool isinformixdefine(void); char *token_start; static int state_before; struct _yy_buffer { YY_BUFFER_STATE buffer; long lineno; char *filename; struct _yy_buffer *next; } *yy_buffer = NULL; static char *old; #define MAX_NESTED_IF 128 static short preproc_tos; static short ifcond; static struct _if_value { short condition; short else_branch; } stacked_if_value[MAX_NESTED_IF]; /* LCOV_EXCL_START */ #define YY_NO_INPUT 1 /* * OK, here is a short description of lex/flex rules behavior. * The longest pattern which matches an input string is always chosen. * For equal-length patterns, the first occurring in the rules list is chosen. * INITIAL is the starting state, to which all non-conditional rules apply. * Exclusive states change parsing rules while the state is active. When in * an exclusive state, only those rules defined for that state apply. * * We use exclusive states for quoted strings, extended comments, * and to eliminate parsing troubles for numeric strings. * Exclusive states: * bit string literal * extended C-style comments in C * extended C-style comments in SQL * delimited identifiers (double-quoted identifiers) - thomas 1997-10-27 * hexadecimal numeric string - thomas 1997-11-16 * standard quoted strings - thomas 1997-07-30 * standard quoted strings in C - michael * extended quoted strings (support backslash escape sequences) * national character quoted strings * $foo$ quoted strings * quoted identifier with Unicode escapes * quoted string with Unicode escapes */ /* Bit string */ /* Hexadecimal number */ /* National character */ /* Quoted string that allows backslash escapes */ /* C version of hex number */ /* Extended quote * xqdouble implements embedded quote, '''' */ /* $foo$ style quotes ("dollar quoting") * The quoted string starts with $foo$ where "foo" is an optional string * in the form of an identifier, except that it may not contain "$", * and extends to the first occurrence of an identical string. * There is *no* processing of the quoted text. * * {dolqfailed} is an error rule to avoid scanner backup when {dolqdelim} * fails to match its trailing "$". */ /* Double quote * Allows embedded spaces and other special characters into identifiers. */ /* Unicode escapes */ /* (The ecpg scanner is not backup-free, so the fail rules in scan.l are not needed here, but could be added if desired.) */ /* Quoted identifier with Unicode escapes */ /* Quoted string with Unicode escapes */ /* special stuff for C strings */ /* C-style comments * * The "extended comment" syntax closely resembles allowable operator syntax. * The tricky part here is to get lex to recognize a string starting with * slash-star as a comment, when interpreting it as an operator would produce * a longer match --- remember lex will prefer a longer match! Also, if we * have something like plus-slash-star, lex will think this is a 3-character * operator whereas we want to see it as a + operator and a comment start. * The solution is two-fold: * 1. append {op_chars}* to xcstart so that it matches as much text as * {operator} would. Then the tie-breaker (first matching rule of same * length) ensures xcstart wins. We put back the extra stuff with yyless() * in case it contains a star-slash that should terminate the comment. * 2. In the operator rule, check for slash-star within the operator, and * if found throw it back with yyless(). This handles the plus-slash-star * problem. * Dash-dash comments have similar interactions with the operator rule. */ /* Assorted special-case operators and operator-like tokens */ /* * These operator-like tokens (unlike the above ones) also match the {operator} * rule, which means that they might be overridden by a longer match if they * are followed by a comment start or a + or - character. Accordingly, if you * add to this list, you must also add corresponding code to the {operator} * block to return the correct token in such cases. (This is not needed in * psqlscan.l since the token value is ignored there.) */ /* * "self" is the set of chars that should be returned as single-character * tokens. "op_chars" is the set of chars that can make up "Op" tokens, * which can be one or more characters long (but if a single-char token * appears in the "self" set, it is not to be returned as an Op). Note * that the sets overlap, but each has some chars that are not in the other. * * If you change either set, adjust the character lists appearing in the * rule for "operator"! */ /* we no longer allow unary minus in numbers. * instead we pass it separately to parser. there it gets * coerced via doNegate() -- Leon aug 20 1999 * * {realfail1} and {realfail2} are added to prevent the need for scanner * backup when the {real} rule fails to match completely. */ /* * In order to make the world safe for Windows and Mac clients as well as * Unix ones, we accept either \n or \r as a newline. A DOS-style \r\n * sequence will be seen as two successive newlines, but that doesn't cause * any problems. SQL-style comments, which start with -- and extend to the * next newline, are treated as equivalent to a single whitespace character. * * NOTE a fine point: if there is no newline following --, we will absorb * everything to the end of the input as a comment. This is correct. Older * versions of Postgres failed to recognize -- as a comment if the input * did not end with a newline. * * XXX perhaps \f (formfeed) should be treated as a newline as well? * * XXX if you change the set of whitespace characters, fix ecpg_isspace() * to agree. */ /* * SQL requires at least one newline in the whitespace separating * string literals that are to be concatenated. Silly, but who are we * to argue? Note that {whitespace_with_newline} should not have * after * it, whereas {whitespace} should generally have a * after it... */ /* special characters for other dbms */ /* we have to react differently in compat mode */ /* some stuff needed for ecpg */ /* we might want to parse all cpp include files */ /* take care of cpp lines, they may also be continuated */ /* first a general line for all commands not starting with "i" */ /* and then the other commands starting with "i", we have to add these * separately because the cppline production would match on "include" too */ /* * Dollar quoted strings are totally opaque, and no escaping is done on them. * Other quoted strings must allow some special characters such as single-quote * and newline. * Embedded single-quotes are implemented both in the SQL standard * style of two adjacent single quotes "''" and in the Postgres/Java style * of escaped-quote "\'". * Other embedded escaped characters are matched explicitly and the leading * backslash is dropped from the string. - thomas 1997-09-24 * Note that xcstart must appear before operator, as explained above! * Also whitespace (comment) must appear before operator. */ #line 2198 "pgc.c" #define INITIAL 0 #define C 1 #define SQL 2 #define incl 3 #define def 4 #define def_ident 5 #define undef 6 #define xb 7 #define xcc 8 #define xcsql 9 #define xd 10 #define xdc 11 #define xh 12 #define xe 13 #define xn 14 #define xq 15 #define xqc 16 #define xdolq 17 #define xcond 18 #define xskip 19 #define xui 20 #define xus 21 #ifndef YY_NO_UNISTD_H /* Special case for "unistd.h", since it is non-ANSI. We include it way * down here because we want the user's section 1 to have been scanned first. * The user has a chance to override it with an option. */ #include #endif #ifndef YY_EXTRA_TYPE #define YY_EXTRA_TYPE void * #endif static int yy_init_globals (void ); /* Accessor methods to globals. These are made visible to non-reentrant scanners for convenience. */ int base_yylex_destroy (void ); int base_yyget_debug (void ); void base_yyset_debug (int debug_flag ); YY_EXTRA_TYPE base_yyget_extra (void ); void base_yyset_extra (YY_EXTRA_TYPE user_defined ); FILE *base_yyget_in (void ); void base_yyset_in (FILE * _in_str ); FILE *base_yyget_out (void ); void base_yyset_out (FILE * _out_str ); int base_yyget_leng (void ); char *base_yyget_text (void ); int base_yyget_lineno (void ); void base_yyset_lineno (int _line_number ); /* Macros after this point can all be overridden by user definitions in * section 1. */ #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus extern "C" int base_yywrap (void ); #else extern int base_yywrap (void ); #endif #endif #ifndef YY_NO_UNPUT static void yyunput (int c,char *buf_ptr ); #endif #ifndef yytext_ptr static void yy_flex_strncpy (char *,yyconst char *,int ); #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen (yyconst char * ); #endif #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput (void ); #else static int input (void ); #endif #endif /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE #ifdef __ia64__ /* On IA-64, the buffer size is 16k, not 8k */ #define YY_READ_BUF_SIZE 16384 #else #define YY_READ_BUF_SIZE 8192 #endif /* __ia64__ */ #endif /* Copy whatever the last rule matched to the standard output. */ #ifndef ECHO /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ #define ECHO do { if (fwrite( base_yytext, (size_t) base_yyleng, 1, base_yyout )) {} } while (0) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, * is returned in "result". */ #ifndef YY_INPUT #define YY_INPUT(buf,result,max_size) \ if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ { \ int c = '*'; \ size_t n; \ for ( n = 0; n < max_size && \ (c = getc( base_yyin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ if ( c == '\n' ) \ buf[n++] = (char) c; \ if ( c == EOF && ferror( base_yyin ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ result = n; \ } \ else \ { \ errno=0; \ while ( (result = (int) fread(buf, 1, max_size, base_yyin))==0 && ferror(base_yyin)) \ { \ if( errno != EINTR) \ { \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ break; \ } \ errno=0; \ clearerr(base_yyin); \ } \ }\ \ #endif /* No semi-colon after return; correct usage is to write "yyterminate();" - * we don't want an extra ';' after the "return" because that will cause * some compilers to complain about unreachable statements. */ #ifndef yyterminate #define yyterminate() return YY_NULL #endif /* Number of entries by which start-condition stack grows. */ #ifndef YY_START_STACK_INCR #define YY_START_STACK_INCR 25 #endif /* Report a fatal error. */ #ifndef YY_FATAL_ERROR #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) #endif /* end tables serialization structures and prototypes */ /* Default declaration of generated scanner - a define so the user can * easily add parameters. */ #ifndef YY_DECL #define YY_DECL_IS_OURS 1 extern int base_yylex (void); #define YY_DECL int base_yylex (void) #endif /* !YY_DECL */ /* Code executed at the beginning of each rule, after base_yytext and base_yyleng * have been set up. */ #ifndef YY_USER_ACTION #define YY_USER_ACTION #endif /* Code executed at the end of each rule. */ #ifndef YY_BREAK #define YY_BREAK /*LINTED*/break; #endif #define YY_RULE_SETUP \ YY_USER_ACTION /** The main scanner function which does all the work. */ YY_DECL { yy_state_type yy_current_state; char *yy_cp, *yy_bp; int yy_act; if ( !(yy_init) ) { (yy_init) = 1; #ifdef YY_USER_INIT YY_USER_INIT; #endif if ( ! (yy_start) ) (yy_start) = 1; /* first start state */ if ( ! base_yyin ) base_yyin = stdin; if ( ! base_yyout ) base_yyout = stdout; if ( ! YY_CURRENT_BUFFER ) { base_yyensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = base_yy_create_buffer(base_yyin,YY_BUF_SIZE ); } base_yy_load_buffer_state( ); } { #line 388 "pgc.l" /* code to execute during start of each call of base_yylex() */ token_start = NULL; #line 2445 "pgc.c" while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */ { yy_cp = (yy_c_buf_p); /* Support of base_yytext. */ *yy_cp = (yy_hold_char); /* yy_bp points to the position in yy_ch_buf of the start of * the current run. */ yy_bp = yy_cp; yy_current_state = (yy_start); yy_match: do { YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 831 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (flex_int16_t) yy_c]; ++yy_cp; } while ( yy_current_state != 830 ); yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); yy_find_action: yy_act = yy_accept[yy_current_state]; YY_DO_BEFORE_ACTION; if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] ) { int yyl; for ( yyl = 0; yyl < base_yyleng; ++yyl ) if ( base_yytext[yyl] == '\n' ) base_yylineno++; ; } do_action: /* This label is used only to access EOF actions. */ switch ( yy_act ) { /* beginning of action switch */ case 0: /* must back up */ /* undo the effects of YY_DO_BEFORE_ACTION */ *yy_cp = (yy_hold_char); yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); goto yy_find_action; case 1: /* rule 1 can match eol */ YY_RULE_SETUP #line 395 "pgc.l" { /* ignore */ } YY_BREAK case 2: YY_RULE_SETUP #line 397 "pgc.l" { token_start = base_yytext; state_before = YYSTATE; xcdepth = 0; BEGIN(xcc); /* Put back any characters past slash-star; see above */ yyless(2); fputs("/*", base_yyout); } YY_BREAK case 3: YY_RULE_SETUP #line 406 "pgc.l" { token_start = base_yytext; state_before = YYSTATE; xcdepth = 0; BEGIN(xcsql); /* Put back any characters past slash-star; see above */ yyless(2); fputs("/*", base_yyout); } YY_BREAK case 4: YY_RULE_SETUP #line 415 "pgc.l" { ECHO; } YY_BREAK case 5: YY_RULE_SETUP #line 416 "pgc.l" { xcdepth++; /* Put back any characters past slash-star; see above */ yyless(2); fputs("/_*", base_yyout); } YY_BREAK case 6: YY_RULE_SETUP #line 422 "pgc.l" { if (xcdepth <= 0) { ECHO; BEGIN(state_before); token_start = NULL; } else { xcdepth--; fputs("*_/", base_yyout); } } YY_BREAK case 7: YY_RULE_SETUP #line 435 "pgc.l" { ECHO; BEGIN(state_before); token_start = NULL; } YY_BREAK case 8: /* rule 8 can match eol */ YY_RULE_SETUP #line 440 "pgc.l" { ECHO; } YY_BREAK case 9: YY_RULE_SETUP #line 441 "pgc.l" { ECHO; } YY_BREAK case 10: YY_RULE_SETUP #line 442 "pgc.l" { ECHO; } YY_BREAK case YY_STATE_EOF(xcc): case YY_STATE_EOF(xcsql): #line 444 "pgc.l" { mmfatal(PARSE_ERROR, "unterminated /* comment"); } YY_BREAK case 11: YY_RULE_SETUP #line 446 "pgc.l" { token_start = base_yytext; BEGIN(xb); startlit(); addlitchar('b'); } YY_BREAK case 12: /* rule 12 can match eol */ #line 453 "pgc.l" case 13: /* rule 13 can match eol */ YY_RULE_SETUP #line 453 "pgc.l" { yyless(1); BEGIN(SQL); if (literalbuf[strspn(literalbuf, "01") + 1] != '\0') mmerror(PARSE_ERROR, ET_ERROR, "invalid bit string literal"); base_yylval.str = mm_strdup(literalbuf); return BCONST; } YY_BREAK case 14: /* rule 14 can match eol */ #line 463 "pgc.l" case 15: /* rule 15 can match eol */ YY_RULE_SETUP #line 463 "pgc.l" { addlit(base_yytext, base_yyleng); } YY_BREAK case 16: /* rule 16 can match eol */ #line 465 "pgc.l" case 17: /* rule 17 can match eol */ YY_RULE_SETUP #line 465 "pgc.l" { /* ignore */ } YY_BREAK case YY_STATE_EOF(xb): #line 466 "pgc.l" { mmfatal(PARSE_ERROR, "unterminated bit string literal"); } YY_BREAK case 18: YY_RULE_SETUP #line 468 "pgc.l" { token_start = base_yytext; BEGIN(xh); startlit(); addlitchar('x'); } YY_BREAK case 19: /* rule 19 can match eol */ #line 475 "pgc.l" case 20: /* rule 20 can match eol */ YY_RULE_SETUP #line 475 "pgc.l" { yyless(1); BEGIN(SQL); base_yylval.str = mm_strdup(literalbuf); return XCONST; } YY_BREAK case YY_STATE_EOF(xh): #line 482 "pgc.l" { mmfatal(PARSE_ERROR, "unterminated hexadecimal string literal"); } YY_BREAK case 21: YY_RULE_SETUP #line 483 "pgc.l" { /* National character. * Transfer it as-is to the backend. */ token_start = base_yytext; state_before = YYSTATE; BEGIN(xn); startlit(); } YY_BREAK case 22: YY_RULE_SETUP #line 492 "pgc.l" { token_start = base_yytext; state_before = YYSTATE; BEGIN(xqc); startlit(); } YY_BREAK case 23: YY_RULE_SETUP #line 498 "pgc.l" { token_start = base_yytext; state_before = YYSTATE; BEGIN(xq); startlit(); } YY_BREAK case 24: YY_RULE_SETUP #line 504 "pgc.l" { token_start = base_yytext; state_before = YYSTATE; BEGIN(xe); startlit(); } YY_BREAK case 25: YY_RULE_SETUP #line 510 "pgc.l" { token_start = base_yytext; state_before = YYSTATE; BEGIN(xus); startlit(); addlit(base_yytext, base_yyleng); } YY_BREAK case 26: /* rule 26 can match eol */ #line 518 "pgc.l" case 27: /* rule 27 can match eol */ YY_RULE_SETUP #line 518 "pgc.l" { yyless(1); BEGIN(state_before); base_yylval.str = mm_strdup(literalbuf); return SCONST; } YY_BREAK case 28: /* rule 28 can match eol */ #line 525 "pgc.l" case 29: /* rule 29 can match eol */ YY_RULE_SETUP #line 525 "pgc.l" { yyless(1); BEGIN(state_before); base_yylval.str = mm_strdup(literalbuf); return ECONST; } YY_BREAK case 30: /* rule 30 can match eol */ #line 532 "pgc.l" case 31: /* rule 31 can match eol */ YY_RULE_SETUP #line 532 "pgc.l" { yyless(1); BEGIN(state_before); base_yylval.str = mm_strdup(literalbuf); return NCONST; } YY_BREAK case 32: /* rule 32 can match eol */ YY_RULE_SETUP #line 538 "pgc.l" { addlit(base_yytext, base_yyleng); BEGIN(state_before); base_yylval.str = mm_strdup(literalbuf); return UCONST; } YY_BREAK case 33: YY_RULE_SETUP #line 544 "pgc.l" { addlitchar('\''); } YY_BREAK case 34: YY_RULE_SETUP #line 545 "pgc.l" { addlitchar('\\'); addlitchar('\''); } YY_BREAK case 35: /* rule 35 can match eol */ YY_RULE_SETUP #line 549 "pgc.l" { addlit(base_yytext, base_yyleng); } YY_BREAK case 36: /* rule 36 can match eol */ YY_RULE_SETUP #line 550 "pgc.l" { addlit(base_yytext, base_yyleng); } YY_BREAK case 37: YY_RULE_SETUP #line 551 "pgc.l" { addlit(base_yytext, base_yyleng); } YY_BREAK case 38: /* rule 38 can match eol */ YY_RULE_SETUP #line 552 "pgc.l" { addlit(base_yytext, base_yyleng); } YY_BREAK case 39: YY_RULE_SETUP #line 553 "pgc.l" { addlit(base_yytext, base_yyleng); } YY_BREAK case 40: YY_RULE_SETUP #line 554 "pgc.l" { addlit(base_yytext, base_yyleng); } YY_BREAK case 41: /* rule 41 can match eol */ YY_RULE_SETUP #line 555 "pgc.l" { /* ignore */ } YY_BREAK case 42: YY_RULE_SETUP #line 556 "pgc.l" { /* This is only needed for \ just before EOF */ addlitchar(base_yytext[0]); } YY_BREAK case YY_STATE_EOF(xq): case YY_STATE_EOF(xqc): case YY_STATE_EOF(xe): case YY_STATE_EOF(xn): case YY_STATE_EOF(xus): #line 560 "pgc.l" { mmfatal(PARSE_ERROR, "unterminated quoted string"); } YY_BREAK case 43: YY_RULE_SETUP #line 561 "pgc.l" { /* throw back all but the initial "$" */ yyless(1); /* and treat it as {other} */ return base_yytext[0]; } YY_BREAK case 44: YY_RULE_SETUP #line 567 "pgc.l" { token_start = base_yytext; if (dolqstart) free(dolqstart); dolqstart = mm_strdup(base_yytext); BEGIN(xdolq); startlit(); addlit(base_yytext, base_yyleng); } YY_BREAK case 45: YY_RULE_SETUP #line 576 "pgc.l" { if (strcmp(base_yytext, dolqstart) == 0) { addlit(base_yytext, base_yyleng); free(dolqstart); dolqstart = NULL; BEGIN(SQL); base_yylval.str = mm_strdup(literalbuf); return DOLCONST; } else { /* * When we fail to match $...$ to dolqstart, transfer * the $... part to the output, but put back the final * $ for rescanning. Consider $delim$...$junk$delim$ */ addlit(base_yytext, base_yyleng-1); yyless(base_yyleng-1); } } YY_BREAK case 46: /* rule 46 can match eol */ YY_RULE_SETUP #line 597 "pgc.l" { addlit(base_yytext, base_yyleng); } YY_BREAK case 47: YY_RULE_SETUP #line 598 "pgc.l" { addlit(base_yytext, base_yyleng); } YY_BREAK case 48: YY_RULE_SETUP #line 599 "pgc.l" { /* single quote or dollar sign */ addlitchar(base_yytext[0]); } YY_BREAK case YY_STATE_EOF(xdolq): #line 603 "pgc.l" { base_yyerror("unterminated dollar-quoted string"); } YY_BREAK case 49: YY_RULE_SETUP #line 604 "pgc.l" { state_before = YYSTATE; BEGIN(xd); startlit(); } YY_BREAK case 50: YY_RULE_SETUP #line 609 "pgc.l" { state_before = YYSTATE; BEGIN(xui); startlit(); addlit(base_yytext, base_yyleng); } YY_BREAK case 51: YY_RULE_SETUP #line 615 "pgc.l" { BEGIN(state_before); if (literallen == 0) mmerror(PARSE_ERROR, ET_ERROR, "zero-length delimited identifier"); /* The backend will truncate the identifier here. We do not as it does not change the result. */ base_yylval.str = mm_strdup(literalbuf); return CSTRING; } YY_BREAK case 52: YY_RULE_SETUP #line 623 "pgc.l" { BEGIN(state_before); base_yylval.str = mm_strdup(literalbuf); return CSTRING; } YY_BREAK case 53: /* rule 53 can match eol */ YY_RULE_SETUP #line 628 "pgc.l" { BEGIN(state_before); if (literallen == 2) /* "U&" */ mmerror(PARSE_ERROR, ET_ERROR, "zero-length delimited identifier"); /* The backend will truncate the identifier here. We do not as it does not change the result. */ addlit(base_yytext, base_yyleng); base_yylval.str = mm_strdup(literalbuf); return UIDENT; } YY_BREAK case 54: YY_RULE_SETUP #line 637 "pgc.l" { addlitchar('"'); } YY_BREAK case 55: /* rule 55 can match eol */ YY_RULE_SETUP #line 638 "pgc.l" { addlit(base_yytext, base_yyleng); } YY_BREAK case YY_STATE_EOF(xd): case YY_STATE_EOF(xdc): case YY_STATE_EOF(xui): #line 639 "pgc.l" { mmfatal(PARSE_ERROR, "unterminated quoted identifier"); } YY_BREAK case 56: YY_RULE_SETUP #line 640 "pgc.l" { state_before = YYSTATE; BEGIN(xdc); startlit(); } YY_BREAK case 57: /* rule 57 can match eol */ YY_RULE_SETUP #line 645 "pgc.l" { addlit(base_yytext, base_yyleng); } YY_BREAK case 58: YY_RULE_SETUP #line 646 "pgc.l" { return TYPECAST; } YY_BREAK case 59: YY_RULE_SETUP #line 647 "pgc.l" { return DOT_DOT; } YY_BREAK case 60: YY_RULE_SETUP #line 648 "pgc.l" { return COLON_EQUALS; } YY_BREAK case 61: YY_RULE_SETUP #line 649 "pgc.l" { return EQUALS_GREATER; } YY_BREAK case 62: YY_RULE_SETUP #line 650 "pgc.l" { return LESS_EQUALS; } YY_BREAK case 63: YY_RULE_SETUP #line 651 "pgc.l" { return GREATER_EQUALS; } YY_BREAK case 64: YY_RULE_SETUP #line 652 "pgc.l" { return NOT_EQUALS; } YY_BREAK case 65: YY_RULE_SETUP #line 653 "pgc.l" { return NOT_EQUALS; } YY_BREAK case 66: YY_RULE_SETUP #line 654 "pgc.l" { /* are we simulating Informix? */ if (INFORMIX_MODE) { unput(':'); } else return base_yytext[0]; } YY_BREAK case 67: YY_RULE_SETUP #line 663 "pgc.l" { /* * We may find a ';' inside a structure * definition in a TYPE or VAR statement. * This is not an EOL marker. */ if (base_yytext[0] == ';' && struct_level == 0) BEGIN(C); return base_yytext[0]; } YY_BREAK case 68: YY_RULE_SETUP #line 672 "pgc.l" { /* * Check for embedded slash-star or dash-dash; those * are comment starts, so operator must stop there. * Note that slash-star or dash-dash at the first * character will match a prior rule, not this one. */ int nchars = base_yyleng; char *slashstar = strstr(base_yytext, "/*"); char *dashdash = strstr(base_yytext, "--"); if (slashstar && dashdash) { /* if both appear, take the first one */ if (slashstar > dashdash) slashstar = dashdash; } else if (!slashstar) slashstar = dashdash; if (slashstar) nchars = slashstar - base_yytext; /* * For SQL compatibility, '+' and '-' cannot be the * last char of a multi-char operator unless the operator * contains chars that are not in SQL operators. * The idea is to lex '=-' as two operators, but not * to forbid operator names like '?-' that could not be * sequences of SQL operators. */ if (nchars > 1 && (base_yytext[nchars - 1] == '+' || base_yytext[nchars - 1] == '-')) { int ic; for (ic = nchars - 2; ic >= 0; ic--) { char c = base_yytext[ic]; if (c == '~' || c == '!' || c == '@' || c == '#' || c == '^' || c == '&' || c == '|' || c == '`' || c == '?' || c == '%') break; } if (ic < 0) { /* * didn't find a qualifying character, so remove * all trailing [+-] */ do { nchars--; } while (nchars > 1 && (base_yytext[nchars - 1] == '+' || base_yytext[nchars - 1] == '-')); } } if (nchars < base_yyleng) { /* Strip the unwanted chars from the token */ yyless(nchars); /* * If what we have left is only one char, and it's * one of the characters matching "self", then * return it as a character token the same way * that the "self" rule would have. */ if (nchars == 1 && strchr(",()[].;:+-*/%^<>=", base_yytext[0])) return base_yytext[0]; /* * Likewise, if what we have left is two chars, and * those match the tokens ">=", "<=", "=>", "<>" or * "!=", then we must return the appropriate token * rather than the generic Op. */ if (nchars == 2) { if (base_yytext[0] == '=' && base_yytext[1] == '>') return EQUALS_GREATER; if (base_yytext[0] == '>' && base_yytext[1] == '=') return GREATER_EQUALS; if (base_yytext[0] == '<' && base_yytext[1] == '=') return LESS_EQUALS; if (base_yytext[0] == '<' && base_yytext[1] == '>') return NOT_EQUALS; if (base_yytext[0] == '!' && base_yytext[1] == '=') return NOT_EQUALS; } } base_yylval.str = mm_strdup(base_yytext); return Op; } YY_BREAK case 69: YY_RULE_SETUP #line 768 "pgc.l" { base_yylval.ival = atol(base_yytext+1); return PARAM; } YY_BREAK case 70: YY_RULE_SETUP #line 772 "pgc.l" { int val; char* endptr; errno = 0; val = strtoint(base_yytext, &endptr, 10); if (*endptr != '\0' || errno == ERANGE) { errno = 0; base_yylval.str = mm_strdup(base_yytext); return FCONST; } base_yylval.ival = val; return ICONST; } YY_BREAK case 71: YY_RULE_SETUP #line 787 "pgc.l" { base_yylval.str = mm_strdup(base_yytext); return IP; } YY_BREAK case 72: YY_RULE_SETUP #line 791 "pgc.l" { base_yylval.str = mm_strdup(base_yytext); return FCONST; } YY_BREAK case 73: YY_RULE_SETUP #line 795 "pgc.l" { base_yylval.str = mm_strdup(base_yytext); return FCONST; } YY_BREAK case 74: YY_RULE_SETUP #line 799 "pgc.l" { yyless(base_yyleng-1); base_yylval.str = mm_strdup(base_yytext); return FCONST; } YY_BREAK case 75: YY_RULE_SETUP #line 804 "pgc.l" { yyless(base_yyleng-2); base_yylval.str = mm_strdup(base_yytext); return FCONST; } YY_BREAK case 76: /* rule 76 can match eol */ YY_RULE_SETUP #line 809 "pgc.l" { base_yylval.str = mm_strdup(base_yytext+1); return CVARIABLE; } YY_BREAK case 77: YY_RULE_SETUP #line 813 "pgc.l" { const ScanKeyword *keyword; if (!isdefine()) { /* Is it an SQL/ECPG keyword? */ keyword = ScanECPGKeywordLookup(base_yytext); if (keyword != NULL) return keyword->value; /* Is it a C keyword? */ keyword = ScanCKeywordLookup(base_yytext); if (keyword != NULL) return keyword->value; /* * None of the above. Return it as an identifier. * * The backend will attempt to truncate and case-fold * the identifier, but I see no good reason for ecpg * to do so; that's just another way that ecpg could get * out of step with the backend. */ base_yylval.str = mm_strdup(base_yytext); return IDENT; } } YY_BREAK case 78: YY_RULE_SETUP #line 840 "pgc.l" { return base_yytext[0]; } YY_BREAK case 79: /* rule 79 can match eol */ YY_RULE_SETUP #line 841 "pgc.l" { BEGIN(SQL); return SQL_START; } YY_BREAK case 80: YY_RULE_SETUP #line 842 "pgc.l" { /* are we simulating Informix? */ if (INFORMIX_MODE) { BEGIN(SQL); return SQL_START; } else return S_ANYTHING; } YY_BREAK case 81: /* rule 81 can match eol */ YY_RULE_SETUP #line 852 "pgc.l" { ECHO; } YY_BREAK case 82: YY_RULE_SETUP #line 853 "pgc.l" { char* endptr; errno = 0; base_yylval.ival = strtoul((char *)base_yytext,&endptr,16); if (*endptr != '\0' || errno == ERANGE) { errno = 0; base_yylval.str = mm_strdup(base_yytext); return SCONST; } return ICONST; } YY_BREAK case 83: /* rule 83 can match eol */ YY_RULE_SETUP #line 866 "pgc.l" { if (system_includes) { include_next = false; BEGIN(incl); } else { base_yylval.str = mm_strdup(base_yytext); return CPP_LINE; } } YY_BREAK case 84: /* rule 84 can match eol */ YY_RULE_SETUP #line 878 "pgc.l" { if (system_includes) { include_next = true; BEGIN(incl); } else { base_yylval.str = mm_strdup(base_yytext); return CPP_LINE; } } YY_BREAK case 85: /* rule 85 can match eol */ YY_RULE_SETUP #line 890 "pgc.l" { base_yylval.str = mm_strdup(base_yytext); return CPP_LINE; } YY_BREAK case 86: YY_RULE_SETUP #line 894 "pgc.l" { const ScanKeyword *keyword; /* * Try to detect a function name: * look for identifiers at the global scope * keep the last identifier before the first '(' and '{' */ if (braces_open == 0 && parenths_open == 0) { if (current_function) free(current_function); current_function = mm_strdup(base_yytext); } /* Informix uses SQL defines only in SQL space */ /* however, some defines have to be taken care of for compatibility */ if ((!INFORMIX_MODE || !isinformixdefine()) && !isdefine()) { keyword = ScanCKeywordLookup(base_yytext); if (keyword != NULL) return keyword->value; else { base_yylval.str = mm_strdup(base_yytext); return IDENT; } } } YY_BREAK case 87: YY_RULE_SETUP #line 921 "pgc.l" { mmerror(PARSE_ERROR, ET_ERROR, "nested /* ... */ comments"); } YY_BREAK case 88: YY_RULE_SETUP #line 922 "pgc.l" { return ':'; } YY_BREAK case 89: YY_RULE_SETUP #line 923 "pgc.l" { return ';'; } YY_BREAK case 90: YY_RULE_SETUP #line 924 "pgc.l" { return ','; } YY_BREAK case 91: YY_RULE_SETUP #line 925 "pgc.l" { return '*'; } YY_BREAK case 92: YY_RULE_SETUP #line 926 "pgc.l" { return '%'; } YY_BREAK case 93: YY_RULE_SETUP #line 927 "pgc.l" { return '/'; } YY_BREAK case 94: YY_RULE_SETUP #line 928 "pgc.l" { return '+'; } YY_BREAK case 95: YY_RULE_SETUP #line 929 "pgc.l" { return '-'; } YY_BREAK case 96: YY_RULE_SETUP #line 930 "pgc.l" { parenths_open++; return '('; } YY_BREAK case 97: YY_RULE_SETUP #line 931 "pgc.l" { parenths_open--; return ')'; } YY_BREAK case 98: /* rule 98 can match eol */ YY_RULE_SETUP #line 932 "pgc.l" { ECHO; } YY_BREAK case 99: YY_RULE_SETUP #line 933 "pgc.l" { return '{'; } YY_BREAK case 100: YY_RULE_SETUP #line 934 "pgc.l" { return '}'; } YY_BREAK case 101: YY_RULE_SETUP #line 935 "pgc.l" { return '['; } YY_BREAK case 102: YY_RULE_SETUP #line 936 "pgc.l" { return ']'; } YY_BREAK case 103: YY_RULE_SETUP #line 937 "pgc.l" { return '='; } YY_BREAK case 104: YY_RULE_SETUP #line 938 "pgc.l" { return S_MEMBER; } YY_BREAK case 105: YY_RULE_SETUP #line 939 "pgc.l" { return S_RSHIFT; } YY_BREAK case 106: YY_RULE_SETUP #line 940 "pgc.l" { return S_LSHIFT; } YY_BREAK case 107: YY_RULE_SETUP #line 941 "pgc.l" { return S_OR; } YY_BREAK case 108: YY_RULE_SETUP #line 942 "pgc.l" { return S_AND; } YY_BREAK case 109: YY_RULE_SETUP #line 943 "pgc.l" { return S_INC; } YY_BREAK case 110: YY_RULE_SETUP #line 944 "pgc.l" { return S_DEC; } YY_BREAK case 111: YY_RULE_SETUP #line 945 "pgc.l" { return S_EQUAL; } YY_BREAK case 112: YY_RULE_SETUP #line 946 "pgc.l" { return S_NEQUAL; } YY_BREAK case 113: YY_RULE_SETUP #line 947 "pgc.l" { return S_ADD; } YY_BREAK case 114: YY_RULE_SETUP #line 948 "pgc.l" { return S_SUB; } YY_BREAK case 115: YY_RULE_SETUP #line 949 "pgc.l" { return S_MUL; } YY_BREAK case 116: YY_RULE_SETUP #line 950 "pgc.l" { return S_DIV; } YY_BREAK case 117: YY_RULE_SETUP #line 951 "pgc.l" { return S_MOD; } YY_BREAK case 118: YY_RULE_SETUP #line 952 "pgc.l" { return S_MEMPOINT; } YY_BREAK case 119: YY_RULE_SETUP #line 953 "pgc.l" { return S_DOTPOINT; } YY_BREAK case 120: YY_RULE_SETUP #line 954 "pgc.l" { return S_ANYTHING; } YY_BREAK case 121: /* rule 121 can match eol */ YY_RULE_SETUP #line 955 "pgc.l" { BEGIN(def_ident); } YY_BREAK case 122: /* rule 122 can match eol */ YY_RULE_SETUP #line 956 "pgc.l" { /* are we simulating Informix? */ if (INFORMIX_MODE) { BEGIN(def_ident); } else { yyless(1); return S_ANYTHING; } } YY_BREAK case 123: /* rule 123 can match eol */ YY_RULE_SETUP #line 968 "pgc.l" { BEGIN(undef); } YY_BREAK case 124: /* rule 124 can match eol */ YY_RULE_SETUP #line 969 "pgc.l" { /* are we simulating Informix? */ if (INFORMIX_MODE) { BEGIN(undef); } else { yyless(1); return S_ANYTHING; } } YY_BREAK case 125: /* rule 125 can match eol */ YY_RULE_SETUP #line 981 "pgc.l" { struct _defines *ptr, *ptr2 = NULL; int i; /* * Skip the ";" and trailing whitespace. Note that base_yytext * contains at least one non-space character plus the ";" */ for (i = strlen(base_yytext)-2; i > 0 && ecpg_isspace(base_yytext[i]); i-- ) ; base_yytext[i+1] = '\0'; for (ptr = defines; ptr != NULL; ptr2 = ptr, ptr = ptr->next) { if (strcmp(base_yytext, ptr->old) == 0) { if (ptr2 == NULL) defines = ptr->next; else ptr2->next = ptr->next; free(ptr->new); free(ptr->old); free(ptr); break; } } BEGIN(C); } YY_BREAK case 126: /* rule 126 can match eol */ YY_RULE_SETUP #line 1013 "pgc.l" { mmfatal(PARSE_ERROR, "missing identifier in EXEC SQL UNDEF command"); yyterminate(); } YY_BREAK case 127: /* rule 127 can match eol */ YY_RULE_SETUP #line 1017 "pgc.l" { BEGIN(incl); } YY_BREAK case 128: /* rule 128 can match eol */ YY_RULE_SETUP #line 1018 "pgc.l" { /* are we simulating Informix? */ if (INFORMIX_MODE) { BEGIN(incl); } else { yyless(1); return S_ANYTHING; } } YY_BREAK case 129: /* rule 129 can match eol */ YY_RULE_SETUP #line 1030 "pgc.l" { ifcond = true; BEGIN(xcond); } YY_BREAK case 130: /* rule 130 can match eol */ YY_RULE_SETUP #line 1031 "pgc.l" { /* are we simulating Informix? */ if (INFORMIX_MODE) { ifcond = true; BEGIN(xcond); } else { yyless(1); return S_ANYTHING; } } YY_BREAK case 131: /* rule 131 can match eol */ YY_RULE_SETUP #line 1044 "pgc.l" { ifcond = false; BEGIN(xcond); } YY_BREAK case 132: /* rule 132 can match eol */ YY_RULE_SETUP #line 1045 "pgc.l" { /* are we simulating Informix? */ if (INFORMIX_MODE) { ifcond = false; BEGIN(xcond); } else { yyless(1); return S_ANYTHING; } } YY_BREAK case 133: /* rule 133 can match eol */ YY_RULE_SETUP #line 1058 "pgc.l" { /* pop stack */ if ( preproc_tos == 0 ) { mmfatal(PARSE_ERROR, "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""); } else if ( stacked_if_value[preproc_tos].else_branch ) mmfatal(PARSE_ERROR, "missing \"EXEC SQL ENDIF;\""); else preproc_tos--; ifcond = true; BEGIN(xcond); } YY_BREAK case 134: /* rule 134 can match eol */ YY_RULE_SETUP #line 1069 "pgc.l" { /* are we simulating Informix? */ if (INFORMIX_MODE) { if (preproc_tos == 0) mmfatal(PARSE_ERROR, "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""); else if (stacked_if_value[preproc_tos].else_branch) mmfatal(PARSE_ERROR, "missing \"EXEC SQL ENDIF;\""); else preproc_tos--; ifcond = true; BEGIN(xcond); } else { yyless(1); return S_ANYTHING; } } YY_BREAK case 135: /* rule 135 can match eol */ YY_RULE_SETUP #line 1090 "pgc.l" { /* only exec sql endif pops the stack, so take care of duplicated 'else' */ if (stacked_if_value[preproc_tos].else_branch) mmfatal(PARSE_ERROR, "more than one EXEC SQL ELSE"); else { stacked_if_value[preproc_tos].else_branch = true; stacked_if_value[preproc_tos].condition = (stacked_if_value[preproc_tos-1].condition && !stacked_if_value[preproc_tos].condition); if (stacked_if_value[preproc_tos].condition) BEGIN(C); else BEGIN(xskip); } } YY_BREAK case 136: /* rule 136 can match eol */ YY_RULE_SETUP #line 1106 "pgc.l" { /* are we simulating Informix? */ if (INFORMIX_MODE) { if (stacked_if_value[preproc_tos].else_branch) mmfatal(PARSE_ERROR, "more than one EXEC SQL ELSE"); else { stacked_if_value[preproc_tos].else_branch = true; stacked_if_value[preproc_tos].condition = (stacked_if_value[preproc_tos-1].condition && !stacked_if_value[preproc_tos].condition); if (stacked_if_value[preproc_tos].condition) BEGIN(C); else BEGIN(xskip); } } else { yyless(1); return S_ANYTHING; } } YY_BREAK case 137: /* rule 137 can match eol */ YY_RULE_SETUP #line 1131 "pgc.l" { if (preproc_tos == 0) mmfatal(PARSE_ERROR, "unmatched EXEC SQL ENDIF"); else preproc_tos--; if (stacked_if_value[preproc_tos].condition) BEGIN(C); else BEGIN(xskip); } YY_BREAK case 138: /* rule 138 can match eol */ YY_RULE_SETUP #line 1142 "pgc.l" { /* are we simulating Informix? */ if (INFORMIX_MODE) { if (preproc_tos == 0) mmfatal(PARSE_ERROR, "unmatched EXEC SQL ENDIF"); else preproc_tos--; if (stacked_if_value[preproc_tos].condition) BEGIN(C); else BEGIN(xskip); } else { yyless(1); return S_ANYTHING; } } YY_BREAK case 139: YY_RULE_SETUP #line 1163 "pgc.l" { /* ignore */ } YY_BREAK case 140: /* rule 140 can match eol */ YY_RULE_SETUP #line 1165 "pgc.l" { if (preproc_tos >= MAX_NESTED_IF-1) mmfatal(PARSE_ERROR, "too many nested EXEC SQL IFDEF conditions"); else { struct _defines *defptr; unsigned int i; /* * Skip the ";" and trailing whitespace. Note that base_yytext * contains at least one non-space character plus the ";" */ for (i = strlen(base_yytext)-2; i > 0 && ecpg_isspace(base_yytext[i]); i-- ) ; base_yytext[i+1] = '\0'; for (defptr = defines; defptr != NULL && strcmp(base_yytext, defptr->old) != 0; defptr = defptr->next); preproc_tos++; stacked_if_value[preproc_tos].else_branch = false; stacked_if_value[preproc_tos].condition = (defptr ? ifcond : !ifcond) && stacked_if_value[preproc_tos-1].condition; } if (stacked_if_value[preproc_tos].condition) BEGIN(C); else BEGIN(xskip); } YY_BREAK case 141: /* rule 141 can match eol */ YY_RULE_SETUP #line 1199 "pgc.l" { mmfatal(PARSE_ERROR, "missing identifier in EXEC SQL IFDEF command"); yyterminate(); } YY_BREAK case 142: YY_RULE_SETUP #line 1203 "pgc.l" { old = mm_strdup(base_yytext); BEGIN(def); startlit(); } YY_BREAK case 143: /* rule 143 can match eol */ YY_RULE_SETUP #line 1208 "pgc.l" { mmfatal(PARSE_ERROR, "missing identifier in EXEC SQL DEFINE command"); yyterminate(); } YY_BREAK case 144: /* rule 144 can match eol */ YY_RULE_SETUP #line 1212 "pgc.l" { struct _defines *ptr, *this; for (ptr = defines; ptr != NULL; ptr = ptr->next) { if (strcmp(old, ptr->old) == 0) { free(ptr->new); ptr->new = mm_strdup(literalbuf); } } if (ptr == NULL) { this = (struct _defines *) mm_alloc(sizeof(struct _defines)); /* initial definition */ this->old = old; this->new = mm_strdup(literalbuf); this->next = defines; this->used = NULL; defines = this; } BEGIN(C); } YY_BREAK case 145: /* rule 145 can match eol */ YY_RULE_SETUP #line 1237 "pgc.l" { addlit(base_yytext, base_yyleng); } YY_BREAK case 146: /* rule 146 can match eol */ YY_RULE_SETUP #line 1238 "pgc.l" { parse_include(); } YY_BREAK case 147: /* rule 147 can match eol */ YY_RULE_SETUP #line 1239 "pgc.l" { parse_include(); } YY_BREAK case 148: /* rule 148 can match eol */ YY_RULE_SETUP #line 1240 "pgc.l" { parse_include(); } YY_BREAK case 149: /* rule 149 can match eol */ YY_RULE_SETUP #line 1241 "pgc.l" { mmfatal(PARSE_ERROR, "syntax error in EXEC SQL INCLUDE command"); yyterminate(); } YY_BREAK case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(C): case YY_STATE_EOF(SQL): case YY_STATE_EOF(incl): case YY_STATE_EOF(def): case YY_STATE_EOF(def_ident): case YY_STATE_EOF(undef): case YY_STATE_EOF(xcond): case YY_STATE_EOF(xskip): #line 1246 "pgc.l" { if (yy_buffer == NULL) { if ( preproc_tos > 0 ) { preproc_tos = 0; mmfatal(PARSE_ERROR, "missing \"EXEC SQL ENDIF;\""); } yyterminate(); } else { struct _yy_buffer *yb = yy_buffer; int i; struct _defines *ptr; for (ptr = defines; ptr; ptr = ptr->next) if (ptr->used == yy_buffer) { ptr->used = NULL; break; } if (base_yyin != NULL) fclose(base_yyin); base_yy_delete_buffer(YY_CURRENT_BUFFER ); base_yy_switch_to_buffer(yy_buffer->buffer); base_yylineno = yy_buffer->lineno; /* We have to output the filename only if we change files here */ i = strcmp(input_filename, yy_buffer->filename); free(input_filename); input_filename = yy_buffer->filename; yy_buffer = yy_buffer->next; free(yb); if (i != 0) output_line_number(); } } YY_BREAK case 150: /* rule 150 can match eol */ YY_RULE_SETUP #line 1291 "pgc.l" { mmfatal(PARSE_ERROR, "internal error: unreachable state; please report this to "); } YY_BREAK case 151: YY_RULE_SETUP #line 1293 "pgc.l" YY_FATAL_ERROR( "flex scanner jammed" ); YY_BREAK #line 4074 "pgc.c" case YY_END_OF_BUFFER: { /* Amount of text matched not including the EOB char. */ int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; /* Undo the effects of YY_DO_BEFORE_ACTION. */ *yy_cp = (yy_hold_char); YY_RESTORE_YY_MORE_OFFSET if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) { /* We're scanning a new file or input source. It's * possible that this happened because the user * just pointed base_yyin at a new source and called * base_yylex(). If so, then we have to assure * consistency between YY_CURRENT_BUFFER and our * globals. Here is the right place to do so, because * this is the first action (other than possibly a * back-up) that will match for the new input source. */ (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; YY_CURRENT_BUFFER_LVALUE->yy_input_file = base_yyin; YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; } /* Note that here we test for yy_c_buf_p "<=" to the position * of the first EOB in the buffer, since yy_c_buf_p will * already have been incremented past the NUL character * (since all states make transitions on EOB to the * end-of-buffer state). Contrast this with the test * in input(). */ if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) { /* This was really a NUL. */ yy_state_type yy_next_state; (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state( ); /* Okay, we're now positioned to make the NUL * transition. We couldn't have * yy_get_previous_state() go ahead and do it * for us because it doesn't know how to deal * with the possibility of jamming (and we don't * want to build jamming into it because then it * will run more slowly). */ yy_next_state = yy_try_NUL_trans( yy_current_state ); yy_bp = (yytext_ptr) + YY_MORE_ADJ; if ( yy_next_state ) { /* Consume the NUL. */ yy_cp = ++(yy_c_buf_p); yy_current_state = yy_next_state; goto yy_match; } else { yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); goto yy_find_action; } } else switch ( yy_get_next_buffer( ) ) { case EOB_ACT_END_OF_FILE: { (yy_did_buffer_switch_on_eof) = 0; if ( base_yywrap( ) ) { /* Note: because we've taken care in * yy_get_next_buffer() to have set up * base_yytext, we can now set up * yy_c_buf_p so that if some total * hoser (like flex itself) wants to * call the scanner after we return the * YY_NULL, it'll still work - another * YY_NULL will get returned. */ (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; yy_act = YY_STATE_EOF(YY_START); goto do_action; } else { if ( ! (yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; } break; } case EOB_ACT_CONTINUE_SCAN: (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state( ); yy_cp = (yy_c_buf_p); yy_bp = (yytext_ptr) + YY_MORE_ADJ; goto yy_match; case EOB_ACT_LAST_MATCH: (yy_c_buf_p) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; yy_current_state = yy_get_previous_state( ); yy_cp = (yy_c_buf_p); yy_bp = (yytext_ptr) + YY_MORE_ADJ; goto yy_find_action; } break; } default: YY_FATAL_ERROR( "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ } /* end of user's declarations */ } /* end of base_yylex */ /* yy_get_next_buffer - try to read in a new buffer * * Returns a code representing an action: * EOB_ACT_LAST_MATCH - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position * EOB_ACT_END_OF_FILE - end of file */ static int yy_get_next_buffer (void) { char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; char *source = (yytext_ptr); int number_to_move, i; int ret_val; if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) YY_FATAL_ERROR( "fatal flex scanner internal error--end of buffer missed" ); if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) { /* Don't try to fill the buffer, so this is an EOF. */ if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) { /* We matched a single character, the EOB, so * treat this as a final EOF. */ return EOB_ACT_END_OF_FILE; } else { /* We matched some text prior to the EOB, first * process it. */ return EOB_ACT_LAST_MATCH; } } /* Try to read more data. */ /* First move last chars to start of buffer. */ number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1); for ( i = 0; i < number_to_move; ++i ) *(dest++) = *(source++); if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) /* don't do the read, it's not guaranteed to return an EOF, * just force an EOF */ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; else { int num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; while ( num_to_read <= 0 ) { /* Not enough room in the buffer - grow it. */ /* just a shorter name for the current buffer */ YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE; int yy_c_buf_p_offset = (int) ((yy_c_buf_p) - b->yy_ch_buf); if ( b->yy_is_our_buffer ) { int new_size = b->yy_buf_size * 2; if ( new_size <= 0 ) b->yy_buf_size += b->yy_buf_size / 8; else b->yy_buf_size *= 2; b->yy_ch_buf = (char *) /* Include room in for 2 EOB chars. */ base_yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); } else /* Can't grow it, we don't own it. */ b->yy_ch_buf = NULL; if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" ); (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; } if ( num_to_read > YY_READ_BUF_SIZE ) num_to_read = YY_READ_BUF_SIZE; /* Read in more data. */ YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), (yy_n_chars), num_to_read ); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } if ( (yy_n_chars) == 0 ) { if ( number_to_move == YY_MORE_ADJ ) { ret_val = EOB_ACT_END_OF_FILE; base_yyrestart(base_yyin ); } else { ret_val = EOB_ACT_LAST_MATCH; YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_EOF_PENDING; } } else ret_val = EOB_ACT_CONTINUE_SCAN; if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { /* Extend the array by 50%, plus the number we really need. */ int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) base_yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ); if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); } (yy_n_chars) += number_to_move; YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; return ret_val; } /* yy_get_previous_state - get the state just before the EOB char was reached */ static yy_state_type yy_get_previous_state (void) { yy_state_type yy_current_state; char *yy_cp; yy_current_state = (yy_start); for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) { YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 831 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (flex_int16_t) yy_c]; } return yy_current_state; } /* yy_try_NUL_trans - try to make a transition on the NUL character * * synopsis * next_state = yy_try_NUL_trans( current_state ); */ static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) { int yy_is_jam; char *yy_cp = (yy_c_buf_p); YY_CHAR yy_c = 1; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 831 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (flex_int16_t) yy_c]; yy_is_jam = (yy_current_state == 830); return yy_is_jam ? 0 : yy_current_state; } #ifndef YY_NO_UNPUT static void yyunput (int c, char * yy_bp ) { char *yy_cp; yy_cp = (yy_c_buf_p); /* undo effects of setting up base_yytext */ *yy_cp = (yy_hold_char); if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) { /* need to shift things up to make room */ /* +2 for EOB chars. */ int number_to_move = (yy_n_chars) + 2; char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; char *source = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) *--dest = *--source; yy_cp += (int) (dest - source); yy_bp += (int) (dest - source); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = (int) YY_CURRENT_BUFFER_LVALUE->yy_buf_size; if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) YY_FATAL_ERROR( "flex scanner push-back overflow" ); } *--yy_cp = (char) c; if ( c == '\n' ){ --base_yylineno; } (yytext_ptr) = yy_bp; (yy_hold_char) = *yy_cp; (yy_c_buf_p) = yy_cp; } #endif #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput (void) #else static int input (void) #endif { int c; *(yy_c_buf_p) = (yy_hold_char); if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) { /* yy_c_buf_p now points to the character we want to return. * If this occurs *before* the EOB characters, then it's a * valid NUL; if not, then we've hit the end of the buffer. */ if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) /* This was really a NUL. */ *(yy_c_buf_p) = '\0'; else { /* need more input */ int offset = (yy_c_buf_p) - (yytext_ptr); ++(yy_c_buf_p); switch ( yy_get_next_buffer( ) ) { case EOB_ACT_LAST_MATCH: /* This happens because yy_g_n_b() * sees that we've accumulated a * token and flags that we need to * try matching the token before * proceeding. But for input(), * there's no matching to consider. * So convert the EOB_ACT_LAST_MATCH * to EOB_ACT_END_OF_FILE. */ /* Reset buffer status. */ base_yyrestart(base_yyin ); /*FALLTHROUGH*/ case EOB_ACT_END_OF_FILE: { if ( base_yywrap( ) ) return 0; if ( ! (yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; #ifdef __cplusplus return yyinput(); #else return input(); #endif } case EOB_ACT_CONTINUE_SCAN: (yy_c_buf_p) = (yytext_ptr) + offset; break; } } } c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ *(yy_c_buf_p) = '\0'; /* preserve base_yytext */ (yy_hold_char) = *++(yy_c_buf_p); if ( c == '\n' ) base_yylineno++; ; return c; } #endif /* ifndef YY_NO_INPUT */ /** Immediately switch to a different input stream. * @param input_file A readable stream. * * @note This function does not reset the start condition to @c INITIAL . */ void base_yyrestart (FILE * input_file ) { if ( ! YY_CURRENT_BUFFER ){ base_yyensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = base_yy_create_buffer(base_yyin,YY_BUF_SIZE ); } base_yy_init_buffer(YY_CURRENT_BUFFER,input_file ); base_yy_load_buffer_state( ); } /** Switch to a different input buffer. * @param new_buffer The new input buffer. * */ void base_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) { /* TODO. We should be able to replace this entire function body * with * base_yypop_buffer_state(); * base_yypush_buffer_state(new_buffer); */ base_yyensure_buffer_stack (); if ( YY_CURRENT_BUFFER == new_buffer ) return; if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ *(yy_c_buf_p) = (yy_hold_char); YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } YY_CURRENT_BUFFER_LVALUE = new_buffer; base_yy_load_buffer_state( ); /* We don't actually know whether we did this switch during * EOF (base_yywrap()) processing, but the only time this flag * is looked at is after base_yywrap() is called, so it's safe * to go ahead and always set it. */ (yy_did_buffer_switch_on_eof) = 1; } static void base_yy_load_buffer_state (void) { (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; base_yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; (yy_hold_char) = *(yy_c_buf_p); } /** Allocate and initialize an input buffer state. * @param file A readable stream. * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. * * @return the allocated buffer state. */ YY_BUFFER_STATE base_yy_create_buffer (FILE * file, int size ) { YY_BUFFER_STATE b; b = (YY_BUFFER_STATE) base_yyalloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in base_yy_create_buffer()" ); b->yy_buf_size = (yy_size_t)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 *) base_yyalloc(b->yy_buf_size + 2 ); if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in base_yy_create_buffer()" ); b->yy_is_our_buffer = 1; base_yy_init_buffer(b,file ); return b; } /** Destroy the buffer. * @param b a buffer created with base_yy_create_buffer() * */ void base_yy_delete_buffer (YY_BUFFER_STATE b ) { if ( ! b ) return; if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; if ( b->yy_is_our_buffer ) base_yyfree((void *) b->yy_ch_buf ); base_yyfree((void *) b ); } /* Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, * such as during a base_yyrestart() or at EOF. */ static void base_yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) { int oerrno = errno; base_yy_flush_buffer(b ); b->yy_input_file = file; b->yy_fill_buffer = 1; /* If b is the current buffer, then base_yy_init_buffer was _probably_ * called from base_yyrestart() or through yy_get_next_buffer. * In that case, we don't want to reset the lineno or column. */ if (b != YY_CURRENT_BUFFER){ b->yy_bs_lineno = 1; b->yy_bs_column = 0; } b->yy_is_interactive = 0; errno = oerrno; } /** Discard all buffered characters. On the next scan, YY_INPUT will be called. * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. * */ void base_yy_flush_buffer (YY_BUFFER_STATE b ) { if ( ! b ) return; b->yy_n_chars = 0; /* We always need two end-of-buffer characters. The first causes * a transition to the end-of-buffer state. The second causes * a jam in that state. */ b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; b->yy_buf_pos = &b->yy_ch_buf[0]; b->yy_at_bol = 1; b->yy_buffer_status = YY_BUFFER_NEW; if ( b == YY_CURRENT_BUFFER ) base_yy_load_buffer_state( ); } /** Pushes the new state onto the stack. The new state becomes * the current state. This function will allocate the stack * if necessary. * @param new_buffer The new state. * */ void base_yypush_buffer_state (YY_BUFFER_STATE new_buffer ) { if (new_buffer == NULL) return; base_yyensure_buffer_stack(); /* This block is copied from base_yy_switch_to_buffer. */ if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ *(yy_c_buf_p) = (yy_hold_char); YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } /* Only push if top exists. Otherwise, replace top. */ if (YY_CURRENT_BUFFER) (yy_buffer_stack_top)++; YY_CURRENT_BUFFER_LVALUE = new_buffer; /* copied from base_yy_switch_to_buffer. */ base_yy_load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } /** Removes and deletes the top of the stack, if present. * The next element becomes the new top. * */ void base_yypop_buffer_state (void) { if (!YY_CURRENT_BUFFER) return; base_yy_delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; if ((yy_buffer_stack_top) > 0) --(yy_buffer_stack_top); if (YY_CURRENT_BUFFER) { base_yy_load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } } /* Allocates the stack if it does not exist. * Guarantees space for at least one push. */ static void base_yyensure_buffer_stack (void) { int num_to_alloc; if (!(yy_buffer_stack)) { /* First allocation is just for 2 elements, since we don't know if this * scanner will even need a stack. We use 2 instead of 1 to avoid an * immediate realloc on the next call. */ num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */ (yy_buffer_stack) = (struct yy_buffer_state**)base_yyalloc (num_to_alloc * sizeof(struct yy_buffer_state*) ); if ( ! (yy_buffer_stack) ) YY_FATAL_ERROR( "out of dynamic memory in base_yyensure_buffer_stack()" ); memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); (yy_buffer_stack_max) = num_to_alloc; (yy_buffer_stack_top) = 0; return; } if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ /* Increase the buffer to prepare for a possible push. */ yy_size_t grow_size = 8 /* arbitrary grow size */; num_to_alloc = (yy_buffer_stack_max) + grow_size; (yy_buffer_stack) = (struct yy_buffer_state**)base_yyrealloc ((yy_buffer_stack), num_to_alloc * sizeof(struct yy_buffer_state*) ); if ( ! (yy_buffer_stack) ) YY_FATAL_ERROR( "out of dynamic memory in base_yyensure_buffer_stack()" ); /* zero only the new slots.*/ memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); (yy_buffer_stack_max) = num_to_alloc; } } /** Setup the input buffer state to scan directly from a user-specified character buffer. * @param base the character buffer * @param size the size in bytes of the character buffer * * @return the newly allocated buffer state object. */ YY_BUFFER_STATE base_yy_scan_buffer (char * base, yy_size_t size ) { YY_BUFFER_STATE b; if ( size < 2 || base[size-2] != YY_END_OF_BUFFER_CHAR || base[size-1] != YY_END_OF_BUFFER_CHAR ) /* They forgot to leave room for the EOB's. */ return NULL; b = (YY_BUFFER_STATE) base_yyalloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in base_yy_scan_buffer()" ); b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ b->yy_buf_pos = b->yy_ch_buf = base; b->yy_is_our_buffer = 0; b->yy_input_file = NULL; b->yy_n_chars = b->yy_buf_size; b->yy_is_interactive = 0; b->yy_at_bol = 1; b->yy_fill_buffer = 0; b->yy_buffer_status = YY_BUFFER_NEW; base_yy_switch_to_buffer(b ); return b; } /** Setup the input buffer state to scan a string. The next call to base_yylex() will * scan from a @e copy of @a str. * @param yystr a NUL-terminated string to scan * * @return the newly allocated buffer state object. * @note If you want to scan bytes that may contain NUL values, then use * base_yy_scan_bytes() instead. */ YY_BUFFER_STATE base_yy_scan_string (yyconst char * yystr ) { return base_yy_scan_bytes(yystr,(int) strlen(yystr) ); } /** Setup the input buffer state to scan the given bytes. The next call to base_yylex() will * scan from a @e copy of @a bytes. * @param yybytes the byte buffer to scan * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. * * @return the newly allocated buffer state object. */ YY_BUFFER_STATE base_yy_scan_bytes (yyconst char * yybytes, int _yybytes_len ) { YY_BUFFER_STATE b; char *buf; yy_size_t n; int i; /* Get memory for full buffer, including space for trailing EOB's. */ n = (yy_size_t) (_yybytes_len + 2); buf = (char *) base_yyalloc(n ); if ( ! buf ) YY_FATAL_ERROR( "out of dynamic memory in base_yy_scan_bytes()" ); for ( i = 0; i < _yybytes_len; ++i ) buf[i] = yybytes[i]; buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; b = base_yy_scan_buffer(buf,n ); if ( ! b ) YY_FATAL_ERROR( "bad buffer in base_yy_scan_bytes()" ); /* It's okay to grow etc. this buffer, and we should throw it * away when we're done. */ b->yy_is_our_buffer = 1; return b; } #ifndef YY_EXIT_FAILURE #define YY_EXIT_FAILURE 2 #endif static void yynoreturn yy_fatal_error (yyconst char* msg ) { (void) fprintf( stderr, "%s\n", msg ); exit( YY_EXIT_FAILURE ); } /* Redefine yyless() so it works in section 3 code. */ #undef yyless #define yyless(n) \ do \ { \ /* Undo effects of setting up base_yytext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ base_yytext[base_yyleng] = (yy_hold_char); \ (yy_c_buf_p) = base_yytext + yyless_macro_arg; \ (yy_hold_char) = *(yy_c_buf_p); \ *(yy_c_buf_p) = '\0'; \ base_yyleng = yyless_macro_arg; \ } \ while ( 0 ) /* Accessor methods (get/set functions) to struct members. */ /** Get the current line number. * */ int base_yyget_lineno (void) { return base_yylineno; } /** Get the input stream. * */ FILE *base_yyget_in (void) { return base_yyin; } /** Get the output stream. * */ FILE *base_yyget_out (void) { return base_yyout; } /** Get the length of the current token. * */ int base_yyget_leng (void) { return base_yyleng; } /** Get the current token. * */ char *base_yyget_text (void) { return base_yytext; } /** Set the current line number. * @param _line_number line number * */ void base_yyset_lineno (int _line_number ) { base_yylineno = _line_number; } /** Set the input stream. This does not discard the current * input buffer. * @param _in_str A readable stream. * * @see base_yy_switch_to_buffer */ void base_yyset_in (FILE * _in_str ) { base_yyin = _in_str ; } void base_yyset_out (FILE * _out_str ) { base_yyout = _out_str ; } int base_yyget_debug (void) { return base_yy_flex_debug; } void base_yyset_debug (int _bdebug ) { base_yy_flex_debug = _bdebug ; } static int yy_init_globals (void) { /* Initialization is the same as for the non-reentrant scanner. * This function is called from base_yylex_destroy(), so don't allocate here. */ /* We do not touch base_yylineno unless the option is enabled. */ base_yylineno = 1; (yy_buffer_stack) = NULL; (yy_buffer_stack_top) = 0; (yy_buffer_stack_max) = 0; (yy_c_buf_p) = NULL; (yy_init) = 0; (yy_start) = 0; /* Defined in main.c */ #ifdef YY_STDINIT base_yyin = stdin; base_yyout = stdout; #else base_yyin = NULL; base_yyout = NULL; #endif /* For future reference: Set errno on error, since we are called by * base_yylex_init() */ return 0; } /* base_yylex_destroy is for both reentrant and non-reentrant scanners. */ int base_yylex_destroy (void) { /* Pop the buffer stack, destroying each element. */ while(YY_CURRENT_BUFFER){ base_yy_delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; base_yypop_buffer_state(); } /* Destroy the stack itself. */ base_yyfree((yy_buffer_stack) ); (yy_buffer_stack) = NULL; /* Reset the globals. This is important in a non-reentrant scanner so the next time * base_yylex() is called, initialization will occur. */ yy_init_globals( ); return 0; } /* * Internal utility routines. */ #ifndef yytext_ptr static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) { 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 ) { int n; for ( n = 0; s[n]; ++n ) ; return n; } #endif void *base_yyalloc (yy_size_t size ) { return malloc(size); } void *base_yyrealloc (void * ptr, yy_size_t size ) { /* The cast to (char *) in the following accommodates both * implementations that use char* generic pointers, and those * that use void* generic pointers. It works with the latter * because both ANSI C and C++ allow castless assignment from * any pointer type to void*, and deal with argument conversions * as though doing an assignment. */ return realloc(ptr, size); } void base_yyfree (void * ptr ) { free( (char *) ptr ); /* see base_yyrealloc() for (char *) cast */ } #define YYTABLES_NAME "yytables" #line 1293 "pgc.l" /* LCOV_EXCL_STOP */ void lex_init(void) { braces_open = 0; parenths_open = 0; current_function = NULL; preproc_tos = 0; base_yylineno = 1; ifcond = true; stacked_if_value[preproc_tos].condition = ifcond; stacked_if_value[preproc_tos].else_branch = false; /* initialize literal buffer to a reasonable but expansible size */ if (literalbuf == NULL) { literalalloc = 1024; literalbuf = (char *) malloc(literalalloc); } startlit(); BEGIN(C); } static void addlit(char *ytext, int yleng) { /* enlarge buffer if needed */ if ((literallen+yleng) >= literalalloc) { do literalalloc *= 2; while ((literallen+yleng) >= literalalloc); literalbuf = (char *) realloc(literalbuf, literalalloc); } /* append new data, add trailing null */ memcpy(literalbuf+literallen, ytext, yleng); literallen += yleng; literalbuf[literallen] = '\0'; } static void addlitchar(unsigned char ychar) { /* enlarge buffer if needed */ if ((literallen+1) >= literalalloc) { literalalloc *= 2; literalbuf = (char *) realloc(literalbuf, literalalloc); } /* append new data, add trailing null */ literalbuf[literallen] = ychar; literallen += 1; literalbuf[literallen] = '\0'; } static void parse_include(void) { /* got the include file name */ struct _yy_buffer *yb; struct _include_path *ip; char inc_file[MAXPGPATH]; unsigned int i; yb = mm_alloc(sizeof(struct _yy_buffer)); yb->buffer = YY_CURRENT_BUFFER; yb->lineno = base_yylineno; yb->filename = input_filename; yb->next = yy_buffer; yy_buffer = yb; /* * skip the ";" if there is one and trailing whitespace. Note that * base_yytext contains at least one non-space character plus the ";" */ for (i = strlen(base_yytext)-2; i > 0 && ecpg_isspace(base_yytext[i]); i--) ; if (base_yytext[i] == ';') i--; base_yytext[i+1] = '\0'; base_yyin = NULL; /* If file name is enclosed in '"' remove these and look only in '.' */ /* Informix does look into all include paths though, except filename starts with '/' */ if (base_yytext[0] == '"' && base_yytext[i] == '"' && ((compat != ECPG_COMPAT_INFORMIX && compat != ECPG_COMPAT_INFORMIX_SE) || base_yytext[1] == '/')) { base_yytext[i] = '\0'; memmove(base_yytext, base_yytext+1, strlen(base_yytext)); strlcpy(inc_file, base_yytext, sizeof(inc_file)); base_yyin = fopen(inc_file, "r"); if (!base_yyin) { if (strcmp(inc_file + strlen(inc_file) - 2, ".h") != 0) { strcat(inc_file, ".h"); base_yyin = fopen(inc_file, "r"); } } } else { if ((base_yytext[0] == '"' && base_yytext[i] == '"') || (base_yytext[0] == '<' && base_yytext[i] == '>')) { base_yytext[i] = '\0'; memmove(base_yytext, base_yytext+1, strlen(base_yytext)); } for (ip = include_paths; base_yyin == NULL && ip != NULL; ip = ip->next) { if (strlen(ip->path) + strlen(base_yytext) + 3 > MAXPGPATH) { fprintf(stderr, _("Error: include path \"%s/%s\" is too long on line %d, skipping\n"), ip->path, base_yytext, base_yylineno); continue; } snprintf (inc_file, sizeof(inc_file), "%s/%s", ip->path, base_yytext); base_yyin = fopen(inc_file, "r"); if (!base_yyin) { if (strcmp(inc_file + strlen(inc_file) - 2, ".h") != 0) { strcat(inc_file, ".h"); base_yyin = fopen( inc_file, "r" ); } } /* if the command was "include_next" we have to disregard the first hit */ if (base_yyin && include_next) { fclose (base_yyin); base_yyin = NULL; include_next = false; } } } if (!base_yyin) mmfatal(NO_INCLUDE_FILE, "could not open include file \"%s\" on line %d", base_yytext, base_yylineno); input_filename = mm_strdup(inc_file); base_yy_switch_to_buffer(base_yy_create_buffer(base_yyin,YY_BUF_SIZE )); base_yylineno = 1; output_line_number(); BEGIN(C); } /* * ecpg_isspace() --- return true if flex scanner considers char whitespace */ static bool ecpg_isspace(char ch) { if (ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r' || ch == '\f') return true; return false; } static bool isdefine(void) { struct _defines *ptr; /* is it a define? */ for (ptr = defines; ptr; ptr = ptr->next) { if (strcmp(base_yytext, ptr->old) == 0 && ptr->used == NULL) { struct _yy_buffer *yb; yb = mm_alloc(sizeof(struct _yy_buffer)); yb->buffer = YY_CURRENT_BUFFER; yb->lineno = base_yylineno; yb->filename = mm_strdup(input_filename); yb->next = yy_buffer; ptr->used = yy_buffer = yb; base_yy_scan_string(ptr->new); return true; } } return false; } static bool isinformixdefine(void) { const char *new = NULL; if (strcmp(base_yytext, "dec_t") == 0) new = "decimal"; else if (strcmp(base_yytext, "intrvl_t") == 0) new = "interval"; else if (strcmp(base_yytext, "dtime_t") == 0) new = "timestamp"; if (new) { struct _yy_buffer *yb; yb = mm_alloc(sizeof(struct _yy_buffer)); yb->buffer = YY_CURRENT_BUFFER; yb->lineno = base_yylineno; yb->filename = mm_strdup(input_filename); yb->next = yy_buffer; yy_buffer = yb; base_yy_scan_string(new); return true; } return false; } /* * Called before any actual parsing is done */ void scanner_init(const char *str) { Size slen = strlen(str); /* * Might be left over after ereport() */ if (YY_CURRENT_BUFFER) base_yy_delete_buffer(YY_CURRENT_BUFFER); /* * Make a scan buffer with special termination needed by flex. */ scanbuf = mm_alloc(slen + 2); memcpy(scanbuf, str, slen); scanbuf[slen] = scanbuf[slen + 1] = YY_END_OF_BUFFER_CHAR; scanbufhandle = base_yy_scan_buffer(scanbuf,slen + 2); /* initialize literal buffer to a reasonable but expansible size */ literalalloc = 128; literalbuf = (char *) mm_alloc(literalalloc); startlit(); BEGIN(INITIAL); } /* * Called after parsing is done to clean up after scanner_init() */ void scanner_finish(void) { base_yy_delete_buffer(scanbufhandle); free(scanbuf); }