#line 3 "loader.c" #define YY_INT_ALIGNED short int /* A lexical scanner generated by flex */ #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 5 #define YY_FLEX_SUBMINOR_VERSION 37 #if YY_FLEX_SUBMINOR_VERSION > 0 #define FLEX_BETA #endif /* First, we deal with platform-specific or compiler-specific issues. */ #if defined(__FreeBSD__) #ifndef __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS #endif #include #include #else #define __dead2 #endif /* 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(__FreeBSD__) || \ (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, * if you want the limit (max/min) macros for int types. */ #ifndef __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS 1 #endif #include typedef int8_t flex_int8_t; typedef uint8_t flex_uint8_t; typedef int16_t flex_int16_t; typedef uint16_t flex_uint16_t; typedef int32_t flex_int32_t; typedef uint32_t flex_uint32_t; #else typedef signed char flex_int8_t; typedef short int flex_int16_t; typedef int flex_int32_t; typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; /* Limits of integral types. */ #ifndef INT8_MIN #define INT8_MIN (-128) #endif #ifndef INT16_MIN #define INT16_MIN (-32767-1) #endif #ifndef INT32_MIN #define INT32_MIN (-2147483647-1) #endif #ifndef INT8_MAX #define INT8_MAX (127) #endif #ifndef INT16_MAX #define INT16_MAX (32767) #endif #ifndef INT32_MAX #define INT32_MAX (2147483647) #endif #ifndef UINT8_MAX #define UINT8_MAX (255U) #endif #ifndef UINT16_MAX #define UINT16_MAX (65535U) #endif #ifndef UINT32_MAX #define UINT32_MAX (4294967295U) #endif #endif /* ! C99 */ #endif /* ! FLEXINT_H */ #ifdef __cplusplus /* The "const" storage-class-modifier is valid. */ #define YY_USE_CONST #else /* ! __cplusplus */ /* C99 requires __STDC__ to be defined as 1. */ #if defined (__STDC__) #define YY_USE_CONST #endif /* defined (__STDC__) */ #endif /* ! __cplusplus */ #ifdef YY_USE_CONST #define yyconst const #else #define yyconst #endif /* Returned upon end-of-file. */ #define YY_NULL 0 /* Promotes a possibly negative, possibly signed char to an unsigned * integer for use as an array index. If the signed char is negative, * we want to instead treat it as an 8-bit unsigned char, hence the * double cast. */ #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) /* Enter a start condition. This macro really ought to take a parameter, * but we do it the disgusting crufty way forced on us by the ()-less * definition of BEGIN. */ #define BEGIN (yy_start) = 1 + 2 * /* Translate the current start state into a value that can be later handed * to BEGIN to return to the state. The YYSTATE alias is for lex * compatibility. */ #define YY_START (((yy_start) - 1) / 2) #define YYSTATE YY_START /* Action number for EOF rule of a given start state. */ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) /* Special action meaning "start processing a new file". */ #define YY_NEW_FILE yyrestart(yyin ) #define YY_END_OF_BUFFER_CHAR 0 /* Size of default input buffer. */ #ifndef YY_BUF_SIZE #define YY_BUF_SIZE 16384 #endif /* The state buf must be large enough to hold one state per character in the main buffer. */ #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) #ifndef YY_TYPEDEF_YY_BUFFER_STATE #define YY_TYPEDEF_YY_BUFFER_STATE typedef struct yy_buffer_state *YY_BUFFER_STATE; #endif #ifndef YY_TYPEDEF_YY_SIZE_T #define YY_TYPEDEF_YY_SIZE_T typedef size_t yy_size_t; #endif extern yy_size_t yyleng; extern FILE *yyin, *yyout; #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 #define YY_LESS_LINENO(n) /* Return all but the first "n" matched characters back to the input stream. */ #define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ *yy_cp = (yy_hold_char); \ YY_RESTORE_YY_MORE_OFFSET \ (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ YY_DO_BEFORE_ACTION; /* set up yytext again */ \ } \ while ( 0 ) #define unput(c) yyunput( c, (yytext_ptr) ) #ifndef YY_STRUCT_YY_BUFFER_STATE #define YY_STRUCT_YY_BUFFER_STATE struct yy_buffer_state { FILE *yy_input_file; char *yy_ch_buf; /* input buffer */ char *yy_buf_pos; /* current position in input buffer */ /* Size of input buffer in bytes, not including room for EOB * characters. */ yy_size_t yy_buf_size; /* Number of characters read into yy_ch_buf, not including EOB * characters. */ yy_size_t yy_n_chars; /* Whether we "own" the buffer - i.e., we know we created it, * and can realloc() it to grow it, and should free() it to * delete it. */ int yy_is_our_buffer; /* Whether this is an "interactive" input source; if so, and * if we're using stdio for input, then we want to use getc() * instead of fread(), to make sure we stop fetching input after * each newline. */ int yy_is_interactive; /* Whether we're considered to be at the beginning of a line. * If so, '^' rules will be active on the next match, otherwise * not. */ int yy_at_bol; int yy_bs_lineno; /**< The line count. */ int yy_bs_column; /**< The column count. */ /* Whether to try to fill the input buffer when we reach the * end of it. */ int yy_fill_buffer; int yy_buffer_status; #define YY_BUFFER_NEW 0 #define YY_BUFFER_NORMAL 1 /* When an EOF's been seen but there's still some text to process * then we mark the buffer as YY_EOF_PENDING, to indicate that we * shouldn't try reading from the input source any more. We might * still have a bunch of tokens to match, though, because of * possible backing-up. * * When we actually see the EOF, we change the status to "new" * (via yyrestart()), so that the user can continue scanning by * just pointing yyin at a new input file. */ #define YY_BUFFER_EOF_PENDING 2 }; #endif /* !YY_STRUCT_YY_BUFFER_STATE */ /* Stack of input buffers. */ static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ /* We provide macros for accessing buffer states in case in the * future we want to put the buffer states in a more general * "scanner state". * * Returns the top of the stack, or NULL. */ #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ : NULL) #define yy_current_buffer YY_CURRENT_BUFFER /* Same as previous macro, but useful when we know that the buffer stack is not * NULL or when we need an lvalue. For internal use only. */ #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] /* yy_hold_char holds the character lost when yytext is formed. */ static char yy_hold_char; static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */ yy_size_t yyleng; /* Points to current character in buffer. */ static char *yy_c_buf_p = (char *) 0; static int yy_init = 0; /* whether we need to initialize */ static int yy_start = 0; /* start state number */ /* Flag which is used to allow yywrap()'s to do buffer switches * instead of setting up a fresh yyin. A bit of a hack ... */ static int yy_did_buffer_switch_on_eof; void yyrestart (FILE *input_file ); void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ); YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ); void yy_delete_buffer (YY_BUFFER_STATE b ); void yy_flush_buffer (YY_BUFFER_STATE b ); void yypush_buffer_state (YY_BUFFER_STATE new_buffer ); void yypop_buffer_state (void ); static void yyensure_buffer_stack (void ); static void yy_load_buffer_state (void ); static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ); #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ) YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ); YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ); YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len ); void *yyalloc (yy_size_t ); void *yyrealloc (void *,yy_size_t ); void yyfree (void * ); #define yy_new_buffer yy_create_buffer #define yy_set_interactive(is_interactive) \ { \ if ( ! YY_CURRENT_BUFFER ){ \ yyensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ yy_create_buffer(yyin,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ } #define yy_set_bol(at_bol) \ { \ if ( ! YY_CURRENT_BUFFER ){\ yyensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ yy_create_buffer(yyin,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ } #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) /* Begin user sect3 */ #define yywrap() 1 #define YY_SKIP_YYWRAP typedef unsigned char YY_CHAR; FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; typedef int yy_state_type; extern int yylineno; int yylineno = 1; extern char *yytext; #define yytext_ptr yytext static yy_state_type yy_get_previous_state (void ); static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); static int yy_get_next_buffer (void ); static void yy_fatal_error (yyconst char msg[] ) __dead2; /* Done after the current pattern has been matched and before the * corresponding action - sets up yytext. */ #define YY_DO_BEFORE_ACTION \ (yytext_ptr) = yy_bp; \ yyleng = (size_t) (yy_cp - yy_bp); \ (yy_hold_char) = *yy_cp; \ *yy_cp = '\0'; \ (yy_c_buf_p) = yy_cp; #define YY_NUM_RULES 228 #define YY_END_OF_BUFFER 229 /* 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[2072] = { 0, 227, 227, 3, 3, 6, 6, 0, 0, 229, 227, 225, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 3, 3, 3, 6, 6, 6, 228, 228, 227, 227, 226, 227, 225, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 3, 3, 3, 3, 6, 6, 6, 6, 0, 225, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 52, 52, 227, 53, 53, 3, 6, 51, 51, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 20, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 39, 39, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 1, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 41, 41, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 50, 50, 227, 227, 227, 227, 227, 227, 3, 6, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 36, 36, 227, 227, 34, 34, 227, 227, 227, 227, 227, 49, 49, 227, 227, 33, 33, 227, 227, 227, 45, 45, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 37, 37, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 4, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 19, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 38, 38, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 32, 32, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 35, 35, 114, 114, 227, 3, 6, 227, 227, 227, 227, 227, 15, 15, 227, 227, 227, 227, 227, 227, 227, 216, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 31, 31, 48, 48, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 119, 119, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 8, 8, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 54, 54, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 13, 13, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 57, 57, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 3, 6, 227, 71, 71, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 43, 43, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 55, 55, 227, 69, 69, 227, 227, 227, 227, 40, 40, 42, 42, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 218, 218, 227, 227, 227, 227, 227, 227, 227, 11, 11, 227, 142, 142, 227, 227, 227, 25, 25, 227, 227, 227, 227, 70, 70, 227, 227, 227, 30, 30, 227, 227, 227, 227, 227, 227, 227, 61, 61, 227, 227, 227, 227, 227, 138, 138, 3, 2, 6, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 178, 178, 227, 179, 179, 227, 227, 227, 227, 188, 188, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 7, 7, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 109, 109, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 108, 108, 189, 189, 73, 73, 227, 227, 227, 227, 62, 62, 227, 6, 5, 227, 227, 227, 227, 72, 72, 227, 227, 227, 227, 227, 205, 205, 180, 180, 227, 227, 209, 209, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 104, 104, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 22, 22, 227, 227, 227, 227, 227, 227, 85, 85, 227, 227, 227, 81, 81, 227, 227, 227, 9, 9, 86, 86, 227, 227, 126, 126, 227, 227, 75, 75, 227, 227, 227, 204, 204, 227, 227, 227, 227, 227, 227, 227, 227, 121, 121, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 14, 14, 227, 227, 227, 227, 227, 227, 227, 176, 176, 58, 58, 227, 227, 227, 227, 227, 115, 115, 227, 227, 227, 227, 227, 227, 227, 16, 16, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 96, 96, 227, 227, 227, 227, 227, 227, 227, 227, 227, 63, 63, 227, 102, 102, 227, 227, 175, 175, 227, 227, 227, 227, 227, 217, 217, 227, 227, 89, 89, 227, 227, 227, 227, 227, 227, 227, 227, 199, 199, 227, 227, 139, 139, 193, 193, 227, 227, 227, 227, 194, 194, 227, 227, 227, 227, 227, 24, 24, 227, 227, 140, 140, 227, 227, 59, 59, 227, 44, 44, 227, 227, 82, 82, 227, 227, 227, 227, 227, 227, 227, 113, 113, 227, 203, 203, 227, 227, 227, 227, 227, 227, 227, 227, 47, 47, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 120, 120, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 94, 94, 227, 227, 227, 227, 227, 227, 18, 18, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 207, 207, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 177, 177, 125, 125, 227, 227, 56, 56, 227, 227, 90, 90, 227, 227, 227, 227, 227, 227, 68, 68, 227, 227, 227, 227, 227, 92, 92, 227, 227, 192, 192, 227, 227, 227, 227, 227, 21, 21, 227, 214, 214, 227, 227, 227, 83, 83, 227, 227, 80, 80, 87, 87, 88, 88, 227, 227, 227, 227, 227, 227, 224, 224, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 29, 29, 227, 227, 227, 103, 103, 227, 227, 118, 118, 46, 46, 227, 227, 227, 227, 227, 227, 124, 124, 227, 64, 64, 227, 93, 93, 227, 106, 106, 227, 227, 208, 208, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 100, 100, 191, 191, 227, 227, 227, 227, 227, 99, 99, 122, 122, 227, 227, 227, 23, 23, 227, 227, 79, 79, 78, 78, 227, 174, 174, 227, 227, 227, 227, 17, 17, 227, 227, 227, 227, 227, 227, 227, 101, 101, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 26, 26, 227, 105, 105, 227, 227, 211, 211, 227, 127, 127, 227, 227, 10, 10, 227, 227, 227, 227, 227, 227, 227, 133, 133, 227, 227, 227, 227, 227, 227, 227, 227, 227, 215, 215, 12, 12, 227, 227, 227, 227, 198, 198, 227, 227, 227, 227, 74, 74, 227, 201, 201, 227, 98, 98, 227, 227, 227, 227, 227, 227, 227, 227, 141, 141, 144, 144, 227, 227, 67, 67, 227, 202, 202, 227, 227, 227, 227, 153, 153, 227, 227, 227, 151, 151, 227, 227, 227, 227, 227, 227, 227, 161, 161, 149, 149, 227, 227, 227, 227, 227, 227, 227, 227, 227, 158, 158, 227, 227, 227, 227, 213, 213, 227, 143, 143, 227, 227, 227, 227, 227, 227, 227, 186, 186, 227, 227, 227, 227, 227, 227, 136, 136, 227, 227, 227, 227, 212, 212, 227, 227, 220, 220, 227, 227, 227, 227, 227, 227, 227, 222, 222, 117, 117, 227, 183, 183, 227, 227, 60, 60, 227, 227, 227, 227, 65, 65, 227, 227, 227, 227, 227, 169, 169, 227, 165, 165, 227, 227, 164, 164, 227, 227, 154, 154, 227, 227, 227, 227, 227, 227, 148, 148, 227, 227, 227, 227, 227, 181, 181, 227, 223, 223, 110, 110, 227, 28, 28, 227, 227, 227, 227, 227, 227, 206, 206, 227, 227, 132, 132, 227, 227, 185, 185, 227, 227, 227, 227, 107, 107, 123, 123, 137, 137, 227, 227, 227, 184, 184, 182, 182, 227, 227, 116, 116, 227, 97, 97, 66, 66, 227, 227, 227, 112, 112, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 157, 157, 227, 227, 95, 95, 227, 227, 227, 227, 227, 130, 130, 210, 210, 227, 134, 134, 131, 131, 129, 129, 135, 135, 227, 227, 227, 227, 227, 227, 190, 190, 227, 197, 197, 227, 219, 219, 227, 227, 227, 227, 163, 163, 172, 172, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 173, 173, 200, 200, 227, 227, 227, 227, 195, 195, 227, 227, 128, 128, 111, 111, 227, 227, 227, 227, 156, 156, 167, 167, 168, 168, 170, 170, 227, 159, 159, 147, 147, 227, 227, 227, 227, 145, 145, 227, 227, 76, 76, 227, 187, 187, 196, 196, 227, 227, 152, 152, 227, 227, 227, 227, 227, 227, 227, 227, 227, 221, 221, 84, 84, 227, 227, 227, 227, 227, 227, 227, 27, 27, 227, 77, 77, 227, 227, 150, 150, 227, 160, 160, 155, 155, 91, 91, 146, 146, 162, 162, 166, 166, 227, 171, 171, 0 } ; static yyconst flex_int32_t yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 4, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 1, 1, 1, 32, 33, 1, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } ; static yyconst flex_int32_t yy_meta[60] = { 0, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } ; static yyconst flex_int16_t yy_base[2409] = { 0, 0, 32, 89, 90, 91, 92, 93, 94, 3780, 0, 3781, 3776, 0, 123, 89, 172, 129, 171, 113, 128, 180, 172, 82, 224, 187, 217, 229, 239, 178, 280, 325, 163, 98, 285, 118, 3776, 0, 4, 156, 0, 5, 186, 3781, 6, 0, 3774, 3781, 10, 0, 250, 227, 228, 222, 249, 236, 254, 299, 294, 271, 317, 277, 278, 291, 307, 297, 315, 323, 324, 335, 342, 331, 345, 334, 342, 338, 340, 355, 338, 340, 3774, 356, 370, 3742, 360, 351, 354, 359, 376, 368, 384, 414, 377, 389, 385, 379, 3741, 388, 394, 400, 399, 403, 393, 398, 414, 399, 434, 423, 429, 445, 442, 442, 454, 437, 433, 476, 467, 454, 460, 443, 444, 462, 461, 498, 473, 478, 474, 3771, 502, 482, 3770, 497, 3769, 0, 11, 0, 500, 0, 12, 0, 506, 16, 3781, 3768, 503, 493, 504, 507, 512, 514, 523, 510, 514, 514, 515, 534, 516, 3736, 526, 526, 552, 545, 557, 536, 537, 561, 3766, 554, 559, 544, 17, 571, 562, 566, 568, 574, 553, 577, 3734, 579, 3764, 568, 3763, 587, 624, 573, 567, 573, 595, 601, 606, 602, 611, 617, 3731, 618, 630, 610, 626, 628, 20, 630, 620, 677, 636, 638, 3730, 621, 647, 638, 666, 661, 663, 668, 3760, 677, 681, 674, 678, 3728, 671, 3727, 679, 667, 689, 675, 684, 686, 3757, 696, 693, 717, 704, 3756, 688, 694, 711, 724, 731, 729, 731, 734, 724, 741, 3724, 722, 3723, 3753, 728, 738, 734, 3752, 3751, 0, 3750, 722, 0, 3749, 735, 737, 0, 3748, 728, 747, 753, 746, 3747, 750, 754, 3715, 3714, 753, 742, 753, 3713, 790, 743, 770, 3743, 780, 774, 3742, 769, 786, 794, 792, 783, 3741, 795, 789, 3740, 800, 784, 790, 22, 3781, 3739, 789, 3738, 3737, 798, 795, 795, 3705, 812, 802, 823, 0, 3735, 815, 3734, 824, 832, 832, 835, 848, 838, 842, 844, 846, 836, 858, 3702, 843, 3701, 846, 841, 24, 3731, 858, 3699, 850, 846, 847, 850, 852, 849, 26, 3698, 28, 3781, 261, 852, 856, 890, 890, 899, 893, 892, 3728, 902, 898, 3696, 889, 897, 898, 3695, 3694, 3693, 3723, 3722, 896, 908, 909, 896, 915, 912, 917, 908, 912, 906, 3690, 903, 920, 0, 3720, 921, 909, 928, 927, 950, 944, 3719, 933, 3687, 954, 949, 943, 3717, 956, 963, 944, 957, 964, 963, 946, 0, 3716, 955, 963, 3684, 3714, 3713, 953, 954, 959, 975, 3712, 957, 959, 974, 3711, 979, 970, 981, 984, 970, 998, 992, 0, 1011, 1013, 1002, 1003, 1017, 1004, 1015, 1002, 1013, 1009, 0, 3710, 1015, 1005, 0, 3709, 1007, 1024, 1019, 1025, 1017, 0, 3708, 1029, 1019, 0, 3707, 1015, 1027, 1019, 0, 3706, 1026, 3705, 3704, 1037, 1043, 1043, 1049, 3703, 1063, 1067, 1062, 0, 3702, 1064, 1059, 1066, 1067, 1068, 1057, 1064, 1068, 1074, 1064, 1065, 1079, 1065, 1071, 1072, 3670, 1110, 3700, 1090, 105, 3781, 3699, 3698, 1083, 1092, 1085, 1096, 3697, 3696, 1095, 108, 3781, 1157, 3695, 1107, 1123, 1106, 1114, 1117, 1109, 1127, 1132, 1127, 1132, 3694, 1118, 1130, 1139, 3662, 1140, 1117, 1170, 1142, 1132, 0, 3692, 3691, 1143, 284, 1170, 1159, 1157, 1178, 1169, 1171, 3690, 1175, 3689, 1177, 1183, 3657, 1195, 1173, 3656, 1189, 3686, 1176, 0, 3685, 1181, 1194, 3684, 3652, 1182, 3682, 1188, 1205, 1207, 1210, 1200, 3681, 1211, 1213, 1208, 1228, 0, 3680, 0, 3679, 3678, 1223, 1214, 1213, 3677, 1226, 1220, 1234, 0, 3676, 1236, 1224, 1229, 1230, 1236, 1245, 1228, 0, 1232, 1233, 1241, 1243, 1247, 1247, 1256, 1265, 1266, 1262, 1273, 1269, 3644, 1279, 1265, 1272, 3674, 3642, 3672, 1284, 1280, 1276, 3640, 3670, 0, 3669, 0, 3668, 1280, 1274, 3636, 1294, 3666, 1296, 1289, 1295, 1300, 1300, 1292, 1292, 1295, 1297, 1295, 1303, 1310, 1306, 1310, 1322, 1322, 1328, 1321, 1337, 1340, 1324, 1339, 1329, 3665, 1325, 0, 3664, 3663, 1334, 1326, 1352, 1353, 3662, 3661, 1339, 1346, 1347, 1357, 1354, 1336, 0, 3660, 1350, 1353, 1376, 1379, 1366, 3628, 1374, 1377, 1380, 1394, 1391, 0, 3658, 3657, 1377, 1378, 1399, 1376, 1377, 1384, 1401, 1402, 1385, 1396, 0, 3656, 1405, 3655, 1400, 1395, 3623, 1416, 3653, 1393, 1397, 3652, 1414, 3651, 1407, 1415, 1427, 3650, 1424, 1429, 1420, 1427, 3649, 1440, 1446, 1437, 3648, 1448, 1436, 0, 3647, 1451, 3646, 3645, 3644, 1443, 3643, 1433, 1440, 3642, 1445, 3641, 110, 1457, 1458, 0, 3640, 1450, 1464, 1464, 3639, 1451, 1448, 1461, 1459, 1461, 3638, 3637, 1469, 1463, 3636, 3604, 1485, 1489, 1476, 1483, 3603, 3602, 1489, 3601, 1493, 1506, 1500, 1503, 1504, 3631, 1496, 3630, 1503, 1498, 1501, 1510, 3629, 1492, 1503, 1518, 1517, 0, 3628, 1521, 3627, 1518, 1517, 1519, 1530, 1529, 1530, 1535, 1524, 1523, 1530, 1528, 1551, 3595, 1538, 1555, 1540, 1552, 1544, 1565, 1548, 1568, 1570, 3625, 0, 3624, 1567, 0, 3623, 1551, 1569, 1563, 1572, 0, 3622, 0, 3621, 3620, 1569, 1567, 1577, 3619, 1570, 1585, 1571, 3618, 3617, 1586, 1583, 3616, 1579, 1595, 3615, 1592, 1594, 1593, 3614, 3613, 1588, 1594, 3581, 1611, 1599, 1606, 1605, 1606, 3611, 1604, 1612, 0, 3610, 1612, 1628, 1670, 1604, 3609, 1607, 1622, 0, 3608, 3607, 0, 3606, 1611, 1720, 1718, 0, 3605, 1722, 1714, 1709, 1709, 0, 3604, 3603, 3602, 1708, 0, 3601, 1708, 1728, 1715, 3600, 3599, 3598, 1715, 0, 3597, 3596, 1711, 1718, 3595, 1722, 0, 3594, 112, 3781, 114, 3562, 1725, 1735, 1735, 3592, 3591, 1726, 1728, 1732, 1733, 3590, 3589, 1741, 3557, 3587, 1746, 1736, 1738, 1725, 3586, 1742, 1779, 3585, 1762, 3584, 1769, 1759, 3583, 1781, 1768, 0, 3582, 1786, 0, 3581, 1782, 1775, 1793, 1776, 0, 3580, 3579, 1774, 1776, 1786, 1771, 3578, 1794, 1795, 1796, 1783, 3577, 1803, 1787, 3576, 3575, 1805, 1793, 1816, 1815, 3574, 1833, 1833, 1834, 1822, 1834, 3573, 1839, 1831, 3572, 3571, 1835, 1827, 1860, 3570, 3569, 1832, 1845, 3568, 3567, 1826, 1830, 1846, 3566, 3565, 1841, 1848, 3564, 1842, 3563, 3562, 3530, 3560, 1848, 0, 3559, 3558, 1855, 1855, 1853, 1856, 1840, 1853, 1858, 3557, 3556, 1880, 1877, 1889, 1880, 1882, 1893, 1885, 1897, 1898, 1887, 1895, 1900, 1891, 1895, 1901, 1910, 1940, 1902, 1896, 1913, 3555, 0, 3554, 1911, 1911, 3553, 1944, 1928, 1950, 1946, 1946, 1945, 1947, 3552, 3551, 1943, 1943, 3550, 1941, 0, 3549, 0, 3548, 0, 3547, 1956, 3546, 1946, 1947, 0, 3545, 1952, 150, 3781, 1950, 3544, 1962, 1958, 0, 3543, 3542, 1963, 1948, 1946, 1963, 0, 3541, 0, 3540, 1950, 1955, 0, 3539, 1957, 1981, 1995, 3538, 3537, 1990, 1987, 1991, 2006, 2005, 2004, 3536, 2001, 3535, 2002, 1996, 3534, 3533, 3532, 2004, 2009, 3531, 3530, 2006, 2008, 3529, 3528, 2008, 2001, 3496, 0, 3526, 2019, 3525, 2020, 2021, 3524, 2025, 2013, 3523, 3522, 2027, 3521, 2018, 2015, 3520, 3519, 2024, 2034, 2041, 2052, 3518, 2057, 3517, 0, 3516, 3515, 2044, 3514, 3513, 2063, 3512, 0, 3511, 2042, 2055, 3510, 0, 3509, 2070, 2063, 3508, 0, 3507, 0, 3506, 3505, 3504, 0, 3503, 2068, 3502, 0, 3501, 2062, 3500, 2052, 0, 3499, 2070, 2066, 2063, 3498, 2062, 2072, 2066, 3497, 0, 3496, 2066, 2058, 2073, 2076, 2075, 2069, 2077, 2078, 2081, 2108, 2104, 2116, 2100, 2119, 2116, 2121, 2106, 2111, 2123, 2116, 2109, 2124, 2124, 2115, 2109, 2126, 2121, 2120, 2138, 3495, 2135, 2132, 0, 3494, 3493, 2137, 2129, 2131, 3492, 2153, 2156, 0, 3491, 0, 3490, 3489, 3488, 3487, 2164, 2160, 0, 3486, 2170, 2171, 2152, 2164, 3485, 3484, 2156, 0, 3483, 3482, 2176, 3481, 2177, 3480, 2167, 2171, 3479, 2184, 3478, 0, 3477, 3445, 2173, 2164, 2174, 2175, 2172, 2182, 2183, 2193, 0, 3475, 2182, 0, 3474, 2183, 2192, 0, 3473, 3472, 3471, 2193, 2194, 3470, 0, 3469, 2192, 2217, 0, 3468, 3467, 2213, 2210, 2228, 3466, 3465, 3464, 2227, 0, 3463, 2220, 2219, 0, 3462, 0, 3461, 2222, 3460, 2231, 3459, 0, 3458, 3457, 3456, 2218, 2233, 2236, 0, 3455, 3454, 3453, 0, 3452, 2231, 3451, 0, 3450, 2228, 0, 3449, 3448, 3447, 0, 3446, 3445, 2226, 3444, 3443, 3442, 3441, 2218, 0, 3440, 2240, 0, 3439, 2237, 2235, 3438, 2233, 3437, 2245, 2248, 2241, 0, 3436, 2235, 2250, 2257, 3435, 2258, 2279, 2281, 2272, 2284, 2273, 2285, 2284, 2278, 2273, 2282, 2290, 2287, 2294, 2280, 2294, 2281, 2285, 2277, 2298, 2299, 2297, 2306, 2289, 2290, 2287, 2297, 2303, 0, 3434, 2315, 2338, 3433, 2329, 2339, 3432, 3431, 2331, 3430, 3429, 3428, 0, 3427, 2322, 2325, 3426, 2341, 3425, 3393, 0, 3423, 3422, 3421, 3420, 2335, 3419, 2345, 3418, 2345, 2336, 3417, 2349, 0, 3416, 2349, 2339, 3415, 2348, 2349, 2342, 2353, 2347, 2344, 2357, 3383, 3413, 0, 3412, 0, 3411, 3410, 2345, 0, 3409, 2360, 2360, 0, 3408, 2345, 3407, 2352, 2386, 2370, 3406, 0, 3405, 3404, 3403, 2391, 3402, 2393, 0, 3401, 3400, 3399, 0, 3398, 3397, 2394, 2396, 2400, 3396, 0, 3395, 2400, 0, 3394, 2399, 3393, 3392, 0, 3391, 2400, 3390, 0, 3389, 0, 3388, 0, 3387, 2401, 2402, 3386, 3385, 3384, 2393, 0, 3383, 2405, 3382, 2405, 3381, 2398, 2403, 3380, 2394, 2402, 3379, 2411, 2411, 2399, 3378, 2398, 2400, 2413, 2417, 2422, 2417, 2425, 3377, 3376, 2432, 2438, 2431, 2437, 3344, 2453, 2445, 2449, 2445, 3374, 3342, 2446, 2457, 2451, 0, 3372, 3371, 2459, 3370, 0, 3369, 3368, 3367, 0, 3366, 0, 3365, 2460, 3333, 3363, 2462, 3362, 2451, 0, 3361, 3360, 0, 3359, 2463, 0, 3358, 3357, 0, 3356, 2458, 2450, 0, 3355, 2461, 2473, 2454, 3354, 2471, 3353, 2465, 2466, 2467, 2472, 3352, 2490, 3351, 3350, 3349, 2492, 2492, 2493, 3348, 2489, 2495, 2505, 2515, 0, 3347, 0, 3346, 3345, 3344, 3343, 3342, 3341, 0, 3340, 0, 3339, 2513, 3338, 2506, 0, 3337, 2507, 3336, 0, 3335, 0, 3334, 2506, 0, 3333, 2503, 2508, 3332, 3331, 0, 3330, 2505, 3329, 3328, 2520, 3327, 2520, 2521, 0, 3326, 2518, 2516, 3325, 3324, 2518, 3323, 3322, 2512, 2527, 3321, 2513, 2515, 3320, 2517, 3319, 3318, 2535, 2534, 2549, 2551, 2547, 3317, 2542, 2565, 2555, 3316, 2549, 2558, 3315, 2568, 3314, 3313, 0, 3312, 3311, 0, 3310, 3309, 2559, 0, 3308, 2578, 0, 3307, 2555, 2572, 0, 3306, 2565, 3305, 2568, 2563, 3304, 2564, 2565, 0, 3303, 3302, 3301, 2572, 2582, 3300, 2573, 3299, 2587, 2564, 0, 3298, 0, 3297, 3296, 2584, 3295, 3294, 0, 3293, 3292, 2576, 2587, 2587, 0, 3291, 3290, 0, 3289, 3288, 0, 3287, 3286, 3285, 3284, 2608, 3283, 2619, 3282, 2601, 0, 3281, 0, 3280, 96, 101, 0, 103, 116, 0, 148, 2608, 2605, 2612, 152, 0, 154, 155, 2613, 156, 0, 158, 2617, 2610, 160, 2624, 2625, 163, 2623, 0, 193, 0, 197, 2624, 2629, 2617, 2635, 2617, 200, 2612, 2638, 229, 0, 244, 2626, 2629, 245, 258, 0, 265, 310, 0, 311, 400, 2629, 405, 2632, 2626, 2634, 2627, 0, 409, 463, 489, 600, 2644, 619, 620, 0, 622, 665, 706, 883, 1092, 0, 1093, 2645, 2655, 0, 1133, 2667, 1134, 1147, 1151, 2665, 2666, 2664, 0, 1152, 0, 1198, 1631, 0, 1641, 1642, 1644, 0, 1645, 2668, 1646, 1648, 1649, 0, 1654, 1657, 2661, 1663, 2677, 1665, 0, 1666, 2683, 0, 1667, 2670, 2667, 0, 1671, 1755, 1796, 0, 2581, 2685, 2669, 2672, 2687, 2680, 2688, 0, 2697, 2690, 2684, 2701, 2695, 2699, 0, 2704, 2705, 0, 2706, 0, 2714, 2687, 0, 2725, 2720, 2718, 2724, 2733, 2734, 2735, 0, 2736, 2737, 2738, 0, 2739, 2740, 2741, 0, 2742, 2743, 2737, 2739, 2738, 0, 2747, 0, 2748, 0, 2749, 2735, 2751, 2735, 0, 2753, 0, 2754, 2755, 2735, 0, 2759, 2761, 0, 2762, 0, 2763, 2764, 2765, 2766, 0, 2767, 2745, 2752, 2751, 2771, 2775, 2764, 2777, 2779, 2781, 2782, 2779, 2784, 2785, 0, 2787, 2780, 2779, 0, 2790, 2781, 2783, 2793, 2790, 2795, 0, 2799, 0, 2800, 2801, 0, 2802, 0, 2803, 0, 2805, 0, 2806, 2789, 2808, 2788, 2810, 2812, 2813, 0, 2814, 2787, 0, 2818, 2821, 0, 2823, 2824, 2813, 2826, 2819, 0, 2828, 0, 2829, 2807, 2831, 2832, 2833, 2834, 2821, 2838, 2839, 2836, 2829, 2834, 2821, 2845, 2824, 0, 2847, 0, 2848, 2833, 2850, 2851, 2852, 0, 2854, 2856, 2857, 0, 2859, 0, 2860, 2843, 2862, 2848, 2837, 0, 2866, 0, 2867, 0, 2871, 0, 2873, 2863, 0, 2876, 0, 2878, 2872, 2874, 2864, 2882, 0, 2883, 2876, 2885, 0, 2886, 2887, 0, 2888, 0, 2890, 2892, 2877, 0, 2895, 2881, 2897, 2881, 2899, 2900, 2901, 2902, 2904, 2905, 0, 2906, 0, 2910, 2911, 2913, 2914, 2905, 2916, 2917, 2918, 0, 2919, 2920, 0, 2921, 2923, 2925, 0, 2927, 2928, 0, 2929, 0, 2930, 0, 2931, 0, 2932, 0, 2933, 0, 2934, 2935, 0, 2936, 3781, 2945, 2947, 2949, 2951, 2938, 2953, 2939, 2940, 2941, 2942, 2943, 2955, 2956, 2957, 2958, 2959, 2960, 2961, 2962, 2963, 2964, 2965, 2966, 2967, 2968, 2969, 2970, 2971, 2972, 2973, 2974, 2975, 2976, 2977, 2978, 2979, 2980, 2981, 2982, 2983, 2984, 2985, 2986, 2987, 2988, 2989, 2990, 2991, 2992, 2993, 2994, 2995, 2996, 2997, 2998, 2999, 3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009, 3010, 3011, 3012, 3013, 3014, 3015, 3016, 3017, 3018, 3019, 3020, 3021, 3022, 3023, 3024, 3025, 3026, 3027, 3028, 3029, 3030, 3031, 3032, 3033, 3034, 3035, 3036, 3037, 3038, 3039, 3040, 3041, 3042, 3043, 3044, 3045, 3046, 3047, 3048, 3049, 3050, 3051, 3052, 3053, 3054, 3055, 3056, 3057, 3058, 3059, 3060, 3061, 3062, 3063, 3064, 3065, 3066, 3067, 3068, 3069, 3070, 3071, 3072, 3073, 3074, 3075, 3076, 3077, 3078, 3079, 3080, 3081, 3082, 3083, 3084, 3085, 3086, 3087, 3088, 3089, 3090, 3091, 3092, 3093, 3094, 3095, 3096, 3097, 3098, 3099, 3100, 3101, 3102, 3103, 3104, 3105, 3106, 3107, 3108, 3109, 3110, 3111, 3112, 3113, 3114, 3115, 3116, 3117, 3118, 3119, 3120, 3121, 3122, 3123, 3124, 3125, 3126, 3127, 3128, 3129, 3130, 3131, 3132, 3133, 3134, 3135, 3136, 3137, 3138, 3139, 3140, 3141, 3142, 3143, 3144, 3145, 3146, 3147, 3148, 3149, 3150, 3151, 3152, 3153, 3154, 3155, 3156, 3157, 3158, 3159, 3160, 3161, 3162, 3163, 3164, 3165, 3166, 3167, 3168, 3169, 3170, 3171, 3172, 3173, 3174, 3175, 3176, 3177, 3178, 3179, 3180, 3181, 3182, 3183, 3184, 3185, 3186, 3187, 3188, 3189, 3190, 3191, 3192, 3193, 3194, 3195, 3196, 3197, 3198, 3199, 3200, 3201, 3202, 3203, 3204, 3205, 3206, 3207, 3208, 3209, 3210, 3211, 3212, 3213, 3214, 3215, 3216, 3217, 3218, 3219, 3220, 3221, 3222, 3223, 3224, 3225, 3226, 3227, 3228, 3229, 3230, 3231, 3232, 3233, 3234, 3235, 3236, 3237, 3238, 3239, 3240, 3241, 3242, 3243, 3244, 3245, 3246, 3247, 3248, 3249, 3250, 3251, 3252, 3253, 3254, 3255, 3256, 3257, 3258, 3259, 3260, 3261, 3262, 3263, 3264, 3265, 3266, 3267, 3268, 3269, 3270, 3271, 3272, 3273, 3274, 3275, 3276, 3277, 3278, 3279, 3280 } ; static yyconst flex_int16_t yy_def[2409] = { 0, 2072, 2071, 2073, 2073, 2074, 2074, 2075, 2075, 2071, 2076, 2071, 2077, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2078, 2078, 2078, 2079, 2079, 2079, 2071, 2071, 2076, 2077, 2071, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2080, 2076, 2081, 2078, 2078, 2078, 2078, 2079, 2079, 2079, 2079, 2071, 2071, 2082, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2083, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2084, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2085, 2076, 2076, 2076, 2076, 2076, 2080, 2080, 2076, 2081, 2081, 2078, 2079, 2082, 2082, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2086, 2076, 2076, 2087, 2076, 2076, 2076, 2076, 2076, 2088, 2076, 2076, 2089, 2076, 2076, 2076, 2076, 2071, 2090, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2083, 2083, 2076, 2091, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2071, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2092, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2084, 2084, 2076, 2076, 2076, 2076, 2076, 2076, 2093, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2085, 2085, 2076, 2076, 2076, 2094, 2095, 2076, 2078, 2079, 2076, 2076, 2076, 2076, 2076, 2096, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2097, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2086, 2086, 2076, 2076, 2087, 2087, 2076, 2076, 2076, 2076, 2076, 2088, 2088, 2076, 2076, 2089, 2089, 2076, 2076, 2076, 2090, 2090, 2076, 2098, 2099, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2091, 2091, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2071, 2100, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2071, 2076, 2101, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2102, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2092, 2092, 2103, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2093, 2093, 2076, 2076, 2076, 2076, 2076, 2104, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2094, 2094, 2095, 2095, 2076, 2078, 2079, 2076, 2105, 2076, 2076, 2076, 2096, 2096, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2097, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2098, 2098, 2099, 2099, 2076, 2076, 2076, 2076, 2106, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2107, 2076, 2100, 2100, 2108, 2076, 2076, 2076, 2076, 2109, 2110, 2076, 2076, 2076, 2076, 2076, 2076, 2101, 2101, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2102, 2102, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2103, 2103, 2076, 2111, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2112, 2076, 2113, 2076, 2076, 2076, 2114, 2076, 2076, 2076, 2076, 2115, 2076, 2076, 2076, 2116, 2076, 2076, 2104, 2104, 2076, 2076, 2076, 2076, 2076, 2117, 2076, 2076, 2076, 2076, 2118, 2078, 2079, 2076, 2105, 2105, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2119, 2076, 2120, 2076, 2076, 2076, 2076, 2121, 2076, 2076, 2076, 2076, 2106, 2106, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2107, 2107, 2076, 2108, 2108, 2076, 2076, 2076, 2076, 2109, 2109, 2110, 2110, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2122, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2111, 2111, 2076, 2076, 2071, 2076, 2123, 2076, 2076, 2112, 2112, 2076, 2113, 2113, 2076, 2076, 2076, 2114, 2114, 2076, 2076, 2076, 2076, 2115, 2115, 2076, 2076, 2076, 2116, 2116, 2076, 2076, 2076, 2124, 2125, 2126, 2076, 2117, 2117, 2076, 2076, 2076, 2127, 2076, 2118, 2118, 2078, 2071, 2079, 2076, 2076, 2076, 2076, 2128, 2076, 2076, 2076, 2076, 2076, 2129, 2130, 2076, 2076, 2131, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2119, 2119, 2076, 2120, 2120, 2076, 2076, 2076, 2076, 2121, 2121, 2076, 2076, 2076, 2076, 2076, 2132, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2133, 2076, 2076, 2076, 2076, 2076, 2134, 2076, 2076, 2076, 2135, 2076, 2076, 2076, 2136, 2137, 2076, 2076, 2138, 2076, 2076, 2139, 2076, 2076, 2076, 2122, 2122, 2140, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2141, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2123, 2123, 2076, 2076, 2142, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2143, 2144, 2076, 2076, 2076, 2076, 2124, 2124, 2125, 2125, 2126, 2126, 2076, 2145, 2076, 2076, 2127, 2127, 2076, 2079, 2071, 2076, 2076, 2076, 2076, 2128, 2128, 2146, 2076, 2076, 2076, 2076, 2129, 2129, 2130, 2130, 2076, 2076, 2131, 2131, 2076, 2076, 2076, 2076, 2147, 2076, 2076, 2076, 2076, 2076, 2076, 2148, 2076, 2149, 2076, 2076, 2150, 2076, 2076, 2076, 2076, 2076, 2151, 2076, 2076, 2152, 2076, 2076, 2076, 2076, 2132, 2132, 2076, 2076, 2076, 2076, 2153, 2076, 2076, 2154, 2155, 2076, 2076, 2076, 2076, 2156, 2076, 2076, 2076, 2076, 2076, 2157, 2076, 2076, 2158, 2158, 2159, 2076, 2076, 2160, 2076, 2161, 2162, 2162, 2076, 2076, 2163, 2164, 2164, 2076, 2076, 2076, 2165, 2165, 2166, 2166, 2076, 2076, 2167, 2167, 2076, 2168, 2169, 2169, 2076, 2170, 2076, 2171, 2171, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2172, 2173, 2173, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2174, 2076, 2076, 2175, 2175, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2176, 2176, 2177, 2177, 2076, 2076, 2178, 2076, 2076, 2179, 2179, 2076, 2076, 2076, 2076, 2180, 2076, 2076, 2181, 2181, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2182, 2183, 2183, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2184, 2184, 2076, 2185, 2185, 2076, 2076, 2186, 2186, 2187, 2188, 2076, 2076, 2189, 2190, 2190, 2076, 2076, 2191, 2191, 2192, 2076, 2076, 2076, 2076, 2193, 2076, 2076, 2194, 2194, 2076, 2076, 2195, 2195, 2196, 2196, 2076, 2197, 2076, 2076, 2198, 2198, 2199, 2076, 2076, 2076, 2076, 2200, 2200, 2076, 2201, 2202, 2202, 2076, 2203, 2204, 2204, 2076, 2205, 2205, 2076, 2076, 2206, 2206, 2207, 2076, 2076, 2208, 2209, 2210, 2076, 2211, 2211, 2076, 2212, 2212, 2076, 2076, 2076, 2076, 2213, 2076, 2076, 2076, 2214, 2214, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2215, 2215, 2076, 2076, 2216, 2076, 2076, 2076, 2217, 2076, 2076, 2218, 2219, 2220, 2220, 2076, 2076, 2076, 2076, 2076, 2076, 2221, 2221, 2222, 2076, 2223, 2076, 2224, 2076, 2225, 2076, 2076, 2226, 2076, 2227, 2227, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2228, 2228, 2229, 2229, 2076, 2076, 2230, 2230, 2076, 2076, 2231, 2231, 2076, 2076, 2076, 2076, 2076, 2232, 2233, 2233, 2234, 2076, 2076, 2076, 2076, 2235, 2235, 2076, 2236, 2237, 2237, 2238, 2076, 2076, 2076, 2239, 2240, 2240, 2076, 2241, 2241, 2076, 2242, 2243, 2244, 2244, 2076, 2245, 2246, 2246, 2247, 2247, 2248, 2248, 2076, 2076, 2076, 2076, 2249, 2076, 2250, 2250, 2076, 2076, 2076, 2076, 2076, 2076, 2251, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2252, 2252, 2076, 2076, 2253, 2254, 2254, 2076, 2255, 2256, 2256, 2257, 2257, 2076, 2076, 2258, 2076, 2259, 2076, 2260, 2260, 2261, 2262, 2262, 2076, 2263, 2263, 2076, 2264, 2264, 2076, 2076, 2265, 2265, 2076, 2076, 2076, 2266, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2267, 2268, 2076, 2076, 2076, 2076, 2269, 2076, 2076, 2076, 2076, 2270, 2270, 2271, 2271, 2272, 2076, 2273, 2076, 2274, 2275, 2275, 2276, 2276, 2076, 2076, 2076, 2277, 2277, 2076, 2076, 2278, 2278, 2279, 2279, 2076, 2280, 2280, 2076, 2076, 2281, 2282, 2283, 2283, 2076, 2076, 2284, 2076, 2285, 2076, 2076, 2286, 2286, 2076, 2076, 2287, 2076, 2076, 2076, 2288, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2289, 2290, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2291, 2076, 2076, 2076, 2076, 2292, 2076, 2293, 2293, 2294, 2295, 2295, 2076, 2076, 2296, 2296, 2076, 2297, 2297, 2076, 2076, 2298, 2298, 2076, 2299, 2076, 2076, 2076, 2076, 2076, 2300, 2300, 2076, 2301, 2076, 2076, 2076, 2076, 2302, 2076, 2076, 2303, 2303, 2304, 2304, 2305, 2076, 2076, 2076, 2306, 2306, 2076, 2076, 2076, 2076, 2307, 2307, 2308, 2309, 2309, 2310, 2311, 2311, 2076, 2312, 2076, 2076, 2313, 2076, 2076, 2076, 2314, 2314, 2315, 2315, 2076, 2316, 2317, 2317, 2076, 2318, 2318, 2076, 2076, 2076, 2076, 2287, 2287, 2319, 2076, 2320, 2321, 2321, 2076, 2076, 2322, 2076, 2076, 2323, 2076, 2324, 2324, 2325, 2325, 2076, 2076, 2076, 2076, 2076, 2326, 2076, 2076, 2076, 2327, 2327, 2076, 2076, 2328, 2076, 2329, 2329, 2330, 2331, 2331, 2332, 2076, 2333, 2076, 2076, 2076, 2076, 2334, 2334, 2076, 2076, 2335, 2076, 2076, 2336, 2337, 2337, 2076, 2076, 2338, 2076, 2339, 2339, 2076, 2076, 2340, 2340, 2076, 2341, 2342, 2343, 2076, 2076, 2076, 2344, 2344, 2345, 2345, 2346, 2347, 2347, 2348, 2076, 2349, 2349, 2076, 2350, 2076, 2351, 2352, 2352, 2353, 2076, 2076, 2076, 2354, 2355, 2355, 2076, 2356, 2356, 2076, 2076, 2357, 2357, 2076, 2076, 2358, 2358, 2076, 2076, 2076, 2076, 2076, 2076, 2359, 2359, 2076, 2076, 2360, 2076, 2076, 2361, 2361, 2362, 2363, 2363, 2332, 2332, 2076, 2333, 2333, 2076, 2076, 2076, 2076, 2364, 2365, 2366, 2366, 2076, 2367, 2368, 2368, 2369, 2370, 2371, 2371, 2372, 2076, 2076, 2076, 2373, 2373, 2374, 2374, 2375, 2375, 2076, 2076, 2076, 2346, 2346, 2348, 2348, 2376, 2076, 2350, 2350, 2377, 2351, 2351, 2353, 2353, 2076, 2378, 2076, 2354, 2354, 2076, 2076, 2076, 2379, 2380, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2360, 2360, 2076, 2076, 2362, 2362, 2076, 2076, 2076, 2076, 2381, 2364, 2364, 2365, 2365, 2382, 2367, 2367, 2369, 2369, 2370, 2370, 2372, 2372, 2076, 2076, 2076, 2076, 2383, 2076, 2376, 2376, 2076, 2377, 2377, 2384, 2378, 2378, 2385, 2076, 2076, 2076, 2379, 2379, 2380, 2380, 2076, 2386, 2387, 2388, 2389, 2076, 2390, 2391, 2076, 2076, 2076, 2076, 2392, 2076, 2381, 2381, 2382, 2382, 2076, 2393, 2076, 2394, 2383, 2383, 2395, 2076, 2384, 2384, 2385, 2385, 2076, 2396, 2076, 2076, 2386, 2386, 2387, 2387, 2388, 2388, 2389, 2389, 2076, 2390, 2390, 2391, 2391, 2076, 2076, 2076, 2076, 2392, 2392, 2076, 2076, 2393, 2393, 2397, 2394, 2394, 2395, 2395, 2398, 2076, 2396, 2396, 2076, 2076, 2076, 2076, 2076, 2076, 2399, 2076, 2400, 2397, 2397, 2398, 2398, 2076, 2076, 2401, 2076, 2402, 2403, 2404, 2399, 2399, 2405, 2400, 2400, 2406, 2407, 2401, 2401, 2076, 2402, 2402, 2403, 2403, 2404, 2404, 2405, 2405, 2406, 2406, 2407, 2407, 2408, 2408, 2408, 0, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071 } ; static yyconst flex_int16_t yy_nxt[3841] = { 0, 2071, 48, 11, 12, 49, 134, 138, 141, 135, 139, 142, 48, 134, 138, 49, 135, 139, 141, 294, 295, 142, 339, 340, 294, 295, 484, 485, 495, 496, 339, 340, 13, 10, 10, 11, 12, 10, 14, 15, 16, 17, 18, 19, 20, 21, 22, 10, 23, 24, 25, 26, 27, 28, 10, 29, 30, 31, 32, 33, 34, 35, 36, 10, 13, 10, 14, 15, 16, 17, 18, 19, 20, 21, 22, 10, 23, 24, 25, 26, 27, 28, 10, 29, 30, 31, 32, 33, 34, 35, 36, 10, 11, 11, 11, 11, 11, 11, 1810, 57, 39, 85, 42, 1812, 125, 1716, 58, 484, 485, 59, 495, 496, 886, 887, 886, 887, 1047, 1048, 1813, 72, 130, 38, 38, 41, 41, 44, 44, 57, 39, 85, 42, 50, 125, 73, 58, 65, 74, 59, 75, 66, 51, 131, 52, 67, 53, 76, 54, 72, 55, 56, 1719, 77, 1047, 1048, 1817, 68, 1725, 1819, 1822, 50, 1730, 73, 1826, 65, 74, 1830, 75, 66, 51, 131, 52, 67, 53, 76, 54, 136, 55, 56, 60, 77, 69, 81, 123, 68, 106, 61, 78, 124, 107, 62, 70, 82, 63, 91, 79, 1739, 83, 84, 64, 1741, 71, 80, 1838, 136, 108, 140, 60, 92, 69, 81, 123, 93, 106, 61, 78, 124, 107, 62, 70, 82, 63, 91, 79, 94, 83, 84, 64, 95, 71, 80, 86, 1841, 108, 140, 87, 92, 98, 96, 88, 93, 97, 145, 146, 147, 89, 102, 1752, 1845, 99, 103, 90, 94, 143, 104, 100, 95, 101, 148, 86, 105, 1846, 150, 87, 498, 98, 96, 88, 1758, 97, 145, 146, 147, 89, 102, 149, 144, 99, 103, 90, 151, 156, 104, 100, 160, 101, 148, 684, 105, 109, 150, 110, 126, 161, 127, 499, 128, 111, 112, 113, 129, 114, 115, 149, 144, 154, 116, 117, 151, 156, 152, 162, 160, 1848, 1761, 155, 165, 109, 685, 110, 126, 161, 127, 153, 128, 111, 112, 113, 129, 114, 115, 163, 164, 154, 116, 117, 118, 157, 152, 162, 119, 158, 159, 155, 165, 166, 120, 167, 168, 121, 169, 153, 170, 171, 172, 173, 122, 174, 175, 163, 164, 176, 177, 178, 118, 157, 179, 181, 119, 158, 159, 185, 186, 166, 120, 167, 168, 121, 169, 187, 170, 171, 172, 173, 122, 174, 175, 188, 189, 176, 177, 178, 190, 191, 179, 181, 182, 197, 183, 185, 186, 198, 200, 1850, 201, 199, 202, 187, 1853, 204, 205, 206, 1770, 208, 209, 188, 189, 210, 207, 211, 190, 191, 212, 213, 182, 197, 183, 192, 214, 198, 200, 193, 201, 199, 202, 217, 194, 204, 205, 206, 195, 208, 209, 215, 196, 210, 207, 211, 218, 219, 212, 213, 220, 221, 216, 192, 214, 222, 226, 193, 227, 223, 234, 217, 194, 224, 1858, 235, 195, 236, 237, 215, 196, 238, 231, 225, 218, 219, 232, 228, 220, 221, 216, 239, 244, 222, 226, 229, 227, 223, 234, 233, 1859, 224, 230, 235, 245, 236, 237, 246, 250, 238, 231, 225, 255, 240, 232, 251, 241, 248, 258, 239, 244, 242, 252, 229, 259, 249, 262, 233, 243, 263, 230, 264, 245, 265, 266, 246, 250, 267, 268, 269, 255, 240, 270, 251, 241, 248, 258, 271, 272, 242, 252, 273, 259, 249, 262, 274, 243, 263, 276, 264, 277, 265, 266, 278, 280, 267, 268, 269, 281, 285, 270, 286, 287, 291, 292, 271, 272, 282, 293, 273, 279, 298, 296, 274, 299, 283, 276, 300, 277, 288, 303, 284, 280, 301, 304, 306, 309, 285, 297, 286, 322, 291, 292, 289, 323, 282, 293, 324, 279, 298, 311, 1861, 299, 283, 325, 300, 302, 288, 303, 284, 326, 301, 304, 306, 309, 327, 297, 328, 322, 312, 1863, 1865, 323, 1778, 329, 324, 330, 332, 311, 313, 314, 315, 325, 336, 316, 337, 317, 338, 326, 341, 318, 333, 334, 327, 342, 328, 349, 350, 319, 320, 352, 321, 329, 335, 330, 332, 353, 313, 314, 315, 354, 336, 316, 337, 317, 338, 1866, 341, 318, 333, 334, 355, 342, 356, 349, 350, 319, 320, 352, 321, 357, 335, 343, 358, 353, 344, 360, 345, 354, 361, 363, 364, 362, 366, 346, 368, 369, 347, 370, 355, 348, 356, 371, 372, 373, 376, 377, 1867, 357, 381, 343, 358, 383, 344, 360, 345, 384, 361, 363, 364, 362, 366, 346, 368, 369, 347, 370, 385, 348, 386, 371, 372, 373, 376, 377, 378, 387, 381, 388, 379, 383, 380, 389, 390, 384, 391, 392, 394, 398, 399, 400, 403, 404, 405, 406, 385, 407, 386, 408, 410, 412, 413, 416, 378, 387, 417, 388, 379, 418, 380, 389, 390, 428, 391, 392, 394, 398, 399, 400, 403, 404, 405, 406, 429, 407, 409, 408, 410, 412, 413, 416, 432, 433, 417, 436, 437, 418, 420, 421, 438, 428, 439, 440, 422, 443, 423, 444, 447, 448, 449, 424, 429, 425, 426, 452, 427, 455, 456, 457, 432, 433, 459, 436, 437, 460, 420, 421, 438, 461, 439, 440, 422, 443, 423, 444, 447, 448, 449, 424, 462, 425, 426, 452, 427, 455, 456, 457, 465, 466, 459, 467, 468, 460, 470, 471, 472, 461, 473, 474, 476, 469, 480, 482, 477, 483, 487, 489, 462, 490, 491, 492, 475, 493, 494, 500, 465, 466, 478, 467, 468, 501, 470, 471, 472, 1869, 473, 474, 476, 469, 480, 482, 477, 483, 487, 489, 502, 490, 491, 492, 475, 493, 494, 500, 504, 505, 478, 506, 507, 501, 510, 511, 513, 503, 514, 515, 522, 508, 523, 524, 525, 526, 527, 528, 502, 530, 531, 532, 534, 535, 536, 529, 504, 505, 537, 506, 507, 538, 510, 511, 513, 503, 514, 515, 522, 508, 523, 524, 525, 526, 527, 528, 539, 530, 531, 532, 534, 535, 536, 529, 540, 541, 537, 544, 546, 538, 547, 548, 550, 551, 552, 553, 554, 555, 556, 557, 558, 564, 565, 566, 539, 567, 569, 570, 571, 574, 575, 576, 540, 541, 577, 544, 546, 578, 547, 548, 550, 551, 552, 553, 554, 555, 556, 557, 558, 564, 565, 566, 579, 567, 569, 570, 571, 574, 575, 576, 580, 582, 577, 584, 585, 578, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 579, 583, 600, 601, 602, 603, 604, 605, 580, 582, 610, 584, 585, 611, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 612, 583, 600, 601, 602, 603, 604, 605, 613, 615, 610, 616, 617, 611, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 612, 632, 1870, 1784, 639, 643, 644, 645, 613, 615, 646, 616, 617, 649, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 634, 632, 635, 636, 639, 643, 644, 645, 657, 658, 646, 659, 660, 649, 637, 1788, 1875, 661, 662, 663, 664, 665, 666, 670, 671, 672, 674, 675, 634, 1877, 635, 636, 679, 1879, 1797, 667, 657, 658, 680, 659, 660, 683, 637, 650, 651, 661, 662, 663, 664, 665, 666, 670, 671, 672, 674, 675, 676, 652, 686, 677, 679, 653, 654, 667, 687, 688, 680, 689, 690, 683, 691, 650, 651, 678, 693, 695, 696, 698, 700, 702, 1799, 704, 705, 706, 676, 652, 686, 677, 709, 653, 654, 712, 687, 688, 713, 689, 690, 714, 691, 715, 716, 678, 693, 695, 696, 718, 700, 702, 699, 704, 705, 706, 719, 720, 721, 723, 709, 724, 725, 712, 728, 729, 713, 731, 732, 714, 730, 715, 716, 733, 735, 736, 737, 718, 738, 739, 740, 734, 741, 742, 719, 720, 721, 723, 743, 724, 725, 744, 728, 729, 745, 731, 732, 746, 730, 747, 748, 733, 735, 736, 737, 749, 738, 739, 740, 750, 741, 742, 751, 753, 754, 755, 743, 759, 760, 744, 761, 764, 745, 765, 767, 746, 770, 747, 748, 771, 772, 773, 774, 749, 775, 776, 777, 750, 778, 779, 751, 753, 754, 755, 780, 759, 760, 781, 761, 764, 782, 765, 767, 783, 770, 784, 785, 771, 772, 773, 774, 786, 775, 776, 777, 787, 778, 779, 788, 789, 791, 792, 780, 793, 794, 781, 797, 800, 782, 790, 801, 783, 802, 784, 785, 803, 808, 809, 810, 786, 815, 816, 811, 787, 817, 813, 788, 789, 791, 792, 812, 793, 794, 814, 797, 800, 818, 790, 801, 819, 802, 820, 822, 803, 808, 809, 810, 823, 815, 816, 811, 824, 817, 813, 825, 826, 828, 829, 812, 830, 831, 814, 832, 833, 818, 834, 835, 819, 836, 820, 822, 837, 842, 838, 843, 823, 845, 847, 848, 824, 851, 854, 825, 826, 828, 829, 855, 830, 831, 856, 832, 833, 839, 834, 835, 859, 836, 860, 861, 837, 842, 838, 843, 862, 845, 847, 848, 865, 851, 854, 866, 867, 870, 871, 855, 872, 876, 856, 879, 880, 883, 888, 889, 859, 890, 860, 861, 881, 891, 892, 894, 862, 895, 896, 897, 865, 898, 901, 866, 867, 870, 871, 902, 872, 876, 905, 879, 880, 883, 888, 889, 906, 890, 907, 908, 911, 891, 892, 894, 913, 895, 896, 897, 916, 898, 901, 914, 917, 918, 921, 902, 924, 925, 905, 926, 927, 930, 931, 932, 906, 933, 907, 908, 911, 934, 915, 936, 913, 937, 938, 939, 916, 940, 941, 914, 917, 918, 921, 942, 924, 925, 943, 926, 927, 930, 931, 932, 944, 933, 945, 946, 947, 934, 915, 936, 949, 937, 938, 939, 950, 940, 941, 951, 952, 953, 954, 942, 955, 956, 943, 957, 959, 960, 961, 962, 944, 963, 945, 946, 947, 965, 966, 967, 949, 969, 970, 971, 950, 974, 975, 951, 952, 953, 954, 977, 955, 956, 978, 957, 959, 960, 961, 962, 980, 963, 981, 982, 986, 965, 966, 967, 987, 969, 970, 971, 989, 974, 975, 990, 991, 992, 993, 977, 995, 996, 978, 997, 1884, 1015, 1018, 1019, 980, 1021, 981, 982, 986, 998, 1802, 1886, 987, 1887, 1806, 1890, 989, 1891, 1893, 990, 991, 992, 993, 1812, 995, 996, 1895, 997, 999, 1015, 1018, 1019, 1897, 1021, 1900, 1819, 1822, 998, 45, 45, 1826, 45, 45, 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 45, 45, 1009, 1010, 45, 45, 1011, 45, 45, 1012, 1013, 45, 45, 1014, 45, 45, 45, 45, 45, 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 45, 45, 1009, 1010, 45, 45, 1011, 45, 45, 1012, 1013, 45, 45, 1014, 45, 45, 45, 1022, 1023, 1024, 1025, 1026, 1027, 1030, 1031, 1032, 1033, 1040, 1042, 1043, 1046, 1050, 1051, 1052, 1056, 1057, 1058, 1059, 1064, 1068, 1069, 1070, 1071, 1073, 1904, 1022, 1023, 1024, 1025, 1026, 1027, 1030, 1031, 1032, 1033, 1040, 1042, 1043, 1046, 1050, 1051, 1052, 1056, 1057, 1058, 1059, 1064, 1068, 1069, 1070, 1071, 1073, 1074, 1075, 1080, 1082, 1083, 1085, 1086, 1087, 1088, 1089, 1090, 1092, 1094, 1905, 1095, 1096, 1097, 1076, 1077, 1100, 1101, 1102, 1078, 1103, 1105, 1106, 1109, 1110, 1074, 1075, 1080, 1082, 1083, 1085, 1086, 1087, 1088, 1089, 1111, 1092, 1094, 1091, 1095, 1096, 1097, 1076, 1077, 1100, 1101, 1102, 1078, 1103, 1105, 1106, 1109, 1110, 1112, 1114, 1115, 1116, 1117, 1118, 1120, 1121, 1125, 1126, 1111, 1132, 1133, 1137, 1138, 1139, 1144, 1145, 1148, 1154, 1157, 1127, 1158, 1159, 1160, 1161, 1162, 1163, 1112, 1114, 1115, 1116, 1117, 1118, 1120, 1121, 1125, 1126, 1128, 1132, 1133, 1137, 1138, 1139, 1144, 1145, 1148, 1154, 1157, 1167, 1158, 1159, 1160, 1161, 1162, 1163, 1168, 1169, 1170, 1171, 1173, 1174, 1175, 1181, 1182, 1172, 1128, 1178, 1183, 1176, 1186, 1179, 1184, 1187, 1188, 1189, 1177, 1167, 1193, 1185, 1180, 1194, 1195, 1197, 1168, 1169, 1170, 1171, 1173, 1174, 1175, 1181, 1182, 1172, 1198, 1178, 1183, 1176, 1186, 1179, 1184, 1187, 1188, 1189, 1177, 1190, 1193, 1185, 1180, 1194, 1195, 1197, 1191, 1201, 1202, 1203, 1204, 1205, 1206, 1192, 1207, 1212, 1198, 1213, 1215, 1216, 1219, 1220, 1221, 1222, 1224, 1225, 1228, 1190, 1229, 1230, 1231, 1232, 1233, 1234, 1191, 1201, 1202, 1203, 1204, 1205, 1206, 1192, 1207, 1212, 1235, 1213, 1215, 1216, 1219, 1220, 1221, 1222, 1224, 1225, 1228, 1236, 1229, 1230, 1231, 1232, 1233, 1234, 1240, 1241, 1242, 1243, 1245, 1248, 1251, 1254, 1255, 1246, 1235, 1244, 1247, 1260, 1261, 1265, 1266, 1270, 1271, 1273, 1275, 1236, 1276, 1279, 1280, 1285, 1287, 1288, 1240, 1241, 1242, 1243, 1245, 1248, 1251, 1254, 1255, 1246, 1292, 1244, 1247, 1260, 1261, 1265, 1266, 1270, 1271, 1273, 1275, 1293, 1276, 1279, 1280, 1285, 1287, 1288, 1294, 1295, 1298, 1302, 1306, 1309, 1310, 1313, 1315, 1319, 1292, 1322, 1325, 1326, 1327, 1328, 1330, 1331, 1332, 1335, 1336, 1293, 1337, 1338, 1339, 1340, 1341, 1342, 1294, 1295, 1298, 1302, 1306, 1309, 1310, 1343, 1315, 1319, 1314, 1322, 1325, 1326, 1327, 1328, 1330, 1331, 1332, 1335, 1336, 1344, 1337, 1338, 1339, 1340, 1341, 1342, 1345, 1348, 1346, 1350, 1351, 1352, 1353, 1343, 1354, 1347, 1355, 1356, 1357, 1358, 1359, 1360, 1349, 1361, 1362, 1363, 1364, 1344, 1365, 1366, 1369, 1370, 1372, 1373, 1345, 1348, 1346, 1350, 1351, 1352, 1353, 1374, 1354, 1347, 1355, 1356, 1357, 1358, 1359, 1360, 1349, 1361, 1362, 1363, 1364, 1376, 1365, 1366, 1369, 1370, 1372, 1373, 1377, 1382, 1383, 1384, 1385, 1386, 1387, 1374, 1391, 1393, 1395, 1397, 1398, 1400, 1404, 1405, 1406, 1407, 1408, 1409, 1410, 1376, 1411, 1412, 1413, 1414, 1419, 1420, 1377, 1382, 1383, 1384, 1385, 1386, 1387, 1423, 1391, 1393, 1395, 1397, 1398, 1400, 1404, 1405, 1406, 1407, 1408, 1409, 1410, 1424, 1411, 1412, 1413, 1414, 1419, 1420, 1427, 1428, 1429, 1436, 1437, 1438, 1439, 1423, 1442, 1447, 1448, 1449, 1453, 1456, 1461, 1469, 1470, 1471, 1472, 1430, 1474, 1424, 1477, 1431, 1478, 1479, 1480, 1481, 1427, 1428, 1429, 1436, 1437, 1438, 1439, 1482, 1442, 1447, 1448, 1449, 1453, 1456, 1461, 1469, 1470, 1471, 1472, 1430, 1474, 1484, 1477, 1431, 1478, 1479, 1480, 1481, 1485, 1486, 1487, 1488, 1489, 1490, 1491, 1482, 1492, 1493, 1494, 1495, 1496, 1497, 1498, 1499, 1500, 1501, 1502, 1503, 1504, 1484, 1505, 1506, 1507, 1508, 1509, 1510, 1485, 1486, 1487, 1488, 1489, 1490, 1491, 1511, 1492, 1493, 1494, 1495, 1496, 1497, 1498, 1499, 1500, 1501, 1502, 1503, 1504, 1512, 1505, 1506, 1507, 1508, 1509, 1510, 1513, 1516, 1517, 1521, 1527, 1528, 1530, 1511, 1538, 1541, 1544, 1545, 1548, 1549, 1550, 1552, 1553, 1554, 1555, 1556, 1557, 1512, 1558, 1562, 1563, 1564, 1565, 1567, 1513, 1516, 1517, 1521, 1527, 1528, 1530, 1570, 1538, 1541, 1544, 1545, 1548, 1549, 1550, 1552, 1553, 1554, 1555, 1556, 1557, 1568, 1558, 1562, 1563, 1564, 1565, 1567, 1576, 1569, 1578, 1584, 1585, 1586, 1589, 1570, 1590, 1595, 1598, 1599, 1604, 1605, 1607, 1609, 1610, 1613, 1614, 1616, 1617, 1568, 1618, 1620, 1621, 1622, 1623, 1624, 1576, 1569, 1578, 1584, 1585, 1586, 1589, 1625, 1590, 1595, 1598, 1599, 1604, 1605, 1607, 1609, 1610, 1613, 1614, 1616, 1617, 1626, 1618, 1620, 1621, 1622, 1623, 1624, 1629, 1630, 1631, 1632, 1634, 1635, 1636, 1625, 1637, 1640, 1641, 1642, 1644, 1650, 1654, 1657, 1661, 1658, 1663, 1664, 1665, 1626, 1666, 1667, 1670, 1672, 1673, 1674, 1629, 1630, 1631, 1632, 1634, 1635, 1636, 1675, 1637, 1640, 1641, 1642, 1644, 1650, 1654, 1657, 1661, 1658, 1663, 1664, 1665, 1684, 1666, 1667, 1670, 1672, 1673, 1674, 1677, 1678, 1685, 1686, 1689, 1690, 1691, 1675, 1692, 1701, 1703, 1704, 1706, 1707, 1708, 1713, 1717, 1720, 1721, 1722, 1723, 1684, 1727, 1731, 1732, 1734, 1735, 1737, 1677, 1678, 1685, 1686, 1689, 1690, 1691, 1742, 1692, 1701, 1703, 1704, 1706, 1707, 1708, 1713, 1717, 1720, 1721, 1722, 1723, 1743, 1727, 1731, 1732, 1734, 1735, 1737, 1744, 1745, 1746, 1748, 1749, 1750, 1753, 1742, 1754, 1756, 1763, 1764, 1766, 1767, 1830, 1768, 1771, 1772, 1774, 1775, 1779, 1743, 1780, 1782, 1785, 1786, 1789, 1793, 1744, 1745, 1746, 1748, 1749, 1750, 1753, 1794, 1754, 1756, 1763, 1795, 1766, 1767, 1765, 1768, 1771, 1772, 1774, 1775, 1779, 1804, 1780, 1782, 1785, 1786, 1789, 1793, 1807, 1809, 1814, 1815, 1816, 1820, 1823, 1794, 1824, 1827, 1828, 1795, 1831, 1832, 1833, 1834, 1835, 1836, 1839, 1840, 1842, 1804, 1843, 1851, 1854, 1855, 1856, 1857, 1807, 1809, 1814, 1815, 1816, 1820, 1823, 1862, 1824, 1827, 1828, 1871, 1831, 1832, 1833, 1834, 1835, 1836, 1839, 1840, 1842, 1872, 1843, 1851, 1854, 1855, 1856, 1857, 1873, 1880, 1881, 1882, 1888, 1896, 1898, 1862, 1901, 1902, 1903, 1871, 1906, 1907, 1908, 1909, 1910, 1911, 1838, 1912, 1913, 1872, 1915, 1916, 1917, 1845, 1919, 1848, 1873, 1880, 1881, 1882, 1888, 1896, 1898, 1850, 1901, 1902, 1903, 1920, 1906, 1907, 1908, 1909, 1910, 1911, 1853, 1912, 1913, 1921, 1922, 1916, 1917, 1923, 1924, 1926, 1928, 1861, 1929, 1931, 1865, 1933, 1935, 1869, 1937, 1938, 1939, 1940, 1875, 1877, 1879, 1941, 1942, 1943, 1884, 1886, 1945, 1921, 1922, 1946, 1890, 1923, 1948, 1893, 1895, 1949, 1951, 1952, 1900, 1953, 1954, 1955, 1957, 1938, 1939, 1940, 1959, 1960, 1961, 1941, 1962, 1943, 1963, 1964, 1965, 1966, 1967, 1946, 1915, 1968, 1969, 1919, 1970, 1971, 1972, 1973, 1975, 1953, 1954, 1955, 1926, 1928, 1977, 1931, 1933, 1960, 1935, 1937, 1978, 1979, 1980, 1981, 1965, 1983, 1984, 1945, 1985, 1968, 1969, 1948, 1970, 1971, 1987, 1973, 1951, 1989, 1990, 1991, 1992, 1957, 1959, 1993, 1995, 1997, 1999, 2001, 1978, 2002, 1980, 2004, 2006, 2007, 2008, 2009, 1985, 2010, 2012, 2013, 1975, 1977, 2014, 2016, 2017, 2019, 1990, 1983, 1992, 2021, 2022, 1993, 1987, 1989, 2023, 2025, 2026, 2002, 2027, 1995, 1997, 2007, 2008, 2009, 1999, 2010, 2001, 2013, 2028, 2004, 2014, 2006, 2029, 2030, 2031, 2032, 2012, 2033, 2034, 2016, 2036, 2019, 2023, 2021, 2026, 2038, 2027, 2039, 2025, 2040, 2041, 2042, 2043, 2044, 2045, 2047, 2028, 2048, 2050, 2036, 2029, 2030, 2031, 2038, 2051, 2033, 2052, 2054, 2055, 2057, 2059, 2061, 2047, 2063, 2050, 2039, 2065, 2040, 2067, 2042, 2054, 2068, 2057, 2059, 2061, 2063, 2065, 2067, 2070, 2070, 45, 133, 137, 253, 256, 260, 2055, 10, 10, 37, 37, 40, 40, 43, 43, 46, 46, 307, 374, 396, 430, 434, 441, 445, 450, 463, 519, 542, 560, 562, 572, 581, 606, 608, 640, 655, 668, 681, 710, 726, 768, 795, 798, 804, 806, 840, 849, 852, 857, 863, 868, 877, 884, 919, 922, 928, 983, 1016, 1034, 1036, 1038, 1044, 1053, 1060, 1062, 1066, 1098, 1122, 1130, 1135, 1140, 1142, 1146, 1150, 1155, 1165, 1199, 1208, 1210, 1217, 1226, 1238, 1249, 1252, 1256, 1263, 1267, 1277, 1281, 1283, 1289, 1296, 1122, 1300, 1304, 1307, 1130, 1311, 1135, 1140, 1142, 1146, 1320, 1150, 1323, 1155, 1333, 1165, 1367, 1199, 1208, 1210, 1380, 1217, 1388, 1226, 1401, 1238, 1249, 1252, 1256, 1415, 1417, 1421, 1263, 1267, 1425, 1433, 1277, 1281, 1283, 1440, 1289, 1444, 1296, 1451, 1300, 1454, 1304, 1307, 1311, 1459, 1463, 1465, 1467, 1320, 1323, 1475, 1333, 1367, 1514, 1519, 1523, 1525, 1380, 1388, 1533, 1536, 1539, 1542, 1546, 1401, 1415, 1417, 1421, 1425, 1571, 1433, 1573, 1440, 1580, 1444, 1582, 1587, 1451, 1454, 1591, 1593, 1459, 1596, 1463, 1465, 1467, 1602, 1475, 1611, 1514, 1645, 1519, 1648, 1523, 1525, 1652, 1655, 1533, 1659, 1536, 1539, 1542, 1546, 1668, 1679, 1681, 1687, 1571, 1573, 1693, 1696, 1699, 1580, 1582, 1587, 1591, 1593, 1596, 1709, 1711, 1602, 1715, 1718, 1611, 1724, 1729, 1738, 1740, 1751, 1757, 1645, 1760, 1648, 1652, 1655, 1659, 1769, 1668, 1777, 1783, 1679, 1681, 1787, 1687, 1693, 1796, 1696, 1798, 1699, 1801, 1805, 1709, 1711, 1811, 1715, 1718, 1818, 1821, 1729, 1825, 1829, 1738, 1740, 1837, 1751, 1844, 1757, 1847, 1760, 1849, 1852, 1769, 1860, 1864, 1777, 1868, 1783, 1787, 1874, 1876, 1878, 1796, 1798, 1883, 1801, 1885, 1805, 1889, 1892, 1811, 1894, 1899, 1818, 1821, 1825, 1829, 1837, 1914, 1844, 1918, 1847, 1925, 1927, 1860, 1930, 1864, 1932, 1934, 1868, 1936, 1874, 1876, 1878, 1944, 1947, 1950, 1956, 1958, 1974, 1976, 1982, 1986, 1988, 1994, 1996, 1998, 2000, 2003, 2005, 2011, 2015, 2018, 2020, 2024, 2035, 2037, 2046, 2049, 2053, 2056, 2058, 2060, 2062, 2064, 2066, 2069, 1712, 1710, 1808, 1806, 1803, 1802, 1800, 1700, 1799, 1697, 1797, 1694, 1792, 1688, 1791, 1790, 1788, 1682, 1680, 1784, 1781, 1778, 1776, 1669, 1773, 1770, 1660, 1656, 1653, 1762, 1649, 1761, 1646, 1759, 1758, 1755, 1752, 1747, 1741, 1739, 1736, 1733, 1730, 1728, 1726, 1725, 1612, 1719, 1716, 1714, 1603, 1712, 1710, 1597, 1594, 1592, 1705, 1588, 1702, 1583, 1581, 1700, 1698, 1697, 1695, 1694, 1574, 1572, 1688, 1683, 1682, 1680, 1676, 1671, 1669, 1547, 1543, 1662, 1540, 1537, 1660, 1534, 1656, 1653, 1651, 1526, 1524, 1649, 1647, 1520, 1646, 1643, 1515, 1639, 1638, 1633, 1628, 1627, 1619, 1615, 1612, 1608, 1606, 1476, 1603, 1601, 1600, 1468, 1466, 1464, 1597, 1460, 1594, 1592, 1455, 1452, 1588, 1583, 1445, 1581, 1579, 1441, 1577, 1575, 1574, 1434, 1572, 1566, 1426, 1422, 1561, 1418, 1416, 1560, 1559, 1551, 1402, 1547, 1543, 1540, 1537, 1535, 1534, 1389, 1532, 1531, 1529, 1381, 1526, 1524, 1522, 1520, 1518, 1515, 1368, 1483, 1334, 1476, 1473, 1324, 1321, 1468, 1466, 1464, 1462, 1460, 1312, 1458, 1457, 1308, 1305, 1455, 1301, 1452, 1450, 1297, 1446, 1445, 1290, 1443, 1441, 1284, 1282, 1278, 1435, 1434, 1432, 1426, 1268, 1264, 1422, 1418, 1416, 1257, 1253, 1250, 1403, 1239, 1402, 1399, 1396, 1394, 1392, 1227, 1390, 1389, 1218, 1381, 1379, 1378, 1211, 1209, 1375, 1371, 1200, 1368, 1166, 1334, 1329, 1156, 1324, 1151, 1321, 1147, 1318, 1317, 1143, 1141, 1316, 1136, 1312, 1131, 1308, 1305, 1303, 1301, 1123, 1299, 1297, 1291, 1290, 1286, 1284, 1282, 1278, 1274, 1099, 1272, 1269, 1268, 1264, 1262, 1259, 1258, 1257, 1253, 1250, 1239, 1237, 1067, 1063, 1061, 1227, 1054, 1223, 1045, 1218, 1039, 1037, 1035, 1214, 1211, 1209, 1200, 1017, 1196, 1166, 1164, 1156, 984, 1153, 1152, 1151, 1149, 1147, 1143, 1141, 1136, 1134, 1131, 1129, 1124, 1123, 1119, 1113, 1108, 1107, 1104, 1099, 1093, 929, 923, 920, 1084, 1081, 1079, 1072, 1067, 1065, 1063, 1061, 1055, 1054, 1049, 885, 1045, 1041, 878, 1039, 1037, 1035, 869, 1029, 1028, 864, 858, 853, 1020, 850, 1017, 841, 994, 988, 985, 984, 979, 976, 973, 972, 968, 964, 807, 805, 799, 796, 958, 948, 935, 769, 929, 923, 920, 912, 910, 909, 904, 903, 900, 899, 893, 727, 885, 882, 878, 875, 874, 873, 711, 869, 864, 858, 853, 850, 846, 844, 841, 682, 827, 669, 821, 656, 807, 805, 799, 641, 796, 769, 766, 609, 607, 763, 762, 758, 757, 756, 752, 573, 727, 722, 563, 561, 717, 711, 708, 707, 543, 703, 701, 697, 694, 692, 682, 520, 673, 669, 656, 648, 647, 642, 641, 638, 633, 464, 614, 609, 607, 451, 446, 442, 435, 431, 573, 568, 563, 561, 559, 397, 549, 545, 543, 375, 533, 521, 520, 518, 517, 516, 512, 509, 497, 488, 486, 481, 479, 464, 308, 458, 454, 453, 451, 446, 442, 435, 431, 419, 415, 414, 411, 261, 257, 254, 402, 401, 397, 395, 393, 382, 375, 367, 365, 359, 351, 331, 310, 308, 305, 290, 275, 261, 257, 254, 247, 203, 184, 180, 47, 132, 47, 2071, 9, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071 } ; static yyconst flex_int16_t yy_chk[3841] = { 0, 0, 13, 1, 1, 13, 38, 41, 44, 38, 41, 44, 48, 134, 138, 48, 134, 138, 141, 170, 170, 141, 200, 200, 294, 294, 327, 327, 337, 337, 339, 339, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 4, 5, 6, 7, 8, 1713, 15, 4, 23, 6, 1714, 33, 1716, 15, 484, 484, 15, 495, 495, 723, 723, 886, 886, 888, 888, 1717, 19, 35, 3, 4, 5, 6, 7, 8, 15, 4, 23, 6, 14, 33, 19, 15, 17, 19, 15, 20, 17, 14, 35, 14, 17, 14, 20, 14, 19, 14, 14, 1719, 20, 1047, 1047, 1723, 17, 1725, 1726, 1728, 14, 1730, 19, 1733, 17, 19, 1736, 20, 17, 14, 35, 14, 17, 14, 20, 14, 39, 14, 14, 16, 20, 18, 22, 32, 17, 29, 16, 21, 32, 29, 16, 18, 22, 16, 25, 21, 1739, 22, 22, 16, 1741, 18, 21, 1747, 39, 29, 42, 16, 25, 18, 22, 32, 25, 29, 16, 21, 32, 29, 16, 18, 22, 16, 25, 21, 26, 22, 22, 16, 26, 18, 21, 24, 1750, 29, 42, 24, 25, 27, 26, 24, 25, 26, 51, 52, 53, 24, 28, 1752, 1755, 27, 28, 24, 26, 50, 28, 27, 26, 27, 54, 24, 28, 1756, 55, 24, 341, 27, 26, 24, 1758, 26, 51, 52, 53, 24, 28, 54, 50, 27, 28, 24, 56, 59, 28, 27, 61, 27, 54, 523, 28, 30, 55, 30, 34, 62, 34, 341, 34, 30, 30, 30, 34, 30, 30, 54, 50, 58, 30, 30, 56, 59, 57, 63, 61, 1759, 1761, 58, 65, 30, 523, 30, 34, 62, 34, 57, 34, 30, 30, 30, 34, 30, 30, 64, 64, 58, 30, 30, 31, 60, 57, 63, 31, 60, 60, 58, 65, 66, 31, 67, 68, 31, 69, 57, 70, 71, 72, 73, 31, 74, 75, 64, 64, 76, 77, 78, 31, 60, 79, 81, 31, 60, 60, 84, 85, 66, 31, 67, 68, 31, 69, 86, 70, 71, 72, 73, 31, 74, 75, 87, 88, 76, 77, 78, 89, 90, 79, 81, 82, 92, 82, 84, 85, 92, 93, 1762, 94, 92, 95, 86, 1764, 97, 98, 99, 1770, 100, 101, 87, 88, 102, 99, 102, 89, 90, 103, 104, 82, 92, 82, 91, 105, 92, 93, 91, 94, 92, 95, 107, 91, 97, 98, 99, 91, 100, 101, 106, 91, 102, 99, 102, 107, 108, 103, 104, 109, 110, 106, 91, 105, 111, 113, 91, 114, 112, 117, 107, 91, 112, 1771, 118, 91, 119, 120, 106, 91, 121, 116, 112, 107, 108, 116, 115, 109, 110, 106, 122, 124, 111, 113, 115, 114, 112, 117, 116, 1772, 112, 115, 118, 125, 119, 120, 126, 129, 121, 116, 112, 131, 123, 116, 129, 123, 128, 136, 122, 124, 123, 129, 115, 140, 128, 144, 116, 123, 145, 115, 146, 125, 147, 148, 126, 129, 149, 150, 151, 131, 123, 152, 129, 123, 128, 136, 153, 154, 123, 129, 155, 140, 128, 144, 156, 123, 145, 158, 146, 159, 147, 148, 160, 161, 149, 150, 151, 162, 163, 152, 164, 165, 167, 168, 153, 154, 162, 169, 155, 160, 172, 171, 156, 173, 162, 158, 174, 159, 165, 176, 162, 161, 175, 177, 179, 181, 163, 171, 164, 185, 167, 168, 165, 186, 162, 169, 187, 160, 172, 183, 1773, 173, 162, 188, 174, 175, 165, 176, 162, 189, 175, 177, 179, 181, 190, 171, 191, 185, 183, 1775, 1776, 186, 1778, 192, 187, 193, 195, 183, 184, 184, 184, 188, 197, 184, 198, 184, 199, 189, 201, 184, 196, 196, 190, 202, 191, 204, 205, 184, 184, 207, 184, 192, 196, 193, 195, 208, 184, 184, 184, 209, 197, 184, 198, 184, 199, 1779, 201, 184, 196, 196, 210, 202, 211, 204, 205, 184, 184, 207, 184, 212, 196, 203, 213, 208, 203, 215, 203, 209, 216, 217, 218, 216, 220, 203, 222, 223, 203, 224, 210, 203, 211, 225, 226, 227, 229, 230, 1780, 212, 232, 203, 213, 234, 203, 215, 203, 235, 216, 217, 218, 216, 220, 203, 222, 223, 203, 224, 236, 203, 237, 225, 226, 227, 229, 230, 231, 238, 232, 239, 231, 234, 231, 240, 241, 235, 242, 243, 245, 248, 249, 250, 255, 258, 259, 262, 236, 263, 237, 264, 265, 267, 268, 271, 231, 238, 272, 239, 231, 273, 231, 240, 241, 276, 242, 243, 245, 248, 249, 250, 255, 258, 259, 262, 277, 263, 264, 264, 265, 267, 268, 271, 279, 280, 272, 282, 283, 273, 275, 275, 284, 276, 285, 286, 275, 288, 275, 289, 291, 292, 293, 275, 277, 275, 275, 297, 275, 300, 301, 302, 279, 280, 304, 282, 283, 305, 275, 275, 284, 306, 285, 286, 275, 288, 275, 289, 291, 292, 293, 275, 309, 275, 275, 297, 275, 300, 301, 302, 311, 312, 304, 313, 314, 305, 315, 316, 317, 306, 318, 319, 320, 314, 323, 325, 321, 326, 329, 331, 309, 332, 333, 334, 319, 335, 336, 342, 311, 312, 321, 313, 314, 343, 315, 316, 317, 1781, 318, 319, 320, 314, 323, 325, 321, 326, 329, 331, 344, 332, 333, 334, 319, 335, 336, 342, 345, 346, 321, 347, 348, 343, 350, 351, 353, 344, 354, 355, 361, 348, 362, 363, 364, 365, 366, 367, 344, 368, 369, 370, 372, 373, 376, 367, 345, 346, 377, 347, 348, 378, 350, 351, 353, 344, 354, 355, 361, 348, 362, 363, 364, 365, 366, 367, 379, 368, 369, 370, 372, 373, 376, 367, 380, 381, 377, 383, 385, 378, 386, 387, 389, 390, 391, 392, 393, 394, 395, 398, 399, 403, 404, 405, 379, 406, 408, 409, 410, 412, 413, 414, 380, 381, 415, 383, 385, 416, 386, 387, 389, 390, 391, 392, 393, 394, 395, 398, 399, 403, 404, 405, 417, 406, 408, 409, 410, 412, 413, 414, 418, 420, 415, 421, 422, 416, 423, 424, 425, 426, 427, 428, 429, 432, 433, 436, 437, 438, 439, 440, 417, 420, 443, 444, 447, 448, 449, 452, 418, 420, 455, 421, 422, 456, 423, 424, 425, 426, 427, 428, 429, 432, 433, 436, 437, 438, 439, 440, 457, 420, 443, 444, 447, 448, 449, 452, 458, 460, 455, 461, 462, 456, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 457, 479, 1782, 1784, 483, 488, 489, 490, 458, 460, 491, 461, 462, 494, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 481, 479, 481, 481, 483, 488, 489, 490, 499, 500, 491, 501, 502, 494, 481, 1788, 1790, 503, 504, 505, 506, 507, 508, 510, 511, 512, 514, 515, 481, 1791, 481, 481, 517, 1792, 1797, 508, 499, 500, 518, 501, 502, 522, 481, 497, 497, 503, 504, 505, 506, 507, 508, 510, 511, 512, 514, 515, 516, 497, 524, 516, 517, 497, 497, 508, 525, 526, 518, 527, 528, 522, 529, 497, 497, 516, 531, 533, 534, 536, 537, 539, 1799, 541, 544, 545, 516, 497, 524, 516, 548, 497, 497, 550, 525, 526, 551, 527, 528, 552, 529, 553, 554, 516, 531, 533, 534, 556, 537, 539, 536, 541, 544, 545, 557, 558, 559, 565, 548, 566, 567, 550, 569, 570, 551, 571, 574, 552, 570, 553, 554, 575, 576, 577, 578, 556, 579, 580, 582, 575, 583, 584, 557, 558, 559, 565, 585, 566, 567, 586, 569, 570, 587, 571, 574, 588, 570, 589, 590, 575, 576, 577, 578, 591, 579, 580, 582, 592, 583, 584, 593, 595, 596, 597, 585, 601, 602, 586, 603, 610, 587, 611, 613, 588, 615, 589, 590, 616, 617, 618, 619, 591, 620, 621, 622, 592, 623, 624, 593, 595, 596, 597, 625, 601, 602, 626, 603, 610, 627, 611, 613, 628, 615, 629, 630, 616, 617, 618, 619, 631, 620, 621, 622, 632, 623, 624, 633, 633, 634, 635, 625, 636, 637, 626, 639, 643, 627, 633, 644, 628, 645, 629, 630, 646, 649, 650, 651, 631, 654, 657, 652, 632, 658, 653, 633, 633, 634, 635, 652, 636, 637, 653, 639, 643, 659, 633, 644, 660, 645, 661, 663, 646, 649, 650, 651, 664, 654, 657, 652, 665, 658, 653, 666, 667, 671, 672, 652, 673, 674, 653, 675, 676, 659, 677, 678, 660, 679, 661, 663, 680, 685, 683, 686, 664, 688, 690, 691, 665, 693, 695, 666, 667, 671, 672, 696, 673, 674, 697, 675, 676, 683, 677, 678, 699, 679, 700, 701, 680, 685, 683, 686, 702, 688, 690, 691, 704, 693, 695, 705, 706, 708, 709, 696, 712, 716, 697, 718, 719, 721, 724, 725, 699, 728, 700, 701, 719, 729, 730, 732, 702, 733, 734, 735, 704, 736, 739, 705, 706, 708, 709, 740, 712, 716, 743, 718, 719, 721, 724, 725, 744, 728, 745, 746, 749, 729, 730, 732, 751, 733, 734, 735, 753, 736, 739, 752, 754, 755, 757, 740, 759, 760, 743, 761, 762, 764, 765, 766, 744, 767, 745, 746, 749, 770, 752, 772, 751, 773, 774, 775, 753, 776, 777, 752, 754, 755, 757, 778, 759, 760, 779, 761, 762, 764, 765, 766, 780, 767, 781, 782, 783, 770, 752, 772, 785, 773, 774, 775, 786, 776, 777, 787, 788, 789, 790, 778, 791, 792, 779, 793, 797, 800, 801, 802, 780, 803, 781, 782, 783, 809, 810, 811, 785, 813, 814, 815, 786, 818, 819, 787, 788, 789, 790, 821, 791, 792, 822, 793, 797, 800, 801, 802, 824, 803, 825, 826, 829, 809, 810, 811, 830, 813, 814, 815, 832, 818, 819, 833, 834, 835, 836, 821, 838, 839, 822, 842, 1800, 845, 847, 848, 824, 854, 825, 826, 829, 843, 1802, 1803, 830, 1804, 1806, 1808, 832, 1809, 1810, 833, 834, 835, 836, 1812, 838, 839, 1813, 842, 843, 845, 847, 848, 1815, 854, 1817, 1819, 1822, 843, 844, 844, 1826, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 855, 856, 859, 860, 861, 862, 867, 870, 871, 872, 876, 880, 881, 883, 890, 891, 892, 895, 896, 897, 898, 901, 904, 905, 906, 907, 909, 1827, 855, 856, 859, 860, 861, 862, 867, 870, 871, 872, 876, 880, 881, 883, 890, 891, 892, 895, 896, 897, 898, 901, 904, 905, 906, 907, 909, 910, 910, 912, 914, 915, 917, 918, 921, 924, 925, 926, 927, 931, 1828, 932, 933, 934, 910, 910, 936, 937, 938, 910, 939, 941, 942, 945, 946, 910, 910, 912, 914, 915, 917, 918, 921, 924, 925, 947, 927, 931, 926, 932, 933, 934, 910, 910, 936, 937, 938, 910, 939, 941, 942, 945, 946, 948, 950, 951, 952, 953, 954, 956, 957, 960, 961, 947, 965, 966, 969, 970, 971, 974, 975, 977, 982, 986, 962, 987, 988, 989, 990, 991, 992, 948, 950, 951, 952, 953, 954, 956, 957, 960, 961, 962, 965, 966, 969, 970, 971, 974, 975, 977, 982, 986, 995, 987, 988, 989, 990, 991, 992, 996, 997, 998, 999, 1000, 1001, 1002, 1004, 1005, 999, 962, 1003, 1005, 1002, 1007, 1003, 1006, 1008, 1009, 1010, 1002, 995, 1012, 1006, 1003, 1013, 1014, 1018, 996, 997, 998, 999, 1000, 1001, 1002, 1004, 1005, 999, 1019, 1003, 1005, 1002, 1007, 1003, 1006, 1008, 1009, 1010, 1002, 1011, 1012, 1006, 1003, 1013, 1014, 1018, 1011, 1021, 1022, 1023, 1024, 1025, 1026, 1011, 1027, 1030, 1019, 1031, 1033, 1040, 1042, 1043, 1046, 1049, 1051, 1052, 1056, 1011, 1057, 1058, 1059, 1064, 1065, 1068, 1011, 1021, 1022, 1023, 1024, 1025, 1026, 1011, 1027, 1030, 1069, 1031, 1033, 1040, 1042, 1043, 1046, 1049, 1051, 1052, 1056, 1070, 1057, 1058, 1059, 1064, 1065, 1068, 1073, 1074, 1075, 1076, 1077, 1078, 1080, 1082, 1083, 1077, 1069, 1076, 1077, 1087, 1088, 1091, 1092, 1095, 1096, 1100, 1102, 1070, 1103, 1105, 1106, 1109, 1111, 1112, 1073, 1074, 1075, 1076, 1077, 1078, 1080, 1082, 1083, 1077, 1115, 1076, 1077, 1087, 1088, 1091, 1092, 1095, 1096, 1100, 1102, 1116, 1103, 1105, 1106, 1109, 1111, 1112, 1117, 1118, 1120, 1125, 1128, 1132, 1133, 1137, 1138, 1148, 1115, 1152, 1154, 1157, 1158, 1159, 1161, 1162, 1163, 1167, 1168, 1116, 1169, 1170, 1171, 1172, 1173, 1174, 1117, 1118, 1120, 1125, 1128, 1132, 1133, 1175, 1138, 1148, 1137, 1152, 1154, 1157, 1158, 1159, 1161, 1162, 1163, 1167, 1168, 1176, 1169, 1170, 1171, 1172, 1173, 1174, 1177, 1178, 1177, 1179, 1180, 1181, 1182, 1175, 1183, 1177, 1184, 1185, 1186, 1187, 1188, 1189, 1178, 1190, 1191, 1192, 1193, 1176, 1194, 1195, 1197, 1198, 1202, 1203, 1177, 1178, 1177, 1179, 1180, 1181, 1182, 1204, 1183, 1177, 1184, 1185, 1186, 1187, 1188, 1189, 1178, 1190, 1191, 1192, 1193, 1206, 1194, 1195, 1197, 1198, 1202, 1203, 1207, 1215, 1216, 1219, 1220, 1221, 1222, 1204, 1225, 1229, 1231, 1233, 1234, 1236, 1241, 1242, 1243, 1244, 1245, 1246, 1247, 1206, 1248, 1251, 1254, 1255, 1260, 1261, 1207, 1215, 1216, 1219, 1220, 1221, 1222, 1265, 1225, 1229, 1231, 1233, 1234, 1236, 1241, 1242, 1243, 1244, 1245, 1246, 1247, 1266, 1248, 1251, 1254, 1255, 1260, 1261, 1270, 1271, 1272, 1276, 1279, 1280, 1285, 1265, 1287, 1293, 1294, 1295, 1302, 1306, 1314, 1319, 1322, 1325, 1326, 1272, 1328, 1266, 1330, 1272, 1331, 1332, 1335, 1336, 1270, 1271, 1272, 1276, 1279, 1280, 1285, 1337, 1287, 1293, 1294, 1295, 1302, 1306, 1314, 1319, 1322, 1325, 1326, 1272, 1328, 1339, 1330, 1272, 1331, 1332, 1335, 1336, 1340, 1341, 1342, 1343, 1344, 1345, 1346, 1337, 1347, 1348, 1349, 1350, 1351, 1352, 1353, 1354, 1355, 1356, 1357, 1358, 1359, 1339, 1360, 1361, 1362, 1363, 1364, 1365, 1340, 1341, 1342, 1343, 1344, 1345, 1346, 1366, 1347, 1348, 1349, 1350, 1351, 1352, 1353, 1354, 1355, 1356, 1357, 1358, 1359, 1369, 1360, 1361, 1362, 1363, 1364, 1365, 1370, 1372, 1373, 1376, 1382, 1383, 1385, 1366, 1393, 1395, 1397, 1398, 1400, 1403, 1404, 1406, 1407, 1408, 1409, 1410, 1411, 1369, 1412, 1420, 1423, 1424, 1427, 1429, 1370, 1372, 1373, 1376, 1382, 1383, 1385, 1431, 1393, 1395, 1397, 1398, 1400, 1403, 1404, 1406, 1407, 1408, 1409, 1410, 1411, 1430, 1412, 1420, 1423, 1424, 1427, 1429, 1437, 1430, 1439, 1447, 1448, 1449, 1453, 1431, 1456, 1461, 1469, 1470, 1474, 1477, 1479, 1481, 1482, 1484, 1485, 1487, 1488, 1430, 1489, 1491, 1492, 1493, 1494, 1495, 1437, 1430, 1439, 1447, 1448, 1449, 1453, 1496, 1456, 1461, 1469, 1470, 1474, 1477, 1479, 1481, 1482, 1484, 1485, 1487, 1488, 1497, 1489, 1491, 1492, 1493, 1494, 1495, 1500, 1501, 1502, 1503, 1505, 1506, 1507, 1496, 1508, 1511, 1512, 1513, 1517, 1527, 1530, 1532, 1538, 1532, 1544, 1545, 1548, 1497, 1549, 1550, 1552, 1554, 1555, 1556, 1500, 1501, 1502, 1503, 1505, 1506, 1507, 1557, 1508, 1511, 1512, 1513, 1517, 1527, 1530, 1532, 1538, 1532, 1544, 1545, 1548, 1563, 1549, 1550, 1552, 1554, 1555, 1556, 1559, 1559, 1564, 1565, 1567, 1568, 1569, 1557, 1570, 1584, 1586, 1589, 1595, 1598, 1599, 1604, 1607, 1609, 1610, 1613, 1614, 1563, 1617, 1620, 1621, 1623, 1624, 1626, 1559, 1559, 1564, 1565, 1567, 1568, 1569, 1629, 1570, 1584, 1586, 1589, 1595, 1598, 1599, 1604, 1607, 1609, 1610, 1613, 1614, 1630, 1617, 1620, 1621, 1623, 1624, 1626, 1631, 1632, 1633, 1635, 1636, 1637, 1639, 1629, 1640, 1642, 1651, 1654, 1657, 1658, 1830, 1661, 1663, 1664, 1666, 1667, 1672, 1630, 1673, 1675, 1677, 1678, 1684, 1690, 1631, 1632, 1633, 1635, 1636, 1637, 1639, 1691, 1640, 1642, 1651, 1692, 1657, 1658, 1654, 1661, 1663, 1664, 1666, 1667, 1672, 1704, 1673, 1675, 1677, 1678, 1684, 1690, 1706, 1708, 1720, 1721, 1722, 1727, 1731, 1691, 1732, 1734, 1735, 1692, 1737, 1742, 1743, 1744, 1745, 1746, 1748, 1749, 1753, 1704, 1754, 1763, 1765, 1766, 1767, 1768, 1706, 1708, 1720, 1721, 1722, 1727, 1731, 1774, 1732, 1734, 1735, 1785, 1737, 1742, 1743, 1744, 1745, 1746, 1748, 1749, 1753, 1786, 1754, 1763, 1765, 1766, 1767, 1768, 1789, 1793, 1794, 1795, 1807, 1814, 1816, 1774, 1820, 1823, 1824, 1785, 1831, 1832, 1833, 1834, 1835, 1836, 1838, 1839, 1840, 1786, 1841, 1842, 1843, 1845, 1846, 1848, 1789, 1793, 1794, 1795, 1807, 1814, 1816, 1850, 1820, 1823, 1824, 1851, 1831, 1832, 1833, 1834, 1835, 1836, 1853, 1839, 1840, 1854, 1855, 1842, 1843, 1856, 1857, 1858, 1859, 1861, 1862, 1863, 1865, 1866, 1867, 1869, 1870, 1871, 1872, 1873, 1875, 1877, 1879, 1880, 1881, 1882, 1884, 1886, 1887, 1854, 1855, 1888, 1890, 1856, 1891, 1893, 1895, 1896, 1897, 1898, 1900, 1901, 1902, 1903, 1904, 1871, 1872, 1873, 1905, 1906, 1907, 1880, 1908, 1882, 1909, 1910, 1911, 1912, 1913, 1888, 1915, 1916, 1917, 1919, 1920, 1921, 1922, 1923, 1924, 1901, 1902, 1903, 1926, 1928, 1929, 1931, 1933, 1906, 1935, 1937, 1938, 1939, 1940, 1941, 1911, 1942, 1943, 1945, 1946, 1916, 1917, 1948, 1920, 1921, 1949, 1923, 1951, 1952, 1953, 1954, 1955, 1957, 1959, 1960, 1961, 1962, 1963, 1964, 1938, 1965, 1940, 1966, 1967, 1968, 1969, 1970, 1946, 1971, 1972, 1973, 1975, 1977, 1978, 1979, 1980, 1981, 1953, 1983, 1955, 1984, 1985, 1960, 1987, 1989, 1990, 1991, 1992, 1965, 1993, 1995, 1997, 1968, 1969, 1970, 1999, 1971, 2001, 1973, 2002, 2004, 1978, 2006, 2007, 2008, 2009, 2010, 2012, 2013, 2014, 2016, 2017, 2019, 1990, 2021, 1992, 2022, 1993, 2023, 2025, 2026, 2027, 2028, 2029, 2030, 2031, 2032, 2002, 2033, 2034, 2036, 2007, 2008, 2009, 2038, 2039, 2013, 2040, 2041, 2042, 2043, 2044, 2045, 2047, 2048, 2050, 2023, 2051, 2026, 2052, 2028, 2054, 2055, 2057, 2059, 2061, 2063, 2065, 2067, 2068, 2070, 2076, 2078, 2079, 2080, 2081, 2082, 2042, 2072, 2072, 2073, 2073, 2074, 2074, 2075, 2075, 2077, 2077, 2083, 2084, 2085, 2086, 2087, 2088, 2089, 2090, 2091, 2092, 2093, 2094, 2095, 2096, 2097, 2098, 2099, 2100, 2101, 2102, 2103, 2104, 2105, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114, 2115, 2116, 2117, 2118, 2119, 2120, 2121, 2122, 2123, 2124, 2125, 2126, 2127, 2128, 2129, 2130, 2131, 2132, 2133, 2134, 2135, 2136, 2137, 2138, 2139, 2140, 2141, 2142, 2143, 2144, 2145, 2146, 2147, 2148, 2149, 2150, 2151, 2152, 2153, 2154, 2155, 2156, 2157, 2158, 2159, 2160, 2161, 2162, 2163, 2164, 2165, 2166, 2167, 2168, 2169, 2170, 2171, 2172, 2173, 2174, 2175, 2176, 2177, 2178, 2179, 2180, 2181, 2182, 2183, 2184, 2185, 2186, 2187, 2188, 2189, 2190, 2191, 2192, 2193, 2194, 2195, 2196, 2197, 2198, 2199, 2200, 2201, 2202, 2203, 2204, 2205, 2206, 2207, 2208, 2209, 2210, 2211, 2212, 2213, 2214, 2215, 2216, 2217, 2218, 2219, 2220, 2221, 2222, 2223, 2224, 2225, 2226, 2227, 2228, 2229, 2230, 2231, 2232, 2233, 2234, 2235, 2236, 2237, 2238, 2239, 2240, 2241, 2242, 2243, 2244, 2245, 2246, 2247, 2248, 2249, 2250, 2251, 2252, 2253, 2254, 2255, 2256, 2257, 2258, 2259, 2260, 2261, 2262, 2263, 2264, 2265, 2266, 2267, 2268, 2269, 2270, 2271, 2272, 2273, 2274, 2275, 2276, 2277, 2278, 2279, 2280, 2281, 2282, 2283, 2284, 2285, 2286, 2287, 2288, 2289, 2290, 2291, 2292, 2293, 2294, 2295, 2296, 2297, 2298, 2299, 2300, 2301, 2302, 2303, 2304, 2305, 2306, 2307, 2308, 2309, 2310, 2311, 2312, 2313, 2314, 2315, 2316, 2317, 2318, 2319, 2320, 2321, 2322, 2323, 2324, 2325, 2326, 2327, 2328, 2329, 2330, 2331, 2332, 2333, 2334, 2335, 2336, 2337, 2338, 2339, 2340, 2341, 2342, 2343, 2344, 2345, 2346, 2347, 2348, 2349, 2350, 2351, 2352, 2353, 2354, 2355, 2356, 2357, 2358, 2359, 2360, 2361, 2362, 2363, 2364, 2365, 2366, 2367, 2368, 2369, 2370, 2371, 2372, 2373, 2374, 2375, 2376, 2377, 2378, 2379, 2380, 2381, 2382, 2383, 2384, 2385, 2386, 2387, 2388, 2389, 2390, 2391, 2392, 2393, 2394, 2395, 2396, 2397, 2398, 2399, 2400, 2401, 2402, 2403, 2404, 2405, 2406, 2407, 2408, 1712, 1710, 1707, 1705, 1703, 1702, 1701, 1700, 1698, 1697, 1695, 1694, 1689, 1688, 1686, 1685, 1683, 1682, 1680, 1676, 1674, 1671, 1670, 1669, 1665, 1662, 1660, 1656, 1653, 1650, 1649, 1647, 1646, 1644, 1643, 1641, 1638, 1634, 1628, 1627, 1625, 1622, 1619, 1618, 1616, 1615, 1612, 1608, 1606, 1605, 1603, 1601, 1600, 1597, 1594, 1592, 1590, 1588, 1585, 1583, 1581, 1579, 1578, 1577, 1576, 1575, 1574, 1572, 1566, 1562, 1561, 1560, 1558, 1553, 1551, 1547, 1543, 1541, 1540, 1537, 1535, 1534, 1531, 1529, 1528, 1526, 1524, 1522, 1521, 1520, 1518, 1516, 1515, 1510, 1509, 1504, 1499, 1498, 1490, 1486, 1483, 1480, 1478, 1476, 1473, 1472, 1471, 1468, 1466, 1464, 1462, 1460, 1458, 1457, 1455, 1452, 1450, 1446, 1445, 1443, 1442, 1441, 1438, 1436, 1435, 1434, 1432, 1428, 1426, 1422, 1419, 1418, 1416, 1414, 1413, 1405, 1402, 1399, 1396, 1394, 1392, 1391, 1390, 1389, 1387, 1386, 1384, 1381, 1379, 1378, 1377, 1375, 1374, 1371, 1368, 1338, 1334, 1329, 1327, 1324, 1321, 1318, 1317, 1316, 1315, 1313, 1312, 1310, 1309, 1308, 1305, 1303, 1301, 1299, 1298, 1297, 1292, 1291, 1290, 1288, 1286, 1284, 1282, 1278, 1275, 1274, 1273, 1269, 1268, 1264, 1262, 1259, 1258, 1257, 1253, 1250, 1240, 1239, 1237, 1235, 1232, 1230, 1228, 1227, 1224, 1223, 1218, 1214, 1213, 1212, 1211, 1209, 1205, 1201, 1200, 1196, 1166, 1164, 1160, 1156, 1153, 1151, 1149, 1147, 1145, 1144, 1143, 1141, 1139, 1136, 1134, 1131, 1129, 1127, 1126, 1124, 1123, 1121, 1119, 1114, 1113, 1110, 1108, 1107, 1104, 1101, 1099, 1097, 1094, 1093, 1090, 1089, 1086, 1085, 1084, 1081, 1079, 1072, 1071, 1067, 1063, 1061, 1055, 1054, 1050, 1045, 1041, 1039, 1037, 1035, 1032, 1029, 1028, 1020, 1017, 1015, 994, 993, 985, 984, 981, 980, 979, 978, 976, 973, 972, 968, 967, 964, 963, 959, 958, 955, 949, 944, 943, 940, 935, 930, 929, 923, 920, 916, 913, 911, 908, 903, 902, 900, 899, 894, 893, 889, 885, 882, 879, 878, 875, 874, 873, 869, 866, 865, 864, 858, 853, 851, 850, 846, 841, 837, 831, 828, 827, 823, 820, 817, 816, 812, 808, 807, 805, 799, 796, 794, 784, 771, 769, 763, 758, 756, 750, 748, 747, 742, 741, 738, 737, 731, 727, 722, 720, 717, 715, 714, 713, 711, 707, 703, 698, 694, 692, 689, 687, 684, 682, 670, 669, 662, 656, 648, 647, 642, 641, 638, 614, 612, 609, 607, 605, 604, 600, 599, 598, 594, 573, 568, 564, 563, 561, 555, 549, 547, 546, 543, 540, 538, 535, 532, 530, 521, 520, 513, 509, 498, 493, 492, 487, 486, 482, 480, 464, 459, 454, 453, 451, 446, 442, 435, 431, 411, 407, 402, 401, 400, 397, 388, 384, 382, 375, 371, 360, 359, 358, 357, 356, 352, 349, 338, 330, 328, 324, 322, 310, 308, 303, 299, 298, 296, 290, 287, 281, 278, 274, 270, 269, 266, 261, 257, 254, 252, 251, 247, 246, 244, 233, 228, 221, 219, 214, 206, 194, 182, 180, 178, 166, 157, 143, 132, 130, 127, 96, 83, 80, 46, 36, 12, 9, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071 } ; static yy_state_type yy_last_accepting_state; static char *yy_last_accepting_cpos; extern int yy_flex_debug; int yy_flex_debug = 0; /* The intent behind this definition is that it'll catch * any uses of REJECT which flex missed. */ #define REJECT reject_used_but_not_detected #define yymore() yymore_used_but_not_detected #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET char *yytext; #line 1 "loader.l" #line 2 "loader.l" /* * Crossfire -- cooperative multi-player graphical RPG and adventure game * * Copyright (c) 1999-2014 Mark Wedel and the Crossfire Development Team * Copyright (c) 1992 Frank Tore Johansen * * Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are * welcome to redistribute it under certain conditions. For details, please * see COPYING and LICENSE. * * The authors can be reached via e-mail at . */ /* Eneq(@csd.uu.se): Added weight-modifiers in environment of objects. object_sub/add_weight will transcend the environment updating the carrying variable. */ #include "global.h" #include #include "loader.h" #include "newserver.h" #include "sproto.h" #include "stringbuffer.h" #define YY_DECL int lex_load(int *depth, object **items, int maxdepth, int map_flags, int linemode) static char *yval(void); static int lex_error; static char msgbuf[HUGE_BUF]; size_t msglen = 0, total_msglen = 0; static char lorebuf[HUGE_BUF]; /** * This table is only necessary to convert objects that existed before the * spell object conversion to the new object. It was not practical * to go through every mapping looking for every potion, rod, wand, etc * that had a sp set and update to the new value. So this maps the * old spell numbers to the name of the new archs. * If you are adding a new spell, you should not modify this - your * new spell won't have been used, and thus won't have any legacy object. * NULL entries in this table are valid - to denote objects that should * not be updated for whatever reason. * * @todo * is this still required? it's used, but can it happen? */ const char *const spell_mapping[] = { "spell_magic_bullet", /* 0 */ "spell_small_fireball", /* 1 */ "spell_medium_fireball", /* 2 */ "spell_large_fireball", /* 3 */ "spell_burning_hands", /* 4 */ "spell_sm_lightning", /* 5 */ "spell_large_lightning", /* 6 */ "spell_magic_missile", /* 7 */ "spell_create_bomb", /* 8 */ "spell_summon_golem", /* 9 */ "spell_summon_fire_elemental", /* 10 */ "spell_summon_earth_elemental", /* 11 */ "spell_summon_water_elemental", /* 12 */ "spell_summon_air_elemental", /* 13 */ "spell_dimension_door", /* 14 */ "spell_create_earth_wall", /* 15 */ "spell_paralyze", /* 16 */ "spell_icestorm", /* 17 */ "spell_magic_mapping", /* 18 */ "spell_turn_undead", /* 19 */ "spell_fear", /* 20 */ "spell_poison_cloud", /* 21 */ "spell_wonder", /* 22 */ "spell_destruction", /* 23 */ "spell_perceive_self", /* 24 */ "spell_word_of_recall", /* 25 */ "spell_invisible", /* 26 */ "spell_invisible_to_undead", /* 27 */ "spell_probe", /* 28 */ "spell_lg_magic_bullet", /* 29 */ "spell_improved_invisibility", /* 30 */ "spell_holy_word", /* 31 */ "spell_minor_healing", /* 32 */ "spell_medium_healing", /* 33 */ "spell_major_healing", /* 34 */ "spell_heal", /* 35 */ "spell_create_food", /* 36 */ "spell_earth_to_dust", /* 37 */ "spell_armour", /* 38 */ "spell_strength", /* 39 */ "spell_dexterity", /* 40 */ "spell_constitution", /* 41 */ "spell_charisma", /* 42 */ "spell_create_fire_wall", /* 43 */ "spell_create_frost_wall", /* 44 */ "spell_protection_from_cold", /* 45 */ "spell_protection_from_electricity", /* 46 */ "spell_protection_from_fire", /* 47 */ "spell_protection_from_poison", /* 48 */ "spell_protection_from_slow", /* 49 */ "spell_protection_from_paralysis", /* 50 */ "spell_protection_from_draining", /* 51 */ "spell_protection_from_magic", /* 52 */ "spell_protection_from_attack", /* 53 */ "spell_levitate", /* 54 */ "spell_small_speedball", /* 55 */ "spell_large_speedball", /* 56 */ "spell_hellfire", /* 57 */ "spell_dragonbreath", /* 58 */ "spell_large_icestorm", /* 59 */ "spell_charging", /* 60 */ "spell_polymorph", /* 61 */ "spell_cancellation", /* 62 */ "spell_confusion", /* 63 */ "spell_mass_confusion", /* 64 */ "spell_summon_pet_monster", /* 65 */ "spell_slow", /* 66 */ "spell_regenerate_spellpoints", /* 67 */ "spell_cure_poison", /* 68 */ "spell_protection_from_confusion", /* 69 */ "spell_protection_from_cancellation", /* 70 */ "spell_protection_from_depletion", /* 71 */ "spell_alchemy", /* 72 */ "spell_remove_curse", /* 73 */ "spell_remove_damnation", /* 74 */ "spell_identify", /* 75 */ "spell_detect_magic", /* 76 */ "spell_detect_monster", /* 77 */ "spell_detect_evil", /* 78 */ "spell_detect_curse", /* 79 */ "spell_heroism", /* 80 */ "spell_aggravation", /* 81 */ "spell_firebolt", /* 82 */ "spell_frostbolt", /* 83 */ "spell_shockwave", /* 84 */ "spell_color_spray", /* 85 */ "spell_haste", /* 86 */ "spell_face_of_death", /* 87 */ "spell_ball_lightning", /* 88 */ "spell_meteor_swarm", /* 89 */ "spell_comet", /* 90 */ "spell_mystic_fist", /* 91 */ "spell_raise_dead", /* 92 */ "spell_resurrection", /* 93 */ "spell_reincarnation", /* 94 */ "spell_immunity_to_cold", /* 95 */ "spell_immunity_to_electricity", /* 96 */ "spell_immunity_to_fire", /* 97 */ "spell_immunity_to_poison", /* 98 */ "spell_immunity_to_slow", /* 99 */ "spell_immunity_to_paralysis", /* 100 */ "spell_immunity_to_draining", /* 101 */ "spell_immunity_to_magic", /* 102 */ "spell_immunity_to_attack", /* 103 */ "spell_invulnerability", /* 104 */ "spell_defense", /* 105 */ "spell_rune_of_fire", /* 106 */ "spell_rune_of_frost", /* 107 */ "spell_rune_of_shocking", /* 108 */ "spell_rune_of_blasting", /* 109 */ "spell_rune_of_death", /* 110 */ "spell_marking_rune", /* 111 */ "spell_build_director", /* 112 */ "spell_create_pool_of_chaos", /* 113 */ "spell_build_bullet_wall", /* 114 */ "spell_build_lightning_wall", /* 115 */ "spell_build_fireball_wall", /* 116 */ "spell_magic_rune", /* 117 */ "spell_rune_of_magic_drain", /* 118 */ "spell_antimagic_rune", /* 119 */ "spell_rune_of_transference", /* 120 */ "spell_transference", /* 121 */ "spell_magic_drain", /* 122 */ "spell_counterspell", /* 123 */ "spell_disarm", /* 124 */ "spell_cure_confusion", /* 125 */ "spell_restoration", /* 126 */ "was summon evil monster", /* 127 */ /* Not implenented as nothing used it */ "spell_counterwall", /* 128 */ "spell_cause_light_wounds", /* 129 */ "spell_cause_medium_wounds", /* 130 */ "spell_cause_heavy_wounds", /* 131 */ "spell_charm_monsters", /* 132 */ "spell_banishment", /* 133 */ "spell_create_missile", /* 134 */ "spell_show_invisible", /* 135 */ "spell_xray", /* 136 */ "spell_pacify", /* 137 */ "spell_summon_fog", /* 138 */ "spell_steambolt", /* 139 */ "spell_command_undead", /* 140 */ "spell_holy_orb", /* 141 */ "spell_summon_avatar", /* 142 */ "spell_holy_possession", /* 143 */ "spell_bless", /* 144 */ "spell_curse", /* 145 */ "spell_regeneration", /* 146 */ "spell_consecrate", /* 147 */ "spell_summon_cult_monsters", /* 148 */ "spell_cause_critical_wounds", /* 149 */ "spell_holy_wrath", /* 150 */ "spell_retributive_strike", /* 151 */ "spell_finger_of_death", /* 152 */ "spell_insect_plague", /* 153 */ "spell_call_holy_servant", /* 154 */ "spell_wall_of_thorns", /* 155 */ "spell_staff_to_snake", /* 156 */ "spell_light", /* 157 */ "spell_darkness", /* 158 */ "spell_nightfall", /* 159 */ "spell_daylight", /* 160 */ "spell_sunspear", /* 161 */ "spell_faery_fire", /* 162 */ "spell_cure_blindness", /* 163 */ "spell_dark_vision", /* 164 */ "spell_bullet_swarm", /* 165 */ "spell_bullet_storm", /* 166 */ "spell_cause_many_wounds", /* 167 */ "spell_small_snowstorm", /* 168 */ "spell_medium_snowstorm", /* 169 */ "spell_large_snowstorm", /* 170 */ "spell_cure_disease", /* 171 */ "spell_cause_red_death", /* 172 */ "spell_cause_flu", /* 173 */ "spell_cause_black_death", /* 174 */ "spell_cause_leprosy", /* 175 */ "spell_cause_smallpox", /* 176 */ "spell_cause_white_death", /* 177 */ "spell_cause_anthrax", /* 178 */ "spell_cause_typhoid", /* 179 */ "spell_mana_blast", /* 180 */ "spell_small_manaball", /* 181 */ "spell_medium_manaball", /* 182 */ "spell_large_manaball", /* 183 */ "spell_manabolt", /* 184 */ "spell_dancing_sword", /* 185 */ "spell_animate_weapon", /* 186 */ "spell_cause_cold", /* 187 */ "spell_divine_shock", /* 188 */ "spell_windstorm", /* 189 */ "spell_sanctuary", /* 190 */ "spell_peace", /* 191 */ "spell_spiderweb", /* 192 */ "spell_conflict", /* 193 */ "spell_rage", /* 194 */ "spell_forked_lightning", /* 195 */ "spell_poison_fog", /* 196 */ "spell_flaming_aura", /* 197 */ "spell_vitriol", /* 198 */ "spell_vitriol_splash", /* 199 */ "spell_iron_skin", /* 200 */ "spell_wrathful_eye", /* 201 */ "spell_town_portal", /* 202 */ "spell_missile_swarm", /* 203 */ "spell_cause_rabies", /* 204 */ "spell_glyph", /* 205 */ NULL }; /** Utility macro to transform a bit into a flag. */ #define SET_OR_CLEAR_FLAG(op, flag, val) \ { if (val) SET_FLAG(op, flag); else CLEAR_FLAG(op, flag); } /** * SET_RESIST is really only really needed for transition code. We normally * don't care about multiple values overwriting each other, but this is * to catch items that have multiple protection/immune/vulnerable. * This can be simplified later on to just do the set after all the archs * and maps have been updated. * We always keep the last value because otherwise the value from the * arch may take precedence. * Unfortunately, we will report warnings here simply because an object has * been modified from the arch. */ #define SET_RESIST(op, type, val) op->resist[type] = val; /** Next value as integer. */ #define IVAL atoi(yval()) /** Next value as float. */ #define FVAL atof(yval()) extern int arch_init; extern int artifact_init; /** * Keep track of whether we're currently inside an object...end block. This * might have been better designed as a separate start condition, but was * added to give a warning when an object started before the previous ended. */ static bool seen_object = false; /** * Fills in the body information for one slot. * * @param op * object * @param params * the body part, which should be in the ::body_locations structure. */ static void set_body_info(object *op, char *params) { int i; char *cp; /* go to first space character */ for (cp = params; !isspace(*cp); cp++) ; *cp++ = 0; /* null it out */ for (i = 0; i < NUM_BODY_LOCATIONS; i++) { if (!strcmp(params, body_locations[i].save_name)) { op->body_info[i] = atoi(cp); return; /* Only one line passed in params */ } } LOG(llevError, "set_body_info called with bogus params: %s\n", params); } /** * This function checks the object after it has been loaded (when we * get the 'end' in the input stream). This function can be used to * deal with legacy objects where fields may have changed. It can also be used * to check for objects to make sure there are no common errors. * * @param op * object to check. */ static void check_loaded_object(object *op) { if (artifact_init) /* Artifacts are special beasts, let's not check them. */ return; if (!is_type_valid(op->type)) { LOG(llevError, "Invalid type %d for %s\n", op->type, op->arch ? op->arch->name : op->name); op->type = 0; } /* We do some specialized handling to handle legacy cases of name_pl. * If the object doesn't have a name_pl, we just use the object name - * this isn't perfect (things won't be properly pluralized), but works to * that degree (5 heart is still quite understandable). But the case we * also have to catch is if this object is not using the normal name for * the object. In that case, we also want to use the loaded name. * Otherwise, what happens is that the the plural name will lose * information (appear as just 'hearts' and not 'goblins heart') */ if (op->arch && op->name != op->arch->clone.name && op->name_pl == op->arch->clone.name_pl) { if (op->name_pl) { free_string(op->name_pl); op->name_pl = NULL; } } if (!op->name_pl && op->name) op->name_pl = add_string(op->name); /* objects now have a materialname. try to patch it in */ if (!(IS_WEAPON(op) && op->level > 0)) { set_materialname(op); } /* only do these when program is first run - a bit * excessive to do this at every run - most of this is * really just to catch any errors - program will still run, but * not in the ideal fashion. */ if ((op->type == WEAPON || op->type == BOW) && arch_init) { if (!op->skill) { LOG(llevError, "Weapon %s lacks a skill.\n", op->name); } else if ((!strcmp(op->skill, "one handed weapons") && op->body_info[1] != -1) || (!strcmp(op->skill, "two handed weapons") && op->body_info[1] != -2)) { LOG(llevError, "weapon %s arm usage does not match skill: %d, %s\n", op->name, op->body_info[1], op->skill); } } /* spellbooks & runes use slaying. But not to arch name, but to spell name */ if ((op->type == SPELLBOOK || op->type == RUNE) && op->slaying && !op->inv && !arch_init) { object *tmp; tmp = create_archetype_by_object_name(op->slaying); object_insert_in_ob(tmp, op); op->randomitems = NULL; /* So another spell isn't created for this object */ /* without this, value is all screwed up */ op->value = op->arch->clone.value*op->inv->value; } if (QUERY_FLAG(op, FLAG_MONSTER)) { if (op->stats.hp > op->stats.maxhp) LOG(llevDebug, "Monster %s has hp set higher than maxhp (%d>%d)\n", op->name, op->stats.hp, op->stats.maxhp); } if ((QUERY_FLAG(op, FLAG_GENERATOR) && QUERY_FLAG(op, FLAG_CONTENT_ON_GEN)) || op->type == CREATOR || op->type == CONVERTER) { /* Object will duplicate it's content as part of the * generation process. To do this, we must flag inventory * so it remains unevaluated concerning the randomitems and * the living (a demonlord shouldn't cast from inside generator!) */ object_set_flag_inv(op, FLAG_IS_A_TEMPLATE); } /* if the item is identified, ensure we got the correct face */ if (QUERY_FLAG(op, FLAG_IDENTIFIED)) object_give_identified_properties(op); /* Here we'll handle custom monsters. In order to handle them correctly, especially in the fix_object * method, we'll create a new temporary archetype containing defined values. * Of course this doesn't apply when loading archetypes or artifacts. */ if (arch_init == 0 && artifact_init == 0 && QUERY_FLAG(op, FLAG_MONSTER) && op->arch && !object_can_merge(op, &op->arch->clone)) { archetype *temp = get_archetype_struct(); temp->reference_count++; temp->name = add_string(op->arch->name); temp->tail_x = op->arch->tail_x; temp->tail_y = op->arch->tail_y; object_copy(op, &temp->clone); temp->clone.inv = NULL; temp->clone.env = NULL; temp->clone.x = 0; temp->clone.y = 0; temp->clone.map = NULL; if (FABS(temp->clone.speed) > MIN_ACTIVE_SPEED) { /* Clone has a speed, so need to clear that because it isn't on a map. * But we need to keep the value, because otherwise the customized object * will have no speed (fix_player() will use the 0 value). So set it * to zero, call object_update_speed() to remove it from active list, then * set its speed back to the original. */ temp->clone.speed = 0; object_update_speed(&temp->clone); temp->clone.speed = op->speed; } temp->more = op->arch->more; op->arch = temp; /* LOG(llevDebug, "created temporary archetype for %s at %d,%d\n", op->name, op->x, op->y); */ } } /** * This extracts the key/value from the yytext field - * calls object_set_value() to actually set the value. * Function basically has to find spaces, strip out extra, * etc. strchr doesn't work as good because could also * be tabs. * * @param op * object in which to insert the value. */ static void add_key_value(object *op) { char *key = NULL; char *value = NULL; char *cp; char *end; /* First, skip over leading whitespace. */ for (cp = yytext; isspace(*cp); cp++) { ; } key = cp; /* Now look for the end of the key/field name. */ for (; !isspace(*cp); cp++) { if (*cp == '\0') { /* Oops, ran out of string! Set the key with an empty value. */ object_set_value(op, key, NULL, TRUE); return; } } if (*cp == '\0') { object_set_value(op, key, NULL, TRUE); return; } /* Chop off the key, and start at the next character. */ *cp = '\0'; cp++; if (*cp == '\0') { /* Was followed by one space? */ object_set_value(op, key, NULL, TRUE); return; } /* Now looking for the value. Skip over whitespace. */ for (; isspace(*cp); cp++) { if (*cp == '\0') { /* Guess not. */ object_set_value(op, key, NULL, TRUE); return; } } value = cp; /* Got last character before null and strip * off tailing whitespace */ for (end = value+(strlen(cp)-1); isspace(*end); end--) { if (end == value) { /* *blink blink* Still no value? */ object_set_value(op, key, NULL, TRUE); return; } *end = '\0'; } object_set_value(op, key, value, TRUE); } /** * Handles the different move types an object can have. * * @param mt * field for which we are computing the value, will be set to the result of parsing. * @param params * string containing the definition of the move type to parse. * @param prefix * string to be displayed in case the move type is invalid, must not be NULL. */ static void set_move(MoveType *mt, char *params, const char *prefix) { char *str; int i, negate; if (isdigit(*params)) { *mt = atoi(params); } else { *mt = 0; for (str = strtok(params, " "); str; str = strtok(NULL, " ")) { negate = 0; if (!strcasecmp(str, "all")) *mt |= MOVE_ALL; else { if (*str == '-') { negate = 1; str++; } for (i = 0; move_name[i] != NULL; i++) { if (!strcasecmp(move_name[i], str)) { if (negate) { *mt &= ~(1< #endif #ifndef YY_EXTRA_TYPE #define YY_EXTRA_TYPE void * #endif static int yy_init_globals (void ); /* Accessor methods to globals. These are made visible to non-reentrant scanners for convenience. */ int yylex_destroy (void ); int yyget_debug (void ); void yyset_debug (int debug_flag ); YY_EXTRA_TYPE yyget_extra (void ); void yyset_extra (YY_EXTRA_TYPE user_defined ); FILE *yyget_in (void ); void yyset_in (FILE * in_str ); FILE *yyget_out (void ); void yyset_out (FILE * out_str ); yy_size_t yyget_leng (void ); char *yyget_text (void ); int yyget_lineno (void ); void yyset_lineno (int line_number ); /* Macros after this point can all be overridden by user definitions in * section 1. */ #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus extern "C" int yywrap (void ); #else extern int yywrap (void ); #endif #endif #ifndef 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 static int yy_start_stack_ptr = 0; static int yy_start_stack_depth = 0; static int *yy_start_stack = NULL; static void yy_push_state (int new_state ); static void yy_pop_state (void ); /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE #define YY_READ_BUF_SIZE 8192 #endif /* Copy whatever the last rule matched to the standard output. */ #ifndef ECHO /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, * is returned in "result". */ #ifndef YY_INPUT #define YY_INPUT(buf,result,max_size) \ if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ { \ int c = '*'; \ size_t n; \ for ( n = 0; n < max_size && \ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ if ( c == '\n' ) \ buf[n++] = (char) c; \ if ( c == EOF && ferror( yyin ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ result = n; \ } \ else \ { \ errno=0; \ while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ { \ if( errno != EINTR) \ { \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ break; \ } \ errno=0; \ clearerr(yyin); \ } \ }\ \ #endif /* No semi-colon after return; correct usage is to write "yyterminate();" - * we don't want an extra ';' after the "return" because that will cause * some compilers to complain about unreachable statements. */ #ifndef yyterminate #define yyterminate() return YY_NULL #endif /* Number of entries by which start-condition stack grows. */ #ifndef YY_START_STACK_INCR #define YY_START_STACK_INCR 25 #endif /* Report a fatal error. */ #ifndef YY_FATAL_ERROR #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) #endif /* end tables serialization structures and prototypes */ /* Default declaration of generated scanner - a define so the user can * easily add parameters. */ #ifndef YY_DECL #define YY_DECL_IS_OURS 1 extern int yylex (void); #define YY_DECL int yylex (void) #endif /* !YY_DECL */ /* Code executed at the beginning of each rule, after yytext and yyleng * have been set up. */ #ifndef YY_USER_ACTION #define YY_USER_ACTION #endif /* Code executed at the end of each rule. */ #ifndef YY_BREAK #define YY_BREAK break; #endif #define YY_RULE_SETUP \ if ( yyleng > 0 ) \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \ (yytext[yyleng - 1] == '\n'); \ YY_USER_ACTION /** The main scanner function which does all the work. */ YY_DECL { yy_state_type yy_current_state; char *yy_cp, *yy_bp; int yy_act; #line 592 "loader.l" /* Declare some local variables */ int ismore = 0; object *op = items[*depth]; lex_error = 0; #line 2850 "loader.c" if ( !(yy_init) ) { (yy_init) = 1; #ifdef YY_USER_INIT YY_USER_INIT; #endif if ( ! (yy_start) ) (yy_start) = 1; /* first start state */ if ( ! yyin ) yyin = stdin; if ( ! yyout ) yyout = stdout; if ( ! YY_CURRENT_BUFFER ) { yyensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin,YY_BUF_SIZE ); } yy_load_buffer_state( ); } while ( 1 ) /* loops until end-of-file is reached */ { yy_cp = (yy_c_buf_p); /* Support of yytext. */ *yy_cp = (yy_hold_char); /* yy_bp points to the position in yy_ch_buf of the start of * the current run. */ yy_bp = yy_cp; yy_current_state = (yy_start); yy_current_state += YY_AT_BOL(); yy_match: do { 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 >= 2072 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; ++yy_cp; } while ( yy_current_state != 2071 ); 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; do_action: /* This label is used only to access EOF actions. */ switch ( yy_act ) { /* beginning of action switch */ case 0: /* must back up */ /* undo the effects of YY_DO_BEFORE_ACTION */ *yy_cp = (yy_hold_char); yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); goto yy_find_action; case 1: *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 603 "loader.l" { BEGIN(MESSAGE); msgbuf[0] = '\0'; msglen = 0; total_msglen = 0;} YY_BREAK case 2: *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 604 "loader.l" { BEGIN(INITIAL); object_set_msg(op, msgbuf); /* Just print a warning so we can be reasonably safe * about not overflowing the buffer. */ if (total_msglen > (HUGE_BUF / 2)) LOG(llevDebug, "warning: msg in '%s' on %s is very long (%lu " "characters)\n", op->name, op->map != NULL ? op->map->path : "no map", (unsigned long)total_msglen); } YY_BREAK case 3: YY_RULE_SETUP #line 617 "loader.l" { safe_strcat(msgbuf, yytext, &msglen, HUGE_BUF); safe_strcat(msgbuf, "\n", &msglen, HUGE_BUF); total_msglen += strlen(yytext)+1; } YY_BREAK case 4: *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 622 "loader.l" { BEGIN(LORE); lorebuf[0] = '\0'; } YY_BREAK case 5: *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 623 "loader.l" { BEGIN(INITIAL); op->lore = add_string(lorebuf); /* Just print a warning so we can be reasonably safe * about not overflowing the buffer. */ if (strlen(op->lore) > (HUGE_BUF/2)) LOG(llevDebug, "\n\tWarning lore length > %d (max allowed=%d): %lu\n>%.80s<\n", HUGE_BUF/2, HUGE_BUF, (unsigned long)strlen(op->lore), op->lore); } YY_BREAK case 6: YY_RULE_SETUP #line 632 "loader.l" { strcat(lorebuf, yytext); strcat(lorebuf, "\n"); } YY_BREAK case 7: YY_RULE_SETUP #line 634 "loader.l" { char *yv = yval(); if (*yv == '\0') { LOG(llevError, "Object lacks name.\n"); return LL_IGNORED; } if (seen_object) { LOG(llevError, "An object started before the 'end' of object %s.\n", (op->arch && op->arch->name) ? op->arch->name : "(no name)"); } if (!arch_init) { LOG(llevError, "Got object info when not in arch_init (%s)?\n", yv); } else { if (op->arch != NULL) op->arch->name = add_string(yv); op->name = add_string(yv); } seen_object = true; } YY_BREAK case 8: YY_RULE_SETUP #line 654 "loader.l" { char *yv = yval(); if (*yv == '\0') LOG(llevError, "Name without val\n"); else FREE_AND_COPY(op->name, yv); } YY_BREAK case 9: YY_RULE_SETUP #line 662 "loader.l" { char *yv = yval(); if (*yv == '\0') LOG(llevError, "Name without val\n"); else FREE_AND_COPY(op->name_pl, yv); } YY_BREAK case 10: YY_RULE_SETUP #line 670 "loader.l" { char *yv = yval(); if (*yv == '\0') LOG(llevError, "Anim suffix without val\n"); else FREE_AND_COPY(op->anim_suffix, yv); } YY_BREAK case 11: YY_RULE_SETUP #line 678 "loader.l" FREE_AND_COPY(op->skill, yval()); YY_BREAK case 12: YY_RULE_SETUP #line 679 "loader.l" { char *yv = yval(); if (*yv == '\0') LOG(llevError, "Custom name without val\n"); else FREE_AND_COPY(op->custom_name, yv); } YY_BREAK case 13: YY_RULE_SETUP #line 687 "loader.l" FREE_AND_COPY(op->race, yval()); YY_BREAK case 14: YY_RULE_SETUP #line 688 "loader.l" FREE_AND_COPY(op->slaying, yval()); YY_BREAK case 15: YY_RULE_SETUP #line 689 "loader.l" { if (op->arch) { /* Here an object must be inserted into another object, during archetypes, artifact or map loading. The logic is as follow: - in linemode, we are loading artifacts, so just increase depth, next calls will work on object in inventory, and insertion in previous object done in the "end" part - when not in linemode, two cases: - arch_init is not set, then we are loading a map - arch_init is set, we are loading archetypes, discard the object, it'll be handled in a second pass */ object *tmp; char *yv = yval(); tmp = object_new(); tmp->arch = try_find_archetype(yv); if (tmp->arch != NULL) object_copy(&tmp->arch->clone, tmp); else { if (tmp->name) free_string(tmp->name); /* record the name of the broken object */ tmp->name = add_string(yv); } strcpy(msgbuf, ""); strcpy(lorebuf, ""); msglen = 0; total_msglen = 0; (*depth)++; items[*depth] = tmp; if (linemode == 0) { lex_load(depth, items, maxdepth, map_flags, linemode); (*depth)--; if (tmp->arch && (arch_init == 0)) { /* Map loading, object into another object*/ object_insert_in_ob(tmp, op); } else { /* Archetypes loading or invalid object in a map */ if (arch_init == 0) LOG(llevDebug, "Discarding object without arch: %s\n", tmp->name ? tmp->name : "(null)"); object_free_drop_inventory(tmp); } } } else { /* Here we are loading an object in a map, on a spot, not * in another object's inventory */ char *yv = yval(); op->arch = try_find_archetype(yv); if (op->arch != NULL) object_copy(&op->arch->clone, op); else if (!arch_init) { if (op->name) free_string(op->name); /* record the name of the broken object */ op->name = add_string(yv); } } } YY_BREAK case 16: YY_RULE_SETUP #line 753 "loader.l" { const char *yv = yval(); const artifact *art = find_artifact(op, yv); if (art == NULL) { LOG(llevError, "can't find artifact %s [%d]\n for loading", yv, op->type); } else { give_artifact_abilities(op, art->item); } } YY_BREAK case 17: YY_RULE_SETUP #line 763 "loader.l" op->other_arch = try_find_archetype(yval()); YY_BREAK case 18: YY_RULE_SETUP #line 764 "loader.l" { if (strcmp (yval(), "NONE") == 0) { op->animation = NULL; CLEAR_FLAG (op, FLAG_ANIMATE); } else { op->animation = find_animation (yval()); SET_FLAG (op, FLAG_ANIMATE); } } YY_BREAK case 19: *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 774 "loader.l" { /* We need to record that this is a multipart object, * so the calling function can glue things back together */ ismore = 1; } YY_BREAK case 20: *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 780 "loader.l" { seen_object = false; check_loaded_object(op); if (linemode) { /* Linemode is only set for artifact loading. */ if ((*depth) > 0) { /* Object we finished is in another object's inventory */ object_insert_in_ob(items[*depth], items[(*depth)-1]); } return LL_NORMAL; } if (ismore) return LL_MORE; else return LL_NORMAL; } YY_BREAK case 21: YY_RULE_SETUP #line 796 "loader.l" op->last_heal = IVAL; YY_BREAK case 22: YY_RULE_SETUP #line 797 "loader.l" op->last_sp = IVAL; YY_BREAK case 23: YY_RULE_SETUP #line 798 "loader.l" op->last_grace = IVAL; YY_BREAK case 24: YY_RULE_SETUP #line 799 "loader.l" op->last_eat = IVAL; YY_BREAK case 25: YY_RULE_SETUP #line 800 "loader.l" { op->speed = FVAL; if (!(map_flags&MAP_STYLE)) { if (op->speed < 0) { op->speed_left = op->speed_left-RANDOM()%100/100.0; op->speed = -op->speed; // Make this always positive } object_update_speed(op); } } YY_BREAK case 26: YY_RULE_SETUP #line 810 "loader.l" op->speed_left = FVAL; YY_BREAK case 27: YY_RULE_SETUP #line 812 "loader.l" op->weapon_speed_left = FVAL; YY_BREAK case 28: YY_RULE_SETUP #line 813 "loader.l" op->weapon_speed = FVAL; YY_BREAK case 29: YY_RULE_SETUP #line 815 "loader.l" { op->move_slow |= MOVE_WALK; op->move_slow_penalty = FVAL; } YY_BREAK case 30: YY_RULE_SETUP #line 819 "loader.l" { char *y = yval(); if (*y == '\0') LOG(llevError, "Title without value.\n"); else FREE_AND_COPY(op->title, y); } YY_BREAK case 31: YY_RULE_SETUP #line 828 "loader.l" { const char *name = yval(); op->face = find_face(yval(), NULL); if (op->face == NULL) LOG(llevError, "couldn't find face %s for %s\n", name, op->arch ? op->arch->name : op->name); } YY_BREAK case 32: YY_RULE_SETUP #line 834 "loader.l" op->stats.Str = IVAL; YY_BREAK case 33: YY_RULE_SETUP #line 835 "loader.l" op->stats.Dex = IVAL; YY_BREAK case 34: YY_RULE_SETUP #line 836 "loader.l" op->stats.Con = IVAL; YY_BREAK case 35: YY_RULE_SETUP #line 837 "loader.l" op->stats.Wis = IVAL; YY_BREAK case 36: YY_RULE_SETUP #line 838 "loader.l" op->stats.Cha = IVAL; YY_BREAK case 37: YY_RULE_SETUP #line 839 "loader.l" op->stats.Int = IVAL; YY_BREAK case 38: YY_RULE_SETUP #line 840 "loader.l" op->stats.Pow = IVAL; YY_BREAK case 39: YY_RULE_SETUP #line 841 "loader.l" op->stats.hp = IVAL; YY_BREAK case 40: YY_RULE_SETUP #line 842 "loader.l" op->stats.maxhp = IVAL; YY_BREAK case 41: YY_RULE_SETUP #line 843 "loader.l" op->stats.sp = IVAL; YY_BREAK case 42: YY_RULE_SETUP #line 844 "loader.l" op->stats.maxsp = IVAL; YY_BREAK case 43: YY_RULE_SETUP #line 845 "loader.l" op->stats.grace = IVAL; YY_BREAK case 44: YY_RULE_SETUP #line 846 "loader.l" op->stats.maxgrace = IVAL; YY_BREAK case 45: YY_RULE_SETUP #line 847 "loader.l" op->stats.exp = atoll(yval()); YY_BREAK case 46: YY_RULE_SETUP #line 848 "loader.l" op->total_exp = atoll(yval()); YY_BREAK case 47: YY_RULE_SETUP #line 849 "loader.l" op->total_exp = (atoll(yval()) * 100 / settings.permanent_exp_ratio); YY_BREAK case 48: YY_RULE_SETUP #line 850 "loader.l" op->stats.food = IVAL; YY_BREAK case 49: YY_RULE_SETUP #line 851 "loader.l" op->stats.dam = IVAL; YY_BREAK case 50: YY_RULE_SETUP #line 852 "loader.l" op->stats.wc = IVAL; YY_BREAK case 51: YY_RULE_SETUP #line 853 "loader.l" op->stats.ac = IVAL; YY_BREAK case 52: YY_RULE_SETUP #line 854 "loader.l" { op->x = IVAL; op->ox= op->x; } YY_BREAK case 53: YY_RULE_SETUP #line 855 "loader.l" { op->y = IVAL; op->oy= op->y; } YY_BREAK case 54: YY_RULE_SETUP #line 856 "loader.l" op->nrof= atol(yval()); YY_BREAK case 55: YY_RULE_SETUP #line 857 "loader.l" op->level = IVAL; YY_BREAK case 56: YY_RULE_SETUP #line 858 "loader.l" op->direction = IVAL; YY_BREAK case 57: YY_RULE_SETUP #line 859 "loader.l" op->type = IVAL; YY_BREAK case 58: YY_RULE_SETUP #line 860 "loader.l" op->subtype = IVAL; YY_BREAK case 59: YY_RULE_SETUP #line 861 "loader.l" op->material = IVAL; YY_BREAK case 60: YY_RULE_SETUP #line 862 "loader.l" { char *yv = yval(); if (*yv == '\0') LOG(llevError, "Materialname without val\n"); else FREE_AND_COPY(op->materialname, yv); } YY_BREAK case 61: YY_RULE_SETUP #line 871 "loader.l" op->value = IVAL; YY_BREAK case 62: YY_RULE_SETUP #line 872 "loader.l" { op->weight = atol(yval()); if (op->weight == 0) { SET_FLAG(op, FLAG_NO_PICK); } } YY_BREAK case 63: YY_RULE_SETUP #line 878 "loader.l" op->carrying = atol(yval()); YY_BREAK case 64: YY_RULE_SETUP #line 879 "loader.l" op->attacktype = IVAL; YY_BREAK case 65: YY_RULE_SETUP #line 880 "loader.l" op->path_attuned = IVAL; YY_BREAK case 66: YY_RULE_SETUP #line 881 "loader.l" op->path_repelled = IVAL; YY_BREAK case 67: YY_RULE_SETUP #line 882 "loader.l" op->path_denied = IVAL; YY_BREAK case 68: YY_RULE_SETUP #line 883 "loader.l" op->invisible = IVAL; YY_BREAK case 69: YY_RULE_SETUP #line 884 "loader.l" op->magic = IVAL; YY_BREAK case 70: YY_RULE_SETUP #line 885 "loader.l" op->state = IVAL; YY_BREAK case 71: YY_RULE_SETUP #line 886 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_ALIVE, IVAL); YY_BREAK case 72: YY_RULE_SETUP #line 887 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_APPLIED, IVAL); YY_BREAK case 73: YY_RULE_SETUP #line 888 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_UNPAID, IVAL); YY_BREAK case 74: YY_RULE_SETUP #line 889 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_ANIMATE, IVAL); YY_BREAK case 75: YY_RULE_SETUP #line 890 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_NO_PICK, IVAL); YY_BREAK case 76: YY_RULE_SETUP #line 891 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_CLIENT_ANIM_SYNC, IVAL); YY_BREAK case 77: YY_RULE_SETUP #line 892 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_CLIENT_ANIM_RANDOM, IVAL); YY_BREAK /* These are the new values */ case 78: YY_RULE_SETUP #line 896 "loader.l" set_move(&op->move_block, yval(), "block"); YY_BREAK case 79: YY_RULE_SETUP #line 897 "loader.l" set_move(&op->move_allow, yval(), "allow"); YY_BREAK case 80: YY_RULE_SETUP #line 898 "loader.l" set_move(&op->move_type, yval(), "type"); YY_BREAK case 81: YY_RULE_SETUP #line 899 "loader.l" set_move(&op->move_on, yval(), "on"); YY_BREAK case 82: YY_RULE_SETUP #line 900 "loader.l" set_move(&op->move_off, yval(), "off"); YY_BREAK case 83: YY_RULE_SETUP #line 901 "loader.l" set_move(&op->move_slow, yval(), "slow"); YY_BREAK case 84: YY_RULE_SETUP #line 902 "loader.l" op->move_slow_penalty = FVAL; YY_BREAK case 85: YY_RULE_SETUP #line 905 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_MONSTER, IVAL); YY_BREAK case 86: YY_RULE_SETUP #line 906 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_NEUTRAL, IVAL); YY_BREAK case 87: YY_RULE_SETUP #line 907 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_NO_ATTACK, IVAL); YY_BREAK case 88: YY_RULE_SETUP #line 908 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_NO_DAMAGE, IVAL); YY_BREAK case 89: YY_RULE_SETUP #line 909 "loader.l" { if (IVAL) { SET_FLAG(op, FLAG_FRIENDLY); if (op->type != PLAYER) { LOG(llevDebug, " Adding friendly object %s.\n", op->name); add_friendly_object(op); } } else CLEAR_FLAG(op, FLAG_FRIENDLY); } YY_BREAK case 90: YY_RULE_SETUP #line 920 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_GENERATOR, IVAL); YY_BREAK case 91: YY_RULE_SETUP #line 921 "loader.l" SET_OR_CLEAR_FLAG (op, FLAG_CONTENT_ON_GEN, IVAL); YY_BREAK case 92: YY_RULE_SETUP #line 922 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_IS_THROWN, IVAL); YY_BREAK case 93: YY_RULE_SETUP #line 923 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_AUTO_APPLY, IVAL); YY_BREAK case 94: YY_RULE_SETUP #line 924 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_TREASURE, IVAL); YY_BREAK case 95: YY_RULE_SETUP #line 925 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_SEE_INVISIBLE, IVAL); YY_BREAK case 96: YY_RULE_SETUP #line 926 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_CAN_ROLL, IVAL); YY_BREAK case 97: YY_RULE_SETUP #line 927 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_OVERLAY_FLOOR, IVAL); YY_BREAK case 98: YY_RULE_SETUP #line 928 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_IS_TURNABLE, IVAL); YY_BREAK case 99: YY_RULE_SETUP #line 929 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_IS_USED_UP, IVAL); YY_BREAK case 100: YY_RULE_SETUP #line 930 "loader.l" { if (IVAL) { SET_FLAG(op, FLAG_IDENTIFIED); CLEAR_FLAG(op, FLAG_KNOWN_MAGICAL); } else CLEAR_FLAG(op, FLAG_IDENTIFIED); } YY_BREAK case 101: YY_RULE_SETUP #line 938 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_REFLECTING, IVAL); YY_BREAK case 102: YY_RULE_SETUP #line 939 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_CHANGING, IVAL); YY_BREAK case 103: YY_RULE_SETUP #line 940 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_SPLITTING, IVAL); YY_BREAK case 104: YY_RULE_SETUP #line 941 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_HITBACK, IVAL); YY_BREAK case 105: YY_RULE_SETUP #line 942 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_STARTEQUIP, IVAL); YY_BREAK case 106: YY_RULE_SETUP #line 943 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_BLOCKSVIEW, IVAL); YY_BREAK case 107: YY_RULE_SETUP #line 944 "loader.l" { /* This field is used by Gridarta, so it's not an error. */ } YY_BREAK case 108: YY_RULE_SETUP #line 945 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_UNDEAD, IVAL); YY_BREAK case 109: YY_RULE_SETUP #line 946 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_SCARED, IVAL); YY_BREAK case 110: YY_RULE_SETUP #line 947 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_UNAGGRESSIVE, IVAL); YY_BREAK case 111: YY_RULE_SETUP #line 948 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_REFL_MISSILE, IVAL); YY_BREAK case 112: YY_RULE_SETUP #line 949 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_REFL_SPELL, IVAL); YY_BREAK case 113: YY_RULE_SETUP #line 950 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_NO_MAGIC, IVAL); YY_BREAK case 114: YY_RULE_SETUP #line 951 "loader.l" { if (IVAL) { SET_FLAG(op, FLAG_WIZ); SET_FLAG(op, FLAG_WAS_WIZ); SET_FLAG(op, FLAG_WIZPASS); SET_FLAG(op, FLAG_WIZCAST); } else { CLEAR_FLAG(op, FLAG_WIZ); CLEAR_FLAG(op, FLAG_WIZPASS); CLEAR_FLAG(op, FLAG_WIZCAST); } } YY_BREAK case 115: YY_RULE_SETUP #line 963 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_WAS_WIZ, IVAL); YY_BREAK case 116: YY_RULE_SETUP #line 964 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_NO_FIX_PLAYER, IVAL); YY_BREAK case 117: YY_RULE_SETUP #line 965 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_IS_LIGHTABLE, IVAL); YY_BREAK case 118: YY_RULE_SETUP #line 966 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_TEAR_DOWN, IVAL); YY_BREAK case 119: YY_RULE_SETUP #line 967 "loader.l" op->stats.luck = IVAL; YY_BREAK case 120: YY_RULE_SETUP #line 968 "loader.l" op->run_away = IVAL; YY_BREAK case 121: YY_RULE_SETUP #line 969 "loader.l" op->pick_up = IVAL; YY_BREAK case 122: YY_RULE_SETUP #line 970 "loader.l" op->item_power = IVAL; YY_BREAK case 123: YY_RULE_SETUP #line 971 "loader.l" op->gen_sp_armour = IVAL; YY_BREAK case 124: YY_RULE_SETUP #line 972 "loader.l" op->anim_speed = IVAL; YY_BREAK case 125: YY_RULE_SETUP #line 973 "loader.l" op->weight_limit = IVAL; YY_BREAK case 126: YY_RULE_SETUP #line 974 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_NO_DROP, IVAL); YY_BREAK case 127: YY_RULE_SETUP #line 975 "loader.l" op->will_apply = IVAL; YY_BREAK case 128: YY_RULE_SETUP #line 976 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_RANDOM_MOVE, IVAL); YY_BREAK case 129: YY_RULE_SETUP #line 977 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_USE_SHIELD, IVAL); YY_BREAK case 130: YY_RULE_SETUP #line 978 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_CAST_SPELL, IVAL); YY_BREAK case 131: YY_RULE_SETUP #line 979 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_USE_SCROLL, IVAL); YY_BREAK case 132: YY_RULE_SETUP #line 980 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_USE_RANGE, IVAL); YY_BREAK case 133: YY_RULE_SETUP #line 981 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_USE_BOW, IVAL); YY_BREAK case 134: YY_RULE_SETUP #line 982 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_USE_ARMOUR, IVAL); YY_BREAK case 135: YY_RULE_SETUP #line 983 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_USE_WEAPON, IVAL); YY_BREAK case 136: YY_RULE_SETUP #line 984 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_USE_RING, IVAL); YY_BREAK case 137: YY_RULE_SETUP #line 985 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_READY_BOW, IVAL); YY_BREAK case 138: YY_RULE_SETUP #line 986 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_XRAYS, IVAL); YY_BREAK case 139: YY_RULE_SETUP #line 987 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_IS_FLOOR, IVAL); YY_BREAK case 140: YY_RULE_SETUP #line 988 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_LIFESAVE, IVAL); YY_BREAK case 141: YY_RULE_SETUP #line 989 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_NO_STRENGTH, IVAL); YY_BREAK case 142: YY_RULE_SETUP #line 990 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_SLEEP, IVAL); YY_BREAK case 143: YY_RULE_SETUP #line 991 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_STAND_STILL, IVAL); YY_BREAK case 144: YY_RULE_SETUP #line 992 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_ONLY_ATTACK, IVAL); YY_BREAK case 145: YY_RULE_SETUP #line 994 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_ACTIVATE_ON_PUSH, IVAL); YY_BREAK case 146: YY_RULE_SETUP #line 995 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_ACTIVATE_ON_RELEASE, IVAL); YY_BREAK /* Start of various attacktypes */ case 147: YY_RULE_SETUP #line 998 "loader.l" SET_RESIST(op, ATNR_PHYSICAL, IVAL); YY_BREAK case 148: YY_RULE_SETUP #line 999 "loader.l" SET_RESIST(op, ATNR_MAGIC, IVAL); YY_BREAK case 149: YY_RULE_SETUP #line 1000 "loader.l" SET_RESIST(op, ATNR_FIRE, IVAL); YY_BREAK case 150: YY_RULE_SETUP #line 1001 "loader.l" SET_RESIST(op, ATNR_ELECTRICITY, IVAL); YY_BREAK case 151: YY_RULE_SETUP #line 1002 "loader.l" SET_RESIST(op, ATNR_COLD, IVAL); YY_BREAK case 152: YY_RULE_SETUP #line 1003 "loader.l" SET_RESIST(op, ATNR_CONFUSION, IVAL); YY_BREAK case 153: YY_RULE_SETUP #line 1004 "loader.l" SET_RESIST(op, ATNR_ACID, IVAL); YY_BREAK case 154: YY_RULE_SETUP #line 1005 "loader.l" SET_RESIST(op, ATNR_DRAIN, IVAL); YY_BREAK case 155: YY_RULE_SETUP #line 1006 "loader.l" SET_RESIST(op, ATNR_WEAPONMAGIC, IVAL); YY_BREAK case 156: YY_RULE_SETUP #line 1007 "loader.l" SET_RESIST(op, ATNR_GHOSTHIT, IVAL); YY_BREAK case 157: YY_RULE_SETUP #line 1008 "loader.l" SET_RESIST(op, ATNR_POISON, IVAL); YY_BREAK case 158: YY_RULE_SETUP #line 1009 "loader.l" SET_RESIST(op, ATNR_SLOW, IVAL); YY_BREAK case 159: YY_RULE_SETUP #line 1010 "loader.l" SET_RESIST(op, ATNR_PARALYZE, IVAL); YY_BREAK case 160: YY_RULE_SETUP #line 1011 "loader.l" SET_RESIST(op, ATNR_TURN_UNDEAD, IVAL); YY_BREAK case 161: YY_RULE_SETUP #line 1012 "loader.l" SET_RESIST(op, ATNR_FEAR, IVAL); YY_BREAK case 162: YY_RULE_SETUP #line 1013 "loader.l" SET_RESIST(op, ATNR_CANCELLATION, IVAL); YY_BREAK case 163: YY_RULE_SETUP #line 1014 "loader.l" SET_RESIST(op, ATNR_DEPLETE, IVAL); YY_BREAK case 164: YY_RULE_SETUP #line 1015 "loader.l" SET_RESIST(op, ATNR_DEATH, IVAL); YY_BREAK case 165: YY_RULE_SETUP #line 1016 "loader.l" SET_RESIST(op, ATNR_CHAOS, IVAL); YY_BREAK case 166: YY_RULE_SETUP #line 1017 "loader.l" SET_RESIST(op, ATNR_COUNTERSPELL, IVAL); YY_BREAK case 167: YY_RULE_SETUP #line 1018 "loader.l" SET_RESIST(op, ATNR_GODPOWER, IVAL); YY_BREAK case 168: YY_RULE_SETUP #line 1019 "loader.l" SET_RESIST(op, ATNR_HOLYWORD, IVAL); YY_BREAK case 169: YY_RULE_SETUP #line 1020 "loader.l" SET_RESIST(op, ATNR_BLIND, IVAL); YY_BREAK case 170: YY_RULE_SETUP #line 1021 "loader.l" SET_RESIST(op, ATNR_INTERNAL, IVAL); YY_BREAK case 171: YY_RULE_SETUP #line 1022 "loader.l" SET_RESIST(op, ATNR_LIFE_STEALING, IVAL); YY_BREAK case 172: YY_RULE_SETUP #line 1023 "loader.l" SET_RESIST(op, ATNR_DISEASE, IVAL); YY_BREAK case 173: YY_RULE_SETUP #line 1024 "loader.l" op->attack_movement = IVAL; YY_BREAK case 174: YY_RULE_SETUP #line 1025 "loader.l" op->move_status = IVAL; YY_BREAK case 175: YY_RULE_SETUP #line 1026 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_CONFUSED, IVAL); YY_BREAK case 176: YY_RULE_SETUP #line 1027 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_STEALTH, IVAL); YY_BREAK case 177: YY_RULE_SETUP #line 1028 "loader.l" add_button_link(op, op->map, IVAL); YY_BREAK case 178: YY_RULE_SETUP #line 1029 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_CURSED, IVAL); YY_BREAK case 179: YY_RULE_SETUP #line 1030 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_DAMNED, IVAL); YY_BREAK case 180: YY_RULE_SETUP #line 1031 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_BLESSED, IVAL); YY_BREAK case 181: YY_RULE_SETUP #line 1032 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_SEE_ANYWHERE, IVAL); YY_BREAK case 182: YY_RULE_SETUP #line 1033 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_KNOWN_MAGICAL, IVAL); YY_BREAK case 183: YY_RULE_SETUP #line 1034 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_KNOWN_CURSED, IVAL); YY_BREAK case 184: YY_RULE_SETUP #line 1035 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_KNOWN_BLESSED, IVAL); YY_BREAK case 185: YY_RULE_SETUP #line 1036 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_CAN_USE_SKILL, IVAL); YY_BREAK case 186: YY_RULE_SETUP #line 1037 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_BEEN_APPLIED, IVAL); YY_BREAK case 187: YY_RULE_SETUP #line 1038 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_READY_SCROLL, IVAL); YY_BREAK case 188: YY_RULE_SETUP #line 1039 "loader.l" op->expmul = FVAL; YY_BREAK case 189: YY_RULE_SETUP #line 1040 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_UNIQUE, IVAL); YY_BREAK case 190: YY_RULE_SETUP #line 1041 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_MAKE_INVIS, IVAL); YY_BREAK case 191: YY_RULE_SETUP #line 1042 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_INV_LOCKED, IVAL); YY_BREAK case 192: YY_RULE_SETUP #line 1043 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_IS_WOODED, IVAL); YY_BREAK case 193: YY_RULE_SETUP #line 1044 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_IS_HILLY, IVAL); YY_BREAK case 194: YY_RULE_SETUP #line 1045 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_IS_WATER, IVAL); YY_BREAK case 195: YY_RULE_SETUP #line 1046 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_READY_SKILL, IVAL); YY_BREAK case 196: YY_RULE_SETUP #line 1047 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_READY_WEAPON, IVAL); YY_BREAK case 197: YY_RULE_SETUP #line 1048 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_NO_SKILL_IDENT, IVAL); YY_BREAK case 198: YY_RULE_SETUP #line 1049 "loader.l" op->glow_radius = IVAL; YY_BREAK case 199: YY_RULE_SETUP #line 1050 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_BLIND, IVAL); YY_BREAK case 200: YY_RULE_SETUP #line 1051 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_SEE_IN_DARK, IVAL); YY_BREAK case 201: YY_RULE_SETUP #line 1052 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_IS_CAULDRON, IVAL); YY_BREAK case 202: YY_RULE_SETUP #line 1053 "loader.l" op->randomitems = find_treasurelist(yval()); YY_BREAK case 203: YY_RULE_SETUP #line 1054 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_NO_STEAL, IVAL); YY_BREAK case 204: YY_RULE_SETUP #line 1055 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_ONE_HIT, IVAL); YY_BREAK case 205: YY_RULE_SETUP #line 1056 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_BERSERK, IVAL); YY_BREAK case 206: YY_RULE_SETUP #line 1058 "loader.l" { /* Some archetypes have these values in them */ } YY_BREAK case 207: YY_RULE_SETUP #line 1059 "loader.l" { /* Probably the pupland archetypes - I imagined */ } YY_BREAK case 208: YY_RULE_SETUP #line 1060 "loader.l" { /* That these are for the new combat code */ } YY_BREAK case 209: YY_RULE_SETUP #line 1061 "loader.l" { /* just ignore for now */ } YY_BREAK case 210: YY_RULE_SETUP #line 1062 "loader.l" { } YY_BREAK case 211: YY_RULE_SETUP #line 1063 "loader.l" op->weapontype = IVAL; YY_BREAK case 212: YY_RULE_SETUP #line 1064 "loader.l" op->casting_time = FVAL; YY_BREAK case 213: YY_RULE_SETUP #line 1065 "loader.l" op->smoothlevel = IVAL; YY_BREAK case 214: YY_RULE_SETUP #line 1066 "loader.l" { if (IVAL) op->map_layer = IVAL; else { int i; char *cp = yval(); for (i = 0; i < MAP_LAYERS; i++) { if (!strcasecmp(cp, map_layer_name[i])) { op->map_layer = i; break; } } if (i == MAP_LAYERS) { LOG(llevError, "Invalid map_layer name found: %s\n", cp); } } } YY_BREAK case 215: YY_RULE_SETUP #line 1084 "loader.l" op->client_type = IVAL; YY_BREAK case 216: YY_RULE_SETUP #line 1085 "loader.l" set_body_info(op, yytext); YY_BREAK case 217: YY_RULE_SETUP #line 1086 "loader.l" op->duration = IVAL; YY_BREAK case 218: YY_RULE_SETUP #line 1087 "loader.l" op->range = IVAL; YY_BREAK case 219: YY_RULE_SETUP #line 1088 "loader.l" op->range_modifier = IVAL; YY_BREAK case 220: YY_RULE_SETUP #line 1089 "loader.l" op->dam_modifier = IVAL; YY_BREAK case 221: YY_RULE_SETUP #line 1090 "loader.l" op->duration_modifier = IVAL; YY_BREAK case 222: YY_RULE_SETUP #line 1091 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_IS_BUILDABLE, IVAL); YY_BREAK case 223: YY_RULE_SETUP #line 1092 "loader.l" op->sound_chance = IVAL; YY_BREAK case 224: YY_RULE_SETUP #line 1093 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_PARALYZED, IVAL); YY_BREAK case 225: /* rule 225 can match eol */ YY_RULE_SETUP #line 1095 "loader.l" { /* ignore empty lines, newlines we don't do above */ } YY_BREAK case 226: /* rule 226 can match eol */ YY_RULE_SETUP #line 1096 "loader.l" { } YY_BREAK case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(MESSAGE): case YY_STATE_EOF(LORE): case YY_STATE_EOF(SCRIPT): #line 1098 "loader.l" { /* If we got an error, return the error. Otherwise, return that we got EOF */ if (lex_error != 0) return lex_error; else return LL_EOF; } YY_BREAK case 227: YY_RULE_SETUP #line 1104 "loader.l" { add_key_value(op); } YY_BREAK case 228: YY_RULE_SETUP #line 1105 "loader.l" ECHO; YY_BREAK #line 4353 "loader.c" case YY_END_OF_BUFFER: { /* Amount of text matched not including the EOB char. */ int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; /* Undo the effects of YY_DO_BEFORE_ACTION. */ *yy_cp = (yy_hold_char); YY_RESTORE_YY_MORE_OFFSET if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) { /* We're scanning a new file or input source. It's * possible that this happened because the user * just pointed yyin at a new source and called * yylex(). If so, then we have to assure * consistency between YY_CURRENT_BUFFER and our * globals. Here is the right place to do so, because * this is the first action (other than possibly a * back-up) that will match for the new input source. */ (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; } /* Note that here we test for yy_c_buf_p "<=" to the position * of the first EOB in the buffer, since yy_c_buf_p will * already have been incremented past the NUL character * (since all states make transitions on EOB to the * end-of-buffer state). Contrast this with the test * in input(). */ if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) { /* This was really a NUL. */ yy_state_type yy_next_state; (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state( ); /* Okay, we're now positioned to make the NUL * transition. We couldn't have * yy_get_previous_state() go ahead and do it * for us because it doesn't know how to deal * with the possibility of jamming (and we don't * want to build jamming into it because then it * will run more slowly). */ yy_next_state = yy_try_NUL_trans( yy_current_state ); yy_bp = (yytext_ptr) + YY_MORE_ADJ; if ( yy_next_state ) { /* Consume the NUL. */ yy_cp = ++(yy_c_buf_p); yy_current_state = yy_next_state; goto yy_match; } else { yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); goto yy_find_action; } } else switch ( yy_get_next_buffer( ) ) { case EOB_ACT_END_OF_FILE: { (yy_did_buffer_switch_on_eof) = 0; if ( yywrap( ) ) { /* Note: because we've taken care in * yy_get_next_buffer() to have set up * yytext, we can now set up * yy_c_buf_p so that if some total * hoser (like flex itself) wants to * call the scanner after we return the * YY_NULL, it'll still work - another * YY_NULL will get returned. */ (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; yy_act = YY_STATE_EOF(YY_START); goto do_action; } else { if ( ! (yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; } break; } case EOB_ACT_CONTINUE_SCAN: (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state( ); yy_cp = (yy_c_buf_p); yy_bp = (yytext_ptr) + YY_MORE_ADJ; goto yy_match; case EOB_ACT_LAST_MATCH: (yy_c_buf_p) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; yy_current_state = yy_get_previous_state( ); yy_cp = (yy_c_buf_p); yy_bp = (yytext_ptr) + YY_MORE_ADJ; goto yy_find_action; } break; } default: YY_FATAL_ERROR( "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ } /* end of yylex */ /* yy_get_next_buffer - try to read in a new buffer * * Returns a code representing an action: * EOB_ACT_LAST_MATCH - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position * EOB_ACT_END_OF_FILE - end of file */ static int yy_get_next_buffer (void) { 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 { yy_size_t 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 ) { yy_size_t new_size = b->yy_buf_size * 2; if ( new_size <= 0 ) b->yy_buf_size += b->yy_buf_size / 8; else b->yy_buf_size *= 2; b->yy_ch_buf = (char *) /* Include room in for 2 EOB chars. */ yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); } else /* Can't grow it, we don't own it. */ b->yy_ch_buf = 0; if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" ); (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; } if ( num_to_read > YY_READ_BUF_SIZE ) num_to_read = YY_READ_BUF_SIZE; /* Read in more data. */ YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), (yy_n_chars), num_to_read ); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } if ( (yy_n_chars) == 0 ) { if ( number_to_move == YY_MORE_ADJ ) { ret_val = EOB_ACT_END_OF_FILE; yyrestart(yyin ); } else { ret_val = EOB_ACT_LAST_MATCH; YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_EOF_PENDING; } } else ret_val = EOB_ACT_CONTINUE_SCAN; if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { /* Extend the array by 50%, plus the number we really need. */ yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,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); yy_current_state += YY_AT_BOL(); 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 >= 2072 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; } return yy_current_state; } /* yy_try_NUL_trans - try to make a transition on the NUL character * * synopsis * next_state = yy_try_NUL_trans( current_state ); */ static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) { 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 >= 2072 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; yy_is_jam = (yy_current_state == 2071); return yy_is_jam ? 0 : yy_current_state; } #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput (void) #else static int input (void) #endif { int c; *(yy_c_buf_p) = (yy_hold_char); if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) { /* yy_c_buf_p now points to the character we want to return. * If this occurs *before* the EOB characters, then it's a * valid NUL; if not, then we've hit the end of the buffer. */ if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) /* This was really a NUL. */ *(yy_c_buf_p) = '\0'; else { /* need more input */ yy_size_t offset = (yy_c_buf_p) - (yytext_ptr); ++(yy_c_buf_p); switch ( yy_get_next_buffer( ) ) { case EOB_ACT_LAST_MATCH: /* This happens because yy_g_n_b() * sees that we've accumulated a * token and flags that we need to * try matching the token before * proceeding. But for input(), * there's no matching to consider. * So convert the EOB_ACT_LAST_MATCH * to EOB_ACT_END_OF_FILE. */ /* Reset buffer status. */ yyrestart(yyin ); /*FALLTHROUGH*/ case EOB_ACT_END_OF_FILE: { if ( yywrap( ) ) return EOF; if ( ! (yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; #ifdef __cplusplus return yyinput(); #else return input(); #endif } case EOB_ACT_CONTINUE_SCAN: (yy_c_buf_p) = (yytext_ptr) + offset; break; } } } c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ *(yy_c_buf_p) = '\0'; /* preserve yytext */ (yy_hold_char) = *++(yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n'); return c; } #endif /* ifndef YY_NO_INPUT */ /** Immediately switch to a different input stream. * @param input_file A readable stream. * * @note This function does not reset the start condition to @c INITIAL . */ void yyrestart (FILE * input_file ) { if ( ! YY_CURRENT_BUFFER ){ yyensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin,YY_BUF_SIZE ); } yy_init_buffer(YY_CURRENT_BUFFER,input_file ); yy_load_buffer_state( ); } /** Switch to a different input buffer. * @param new_buffer The new input buffer. * */ void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) { /* TODO. We should be able to replace this entire function body * with * yypop_buffer_state(); * yypush_buffer_state(new_buffer); */ yyensure_buffer_stack (); if ( YY_CURRENT_BUFFER == new_buffer ) return; if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ *(yy_c_buf_p) = (yy_hold_char); YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } YY_CURRENT_BUFFER_LVALUE = new_buffer; yy_load_buffer_state( ); /* We don't actually know whether we did this switch during * EOF (yywrap()) processing, but the only time this flag * is looked at is after yywrap() is called, so it's safe * to go ahead and always set it. */ (yy_did_buffer_switch_on_eof) = 1; } static void yy_load_buffer_state (void) { (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; (yy_hold_char) = *(yy_c_buf_p); } /** Allocate and initialize an input buffer state. * @param file A readable stream. * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. * * @return the allocated buffer state. */ YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) { YY_BUFFER_STATE b; b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_buf_size = size; /* yy_ch_buf has to be 2 characters longer than the size given because * we need to put in 2 end-of-buffer characters. */ b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ); if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_is_our_buffer = 1; yy_init_buffer(b,file ); return b; } /** Destroy the buffer. * @param b a buffer created with yy_create_buffer() * */ void yy_delete_buffer (YY_BUFFER_STATE b ) { if ( ! b ) return; if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; if ( b->yy_is_our_buffer ) yyfree((void *) b->yy_ch_buf ); yyfree((void *) b ); } /* Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, * such as during a yyrestart() or at EOF. */ static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) { int oerrno = errno; yy_flush_buffer(b ); b->yy_input_file = file; b->yy_fill_buffer = 1; /* If b is the current buffer, then yy_init_buffer was _probably_ * called from yyrestart() or through yy_get_next_buffer. * In that case, we don't want to reset the lineno or column. */ if (b != YY_CURRENT_BUFFER){ b->yy_bs_lineno = 1; b->yy_bs_column = 0; } b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; errno = oerrno; } /** Discard all buffered characters. On the next scan, YY_INPUT will be called. * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. * */ void yy_flush_buffer (YY_BUFFER_STATE b ) { if ( ! b ) return; b->yy_n_chars = 0; /* We always need two end-of-buffer characters. The first causes * a transition to the end-of-buffer state. The second causes * a jam in that state. */ b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; b->yy_buf_pos = &b->yy_ch_buf[0]; b->yy_at_bol = 1; b->yy_buffer_status = YY_BUFFER_NEW; if ( b == YY_CURRENT_BUFFER ) yy_load_buffer_state( ); } /** Pushes the new state onto the stack. The new state becomes * the current state. This function will allocate the stack * if necessary. * @param new_buffer The new state. * */ void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) { if (new_buffer == NULL) return; yyensure_buffer_stack(); /* This block is copied from yy_switch_to_buffer. */ if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ *(yy_c_buf_p) = (yy_hold_char); YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } /* Only push if top exists. Otherwise, replace top. */ if (YY_CURRENT_BUFFER) (yy_buffer_stack_top)++; YY_CURRENT_BUFFER_LVALUE = new_buffer; /* copied from yy_switch_to_buffer. */ yy_load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } /** Removes and deletes the top of the stack, if present. * The next element becomes the new top. * */ void yypop_buffer_state (void) { if (!YY_CURRENT_BUFFER) return; yy_delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; if ((yy_buffer_stack_top) > 0) --(yy_buffer_stack_top); if (YY_CURRENT_BUFFER) { yy_load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } } /* Allocates the stack if it does not exist. * Guarantees space for at least one push. */ static void yyensure_buffer_stack (void) { yy_size_t num_to_alloc; if (!(yy_buffer_stack)) { /* First allocation is just for 2 elements, since we don't know if this * scanner will even need a stack. We use 2 instead of 1 to avoid an * immediate realloc on the next call. */ num_to_alloc = 1; (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc (num_to_alloc * sizeof(struct yy_buffer_state*) ); if ( ! (yy_buffer_stack) ) YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); (yy_buffer_stack_max) = num_to_alloc; (yy_buffer_stack_top) = 0; return; } if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ /* Increase the buffer to prepare for a possible push. */ int grow_size = 8 /* arbitrary grow size */; num_to_alloc = (yy_buffer_stack_max) + grow_size; (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc ((yy_buffer_stack), num_to_alloc * sizeof(struct yy_buffer_state*) ); if ( ! (yy_buffer_stack) ) YY_FATAL_ERROR( "out of dynamic memory in 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 yy_scan_buffer (char * base, yy_size_t size ) { YY_BUFFER_STATE b; if ( size < 2 || base[size-2] != YY_END_OF_BUFFER_CHAR || base[size-1] != YY_END_OF_BUFFER_CHAR ) /* They forgot to leave room for the EOB's. */ return 0; b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ b->yy_buf_pos = b->yy_ch_buf = base; b->yy_is_our_buffer = 0; b->yy_input_file = 0; b->yy_n_chars = b->yy_buf_size; b->yy_is_interactive = 0; b->yy_at_bol = 1; b->yy_fill_buffer = 0; b->yy_buffer_status = YY_BUFFER_NEW; yy_switch_to_buffer(b ); return b; } /** Setup the input buffer state to scan a string. The next call to yylex() will * scan from a @e copy of @a str. * @param yystr a NUL-terminated string to scan * * @return the newly allocated buffer state object. * @note If you want to scan bytes that may contain NUL values, then use * yy_scan_bytes() instead. */ YY_BUFFER_STATE yy_scan_string (yyconst char * yystr ) { return yy_scan_bytes(yystr,strlen(yystr) ); } /** Setup the input buffer state to scan the given bytes. The next call to yylex() will * scan from a @e copy of @a bytes. * @param yybytes the byte buffer to scan * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. * * @return the newly allocated buffer state object. */ YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len ) { YY_BUFFER_STATE b; char *buf; yy_size_t n; yy_size_t i; /* Get memory for full buffer, including space for trailing EOB's. */ n = _yybytes_len + 2; buf = (char *) yyalloc(n ); if ( ! buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); for ( i = 0; i < _yybytes_len; ++i ) buf[i] = yybytes[i]; buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; b = yy_scan_buffer(buf,n ); if ( ! b ) YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); /* It's okay to grow etc. this buffer, and we should throw it * away when we're done. */ b->yy_is_our_buffer = 1; return b; } static void yy_push_state (int new_state ) { if ( (yy_start_stack_ptr) >= (yy_start_stack_depth) ) { yy_size_t new_size; (yy_start_stack_depth) += YY_START_STACK_INCR; new_size = (yy_start_stack_depth) * sizeof( int ); if ( ! (yy_start_stack) ) (yy_start_stack) = (int *) yyalloc(new_size ); else (yy_start_stack) = (int *) yyrealloc((void *) (yy_start_stack),new_size ); if ( ! (yy_start_stack) ) YY_FATAL_ERROR( "out of memory expanding start-condition stack" ); } (yy_start_stack)[(yy_start_stack_ptr)++] = YY_START; BEGIN(new_state); } static void yy_pop_state (void) { if ( --(yy_start_stack_ptr) < 0 ) YY_FATAL_ERROR( "start-condition stack underflow" ); BEGIN((yy_start_stack)[(yy_start_stack_ptr)]); } #ifndef YY_EXIT_FAILURE #define YY_EXIT_FAILURE 2 #endif static void yy_fatal_error (yyconst char* msg ) { (void) fprintf( stderr, "%s\n", msg ); exit( YY_EXIT_FAILURE ); } /* Redefine yyless() so it works in section 3 code. */ #undef yyless #define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ yytext[yyleng] = (yy_hold_char); \ (yy_c_buf_p) = yytext + yyless_macro_arg; \ (yy_hold_char) = *(yy_c_buf_p); \ *(yy_c_buf_p) = '\0'; \ yyleng = yyless_macro_arg; \ } \ while ( 0 ) /* Accessor methods (get/set functions) to struct members. */ /** Get the current line number. * */ int yyget_lineno (void) { return yylineno; } /** Get the input stream. * */ FILE *yyget_in (void) { return yyin; } /** Get the output stream. * */ FILE *yyget_out (void) { return yyout; } /** Get the length of the current token. * */ yy_size_t yyget_leng (void) { return yyleng; } /** Get the current token. * */ char *yyget_text (void) { return yytext; } /** Set the current line number. * @param line_number * */ void yyset_lineno (int line_number ) { yylineno = line_number; } /** Set the input stream. This does not discard the current * input buffer. * @param in_str A readable stream. * * @see yy_switch_to_buffer */ void yyset_in (FILE * in_str ) { yyin = in_str ; } void yyset_out (FILE * out_str ) { yyout = out_str ; } int yyget_debug (void) { return yy_flex_debug; } void yyset_debug (int bdebug ) { yy_flex_debug = bdebug ; } static int yy_init_globals (void) { /* Initialization is the same as for the non-reentrant scanner. * This function is called from yylex_destroy(), so don't allocate here. */ (yy_buffer_stack) = 0; (yy_buffer_stack_top) = 0; (yy_buffer_stack_max) = 0; (yy_c_buf_p) = (char *) 0; (yy_init) = 0; (yy_start) = 0; (yy_start_stack_ptr) = 0; (yy_start_stack_depth) = 0; (yy_start_stack) = NULL; /* Defined in main.c */ #ifdef YY_STDINIT yyin = stdin; yyout = stdout; #else yyin = (FILE *) 0; yyout = (FILE *) 0; #endif /* For future reference: Set errno on error, since we are called by * yylex_init() */ return 0; } /* yylex_destroy is for both reentrant and non-reentrant scanners. */ int yylex_destroy (void) { /* Pop the buffer stack, destroying each element. */ while(YY_CURRENT_BUFFER){ yy_delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; yypop_buffer_state(); } /* Destroy the stack itself. */ yyfree((yy_buffer_stack) ); (yy_buffer_stack) = NULL; /* Destroy the start condition stack. */ yyfree((yy_start_stack) ); (yy_start_stack) = NULL; /* Reset the globals. This is important in a non-reentrant scanner so the next time * yylex() is called, initialization will occur. */ yy_init_globals( ); return 0; } /* * Internal utility routines. */ #ifndef yytext_ptr static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) { 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 *yyalloc (yy_size_t size ) { return (void *) malloc( size ); } void *yyrealloc (void * ptr, yy_size_t size ) { /* The cast to (char *) in the following accommodates both * implementations that use char* generic pointers, and those * that use void* generic pointers. It works with the latter * because both ANSI C and C++ allow castless assignment from * any pointer type to void*, and deal with argument conversions * as though doing an assignment. */ return (void *) realloc( (char *) ptr, size ); } void yyfree (void * ptr ) { free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ } #define YYTABLES_NAME "yytables" #line 1105 "loader.l" /** * Returns the next token for lex. * Our save file syntax is very simple, so we can use a very simple * processing mechanism here instead using something like bison * This skips over the space and returns the value, or "" if no value * is found. Modified 4/26/2000 to also strip spaces at end of * line */ static char *yval(void) { static char em[] = ""; char *cp, *end; /* First skip over start of line, like animation or name */ for (cp = yytext; *cp != ' '; cp++) { if (*cp == '\0') { return em; } } /* Skip over whitespace */ for (; *cp == ' '; cp++) { if (*cp == '\0') { return em; } } /* Got last character before null and strip * off tailing whitespace */ for (end = cp+strlen(cp)-1; *end == ' '; end--) { if (end == cp) return em; *end = '\0'; } return cp; } /** * Loads an object from the given file-pointer. * Variables will be read and parsed and patched into the object * until the string "end" is reached, or the end of the file. * * @param fp * file pointer from which to read. * @param op * where to read the data. * @param bufstate * used to determine various file attributes: * @li LO_REPATE (0): We are reading from the same buffer as the last call. * @li LO_LINEMODE (1): file that is being read from is multi purpose (ie, other functions * will also be reading from this (treasure file, artifacts.) * @li LO_NEWFILE (2): This is the first read from a particular file, so the buffers should be reset. * @li LO_NOREAD (3): Reset the buffers, but don't read from it. (op can be null) * @param map_flags * combination of @ref MAP_xxx flags, though only MAP_STYLE is used. * @return * @li LL_NORMAL if object was read. * @li LL_EOF if an error occured. * @li LL_MORE if this is a multipart object. */ int load_object(FILE *fp, object *op, int bufstate, int map_flags) { int retval; char inbuf[VERY_BIG_BUF]; #define MAXDEPTH 10 object *items[MAXDEPTH]; int depth = 0; items[0] = op, strcpy(msgbuf, ""); msglen = 0; total_msglen = 0; strcpy(lorebuf, ""); if (bufstate == LO_NEWFILE || bufstate == LO_NOREAD) { /* LOG(llevDebug, "Switching lex buffers\n");*/ yy_delete_buffer(YY_CURRENT_BUFFER); yy_switch_to_buffer(yy_create_buffer(fp,YY_BUF_SIZE)); if (bufstate == LO_NOREAD) return LL_NORMAL; } else if (bufstate == LO_LINEMODE) { YY_BUFFER_STATE yybufstate; yy_delete_buffer(YY_CURRENT_BUFFER); while (fgets(inbuf, VERY_BIG_BUF-3, fp)) { yybufstate = yy_scan_string(inbuf); retval = lex_load(&depth, items, MAXDEPTH, map_flags, 1); yy_delete_buffer(yybufstate); if (retval == LL_NORMAL) { if (depth == 0) return retval; else depth--; } } LOG(llevDebug, "Got eof while scanning strings\n"); return LL_EOF; } retval = lex_load(&depth, items, MAXDEPTH, map_flags, 0); /* LOG(llevDebug, " load completed, object=%s\n", op->name);*/ return retval; } /** * This takes a buffer, scans it for variables, and sets those variables * as appropriate in op. * * This function appears to be used in only 2 places - in crossedit to * override values and in c_wiz to mutate values. * * @param op * object to alter. * @param buf * modifications to apply. * @return * ? * @todo * document return value. */ int set_variable(object *op, const char *buf) { YY_BUFFER_STATE yybufstate, yycurbuf = YY_CURRENT_BUFFER; int retval, depth; object *items[MAXDEPTH]; strcpy(msgbuf, ""); msglen = 0; total_msglen = 0; strcpy(lorebuf, ""); items[0] = op; depth = 0; yy_push_state(INITIAL); yybufstate = yy_scan_string(buf); retval = lex_load(&depth, items, MAXDEPTH, 0, 0); yy_switch_to_buffer(yycurbuf); yy_delete_buffer(yybufstate); yy_pop_state(); return retval; } /* Start of C code */ /** * Frees all memory allocated by the loader. */ void free_loader(void) { yy_delete_buffer(YY_CURRENT_BUFFER); /* Comment out this yylex_destroy(), as it results in link errors * on linux */ /* yylex_destroy();*/ }