X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2Ftokenizer.yy.c;h=c693c04133310784b799108c376ea628a7de1927;hb=3dea7306ae2c9590673c10dec1fbabcd6d7e1806;hp=3e02c8eeca1fd7dfc7e4af115764ecdb6557b628;hpb=1adc9bdd04d6c40fadf2211a4af8c281b46ca5ec;p=swftools.git diff --git a/lib/as3/tokenizer.yy.c b/lib/as3/tokenizer.yy.c index 3e02c8e..c693c04 100644 --- a/lib/as3/tokenizer.yy.c +++ b/lib/as3/tokenizer.yy.c @@ -6,24 +6,24 @@ /* A lexical scanner generated by flex */ -#define yy_create_buffer avm2__create_buffer -#define yy_delete_buffer avm2__delete_buffer -#define yy_flex_debug avm2__flex_debug -#define yy_init_buffer avm2__init_buffer -#define yy_flush_buffer avm2__flush_buffer -#define yy_load_buffer_state avm2__load_buffer_state -#define yy_switch_to_buffer avm2__switch_to_buffer -#define yyin avm2_in -#define yyleng avm2_leng -#define yylex avm2_lex -#define yylineno avm2_lineno -#define yyout avm2_out -#define yyrestart avm2_restart -#define yytext avm2_text -#define yywrap avm2_wrap -#define yyalloc avm2_alloc -#define yyrealloc avm2_realloc -#define yyfree avm2_free +#define yy_create_buffer as3__create_buffer +#define yy_delete_buffer as3__delete_buffer +#define yy_flex_debug as3__flex_debug +#define yy_init_buffer as3__init_buffer +#define yy_flush_buffer as3__flush_buffer +#define yy_load_buffer_state as3__load_buffer_state +#define yy_switch_to_buffer as3__switch_to_buffer +#define yyin as3_in +#define yyleng as3_leng +#define yylex as3_lex +#define yylineno as3_lineno +#define yyout as3_out +#define yyrestart as3_restart +#define yytext as3_text +#define yywrap as3_wrap +#define yyalloc as3_alloc +#define yyrealloc as3_realloc +#define yyfree as3_free #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 @@ -154,7 +154,7 @@ typedef unsigned int flex_uint32_t; #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) /* Special action meaning "start processing a new file". */ -#define YY_NEW_FILE avm2_restart(avm2_in ) +#define YY_NEW_FILE as3_restart(as3_in ) #define YY_END_OF_BUFFER_CHAR 0 @@ -172,9 +172,9 @@ typedef unsigned int flex_uint32_t; typedef struct yy_buffer_state *YY_BUFFER_STATE; #endif -extern int avm2_leng; +extern int as3_leng; -extern FILE *avm2_in, *avm2_out; +extern FILE *as3_in, *as3_out; #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 @@ -186,13 +186,13 @@ extern FILE *avm2_in, *avm2_out; #define yyless(n) \ do \ { \ - /* Undo effects of setting up avm2_text. */ \ + /* Undo effects of setting up as3_text. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ *yy_cp = (yy_hold_char); \ YY_RESTORE_YY_MORE_OFFSET \ (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ - YY_DO_BEFORE_ACTION; /* set up avm2_text again */ \ + YY_DO_BEFORE_ACTION; /* set up as3_text again */ \ } \ while ( 0 ) @@ -260,8 +260,8 @@ struct yy_buffer_state * possible backing-up. * * When we actually see the EOF, we change the status to "new" - * (via avm2_restart()), so that the user can continue scanning by - * just pointing avm2_in at a new input file. + * (via as3_restart()), so that the user can continue scanning by + * just pointing as3_in at a new input file. */ #define YY_BUFFER_EOF_PENDING 2 @@ -288,51 +288,51 @@ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ */ #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] -/* yy_hold_char holds the character lost when avm2_text is formed. */ +/* yy_hold_char holds the character lost when as3_text is formed. */ static char yy_hold_char; static int yy_n_chars; /* number of characters read into yy_ch_buf */ -int avm2_leng; +int as3_leng; /* Points to current character in buffer. */ static char *yy_c_buf_p = (char *) 0; static int yy_init = 0; /* whether we need to initialize */ static int yy_start = 0; /* start state number */ -/* Flag which is used to allow avm2_wrap()'s to do buffer switches - * instead of setting up a fresh avm2_in. A bit of a hack ... +/* Flag which is used to allow as3_wrap()'s to do buffer switches + * instead of setting up a fresh as3_in. A bit of a hack ... */ static int yy_did_buffer_switch_on_eof; -void avm2_restart (FILE *input_file ); -void avm2__switch_to_buffer (YY_BUFFER_STATE new_buffer ); -YY_BUFFER_STATE avm2__create_buffer (FILE *file,int size ); -void avm2__delete_buffer (YY_BUFFER_STATE b ); -void avm2__flush_buffer (YY_BUFFER_STATE b ); -void avm2_push_buffer_state (YY_BUFFER_STATE new_buffer ); -void avm2_pop_buffer_state (void ); +void as3_restart (FILE *input_file ); +void as3__switch_to_buffer (YY_BUFFER_STATE new_buffer ); +YY_BUFFER_STATE as3__create_buffer (FILE *file,int size ); +void as3__delete_buffer (YY_BUFFER_STATE b ); +void as3__flush_buffer (YY_BUFFER_STATE b ); +void as3_push_buffer_state (YY_BUFFER_STATE new_buffer ); +void as3_pop_buffer_state (void ); -static void avm2_ensure_buffer_stack (void ); -static void avm2__load_buffer_state (void ); -static void avm2__init_buffer (YY_BUFFER_STATE b,FILE *file ); +static void as3_ensure_buffer_stack (void ); +static void as3__load_buffer_state (void ); +static void as3__init_buffer (YY_BUFFER_STATE b,FILE *file ); -#define YY_FLUSH_BUFFER avm2__flush_buffer(YY_CURRENT_BUFFER ) +#define YY_FLUSH_BUFFER as3__flush_buffer(YY_CURRENT_BUFFER ) -YY_BUFFER_STATE avm2__scan_buffer (char *base,yy_size_t size ); -YY_BUFFER_STATE avm2__scan_string (yyconst char *yy_str ); -YY_BUFFER_STATE avm2__scan_bytes (yyconst char *bytes,int len ); +YY_BUFFER_STATE as3__scan_buffer (char *base,yy_size_t size ); +YY_BUFFER_STATE as3__scan_string (yyconst char *yy_str ); +YY_BUFFER_STATE as3__scan_bytes (yyconst char *bytes,int len ); -void *avm2_alloc (yy_size_t ); -void *avm2_realloc (void *,yy_size_t ); -void avm2_free (void * ); +void *as3_alloc (yy_size_t ); +void *as3_realloc (void *,yy_size_t ); +void as3_free (void * ); -#define yy_new_buffer avm2__create_buffer +#define yy_new_buffer as3__create_buffer #define yy_set_interactive(is_interactive) \ { \ if ( ! YY_CURRENT_BUFFER ){ \ - avm2_ensure_buffer_stack (); \ + as3_ensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ - avm2__create_buffer(avm2_in,YY_BUF_SIZE ); \ + as3__create_buffer(as3_in,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ } @@ -340,9 +340,9 @@ void avm2_free (void * ); #define yy_set_bol(at_bol) \ { \ if ( ! YY_CURRENT_BUFFER ){\ - avm2_ensure_buffer_stack (); \ + as3_ensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ - avm2__create_buffer(avm2_in,YY_BUF_SIZE ); \ + as3__create_buffer(as3_in,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ } @@ -353,16 +353,16 @@ void avm2_free (void * ); typedef unsigned char YY_CHAR; -FILE *avm2_in = (FILE *) 0, *avm2_out = (FILE *) 0; +FILE *as3_in = (FILE *) 0, *as3_out = (FILE *) 0; typedef int yy_state_type; -extern int avm2_lineno; +extern int as3_lineno; -int avm2_lineno = 1; +int as3_lineno = 1; -extern char *avm2_text; -#define yytext_ptr avm2_text +extern char *as3_text; +#define yytext_ptr as3_text static yy_state_type yy_get_previous_state (void ); static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); @@ -370,17 +370,17 @@ static int yy_get_next_buffer (void ); static void yy_fatal_error (yyconst char msg[] ); /* Done after the current pattern has been matched and before the - * corresponding action - sets up avm2_text. + * corresponding action - sets up as3_text. */ #define YY_DO_BEFORE_ACTION \ (yytext_ptr) = yy_bp; \ - avm2_leng = (size_t) (yy_cp - yy_bp); \ + as3_leng = (size_t) (yy_cp - yy_bp); \ (yy_hold_char) = *yy_cp; \ *yy_cp = '\0'; \ (yy_c_buf_p) = yy_cp; -#define YY_NUM_RULES 106 -#define YY_END_OF_BUFFER 107 +#define YY_NUM_RULES 113 +#define YY_END_OF_BUFFER 114 /* This struct is not used in this scanner, but its presence is necessary. */ struct yy_trans_info @@ -388,726 +388,907 @@ struct yy_trans_info flex_int32_t yy_verify; flex_int32_t yy_nxt; }; -static yyconst flex_int16_t yy_accept[468] = +static yyconst flex_int16_t yy_accept[516] = { 0, - 0, 0, 0, 0, 0, 0, 107, 105, 13, 13, - 103, 105, 103, 103, 103, 105, 104, 103, 103, 103, - 51, 103, 16, 16, 16, 53, 103, 103, 103, 102, - 103, 102, 102, 102, 102, 102, 102, 102, 102, 102, - 102, 102, 102, 102, 102, 102, 102, 102, 103, 105, - 102, 103, 103, 51, 103, 10, 10, 10, 29, 0, - 6, 0, 40, 27, 0, 0, 41, 36, 37, 35, - 38, 50, 17, 3, 0, 39, 17, 16, 0, 0, - 52, 46, 34, 32, 33, 48, 0, 102, 0, 101, - 102, 102, 102, 102, 102, 24, 102, 102, 102, 102, - - 102, 102, 102, 102, 102, 100, 102, 99, 98, 102, - 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, - 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, - 42, 28, 0, 99, 0, 10, 10, 11, 0, 3, - 7, 39, 0, 11, 10, 0, 30, 49, 0, 0, - 0, 0, 0, 1, 17, 15, 14, 0, 44, 31, - 43, 47, 0, 0, 0, 0, 0, 102, 102, 102, - 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, - 23, 102, 94, 102, 102, 102, 102, 102, 93, 102, - 102, 102, 102, 102, 102, 102, 95, 102, 102, 102, - - 102, 102, 97, 102, 102, 92, 96, 102, 102, 102, - 12, 102, 11, 11, 0, 7, 0, 0, 0, 7, - 0, 7, 7, 11, 9, 8, 0, 0, 0, 2, - 0, 15, 0, 45, 0, 0, 0, 0, 102, 90, - 102, 102, 102, 102, 102, 102, 102, 85, 89, 102, - 102, 102, 102, 102, 102, 102, 102, 102, 102, 88, - 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, - 87, 102, 102, 86, 102, 91, 102, 11, 9, 8, - 7, 0, 7, 0, 0, 2, 0, 7, 7, 9, - 0, 2, 18, 20, 0, 0, 0, 83, 80, 78, - - 79, 102, 102, 102, 102, 102, 82, 81, 102, 102, - 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, - 102, 102, 84, 102, 77, 102, 102, 25, 102, 9, - 0, 0, 2, 0, 7, 7, 19, 0, 0, 102, - 102, 70, 102, 102, 102, 102, 102, 75, 102, 102, - 102, 102, 73, 102, 102, 102, 102, 72, 71, 74, - 26, 76, 102, 102, 7, 0, 0, 102, 65, 68, - 69, 64, 102, 102, 102, 102, 102, 102, 102, 66, - 67, 102, 102, 102, 7, 0, 21, 60, 63, 102, - 102, 102, 62, 102, 61, 102, 102, 0, 22, 102, - - 102, 56, 57, 58, 59, 0, 0, 0, 0, 55, - 54, 0, 5, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, - 0, 0, 4, 0, 0, 4, 0, 5, 0, 0, - 0, 0, 20, 5, 20, 20, 0, 0, 0, 19, - 5, 19, 19, 0, 0, 0, 0, 0, 21, 5, - 21, 21, 22, 5, 22, 22, 0 + 0, 0, 0, 0, 0, 0, 114, 112, 16, 16, + 110, 112, 110, 110, 110, 112, 110, 111, 109, 110, + 110, 57, 110, 112, 112, 112, 59, 110, 110, 110, + 108, 108, 109, 110, 108, 108, 108, 108, 108, 108, + 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, + 108, 14, 110, 109, 112, 108, 110, 110, 57, 110, + 112, 112, 112, 13, 33, 0, 6, 0, 108, 45, + 31, 48, 0, 0, 46, 40, 41, 39, 43, 56, + 0, 3, 0, 44, 19, 19, 0, 0, 0, 0, + 58, 0, 52, 38, 36, 37, 54, 0, 108, 0, + + 108, 42, 107, 108, 108, 108, 108, 108, 28, 108, + 108, 108, 108, 108, 108, 108, 108, 108, 106, 108, + 105, 104, 108, 108, 108, 108, 108, 108, 108, 108, + 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, + 108, 108, 108, 47, 32, 0, 105, 0, 0, 0, + 0, 0, 3, 8, 44, 0, 11, 11, 0, 0, + 0, 34, 108, 55, 20, 0, 0, 0, 0, 0, + 1, 0, 0, 0, 0, 0, 0, 50, 35, 49, + 53, 0, 0, 0, 0, 0, 21, 108, 108, 108, + 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, + + 27, 108, 100, 108, 108, 108, 108, 108, 99, 108, + 108, 108, 108, 108, 108, 108, 101, 108, 108, 108, + 108, 108, 103, 108, 108, 98, 102, 108, 108, 108, + 15, 108, 0, 11, 11, 0, 0, 12, 8, 0, + 0, 0, 8, 0, 8, 8, 0, 0, 0, 0, + 0, 0, 0, 2, 0, 18, 0, 17, 17, 0, + 0, 51, 0, 0, 0, 0, 108, 96, 108, 108, + 108, 108, 108, 108, 108, 91, 95, 108, 108, 108, + 108, 108, 108, 108, 108, 108, 108, 94, 108, 108, + 108, 108, 108, 108, 108, 108, 108, 108, 93, 108, + + 108, 92, 108, 97, 108, 12, 0, 0, 0, 0, + 8, 0, 8, 0, 0, 2, 0, 8, 8, 10, + 0, 9, 9, 0, 2, 22, 0, 24, 0, 0, + 0, 89, 86, 84, 85, 108, 108, 108, 108, 108, + 88, 87, 108, 108, 108, 108, 108, 108, 108, 108, + 108, 108, 108, 108, 108, 108, 90, 108, 83, 108, + 108, 29, 108, 10, 0, 9, 9, 0, 0, 2, + 0, 8, 8, 0, 23, 0, 0, 108, 108, 76, + 108, 108, 108, 108, 108, 81, 108, 108, 108, 108, + 79, 108, 108, 108, 108, 78, 77, 80, 30, 82, + + 108, 108, 8, 0, 0, 0, 108, 71, 74, 75, + 70, 108, 108, 108, 108, 108, 108, 108, 72, 73, + 108, 108, 108, 8, 0, 0, 25, 66, 69, 108, + 108, 108, 68, 108, 67, 108, 108, 0, 0, 26, + 108, 108, 62, 63, 64, 65, 0, 0, 0, 0, + 0, 0, 61, 60, 0, 5, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, + 0, 0, 0, 0, 0, 0, 4, 0, 0, 4, + 0, 5, 0, 0, 0, 0, 7, 0, 24, 5, + 24, 24, 0, 0, 0, 7, 0, 23, 5, 23, + + 23, 0, 0, 0, 0, 0, 25, 5, 25, 25, + 26, 5, 26, 26, 0 } ; static yyconst flex_int32_t yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, - 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 4, 5, 6, 7, 8, 9, 10, 11, 8, - 12, 13, 14, 8, 15, 16, 17, 18, 19, 19, - 20, 19, 19, 19, 19, 19, 19, 21, 8, 22, - 23, 24, 8, 8, 25, 25, 25, 25, 25, 25, - 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, - 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, - 8, 26, 27, 8, 28, 7, 29, 30, 31, 32, - - 33, 34, 35, 36, 37, 25, 38, 39, 40, 41, - 42, 43, 25, 44, 45, 46, 47, 48, 49, 50, - 51, 25, 8, 52, 8, 8, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 53, 7, 7, 7, - 54, 7, 7, 7, 7, 7, 7, 7, 7, 7, - - 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, 55, 7, - 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7 + 1, 5, 6, 7, 8, 9, 10, 11, 12, 13, + 14, 15, 16, 13, 17, 18, 19, 20, 21, 21, + 22, 21, 21, 21, 21, 21, 21, 23, 13, 24, + 25, 26, 13, 13, 27, 28, 29, 30, 28, 28, + 28, 28, 28, 28, 28, 28, 28, 31, 28, 28, + 28, 28, 28, 32, 28, 28, 28, 28, 28, 28, + 33, 34, 35, 36, 37, 8, 38, 39, 40, 41, + + 42, 43, 44, 45, 46, 28, 47, 48, 49, 50, + 51, 52, 28, 53, 54, 55, 56, 57, 58, 59, + 60, 28, 61, 62, 63, 13, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 64, 8, 8, 8, + 65, 8, 8, 8, 8, 8, 8, 8, 8, 8, + + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 66, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8 } ; -static yyconst flex_int32_t yy_meta[56] = +static yyconst flex_int32_t yy_meta[67] = { 0, - 1, 2, 3, 2, 4, 4, 4, 4, 4, 4, - 4, 4, 4, 4, 4, 5, 4, 6, 6, 6, - 2, 4, 4, 4, 7, 8, 4, 8, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 4, 4, 4, 4 + 1, 2, 3, 2, 2, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 5, 4, 6, + 6, 6, 2, 4, 4, 4, 7, 7, 7, 7, + 7, 7, 4, 8, 4, 4, 9, 7, 7, 7, + 7, 10, 7, 7, 7, 7, 7, 7, 7, 7, + 7, 7, 7, 7, 7, 7, 7, 7, 11, 7, + 4, 4, 4, 4, 4, 4 } ; -static yyconst flex_int16_t yy_base[495] = +static yyconst flex_int16_t yy_base[549] = { 0, - 0, 420, 42, 49, 56, 63, 455, 2184, 2184, 2184, - 431, 78, 2184, 427, 436, 76, 2184, 418, 71, 73, - 73, 82, 90, 95, 100, 415, 75, 406, 98, 121, - 2184, 124, 127, 131, 108, 107, 114, 125, 143, 147, - 126, 158, 162, 170, 179, 186, 193, 200, 80, 365, - 376, 227, 233, 239, 247, 247, 256, 261, 391, 172, - 2184, 403, 2184, 2184, 155, 400, 2184, 2184, 2184, 2184, - 2184, 384, 264, 285, 393, 2184, 271, 276, 379, 344, - 2184, 362, 2184, 360, 2184, 115, 297, 264, 305, 275, - 282, 281, 283, 290, 299, 301, 305, 320, 313, 324, - - 306, 332, 336, 340, 347, 348, 355, 362, 363, 370, - 382, 384, 386, 391, 398, 409, 403, 414, 405, 423, - 430, 429, 435, 441, 446, 458, 450, 464, 470, 469, - 2184, 2184, 318, 485, 499, 516, 521, 502, 207, 541, - 565, 208, 245, 527, 532, 352, 2184, 2184, 558, 561, - 574, 350, 361, 2184, 537, 0, 344, 339, 2184, 2184, - 2184, 333, 615, 294, 274, 264, 249, 484, 540, 541, - 591, 592, 593, 611, 600, 612, 623, 628, 629, 630, - 634, 646, 650, 651, 652, 666, 667, 673, 672, 674, - 678, 689, 690, 694, 695, 706, 710, 712, 717, 718, - - 726, 733, 732, 734, 748, 740, 741, 756, 755, 757, - 2184, 762, 566, 605, 262, 0, 804, 807, 810, 252, - 836, 0, 846, 608, 0, 252, 162, 813, 839, 244, - 842, 0, 210, 2184, 0, 200, 203, 201, 790, 818, - 822, 869, 870, 876, 878, 890, 895, 899, 901, 910, - 915, 916, 917, 931, 932, 933, 938, 939, 950, 954, - 958, 962, 966, 970, 977, 978, 984, 986, 998, 1002, - 1003, 1004, 1018, 1019, 1020, 1025, 1026, 664, 0, 212, - 0, 1053, 1079, 1134, 1137, 197, 1140, 1166, 0, 0, - 1221, 2184, 2184, 2184, 0, 165, 167, 1116, 1117, 1123, - - 1197, 1201, 1202, 1216, 1217, 1218, 1222, 1223, 1234, 1238, - 1240, 1246, 1249, 1262, 1264, 1270, 1279, 1271, 1291, 1295, - 1286, 1300, 1306, 1307, 1311, 1318, 1322, 1326, 1334, 0, - 1368, 1376, 0, 1394, 0, 0, 2184, 165, 130, 1333, - 1345, 1359, 1361, 1370, 1375, 1377, 1389, 1394, 1396, 1395, - 1400, 1401, 1412, 1416, 1417, 1424, 1423, 1431, 1432, 1438, - 1439, 1443, 1447, 1454, 145, 81, 0, 1461, 1462, 1463, - 1468, 1469, 1477, 1483, 1484, 1498, 1491, 1503, 1502, 1507, - 1509, 1514, 1521, 900, 95, 0, 2184, 1523, 1528, 1529, - 1530, 1544, 1537, 1545, 1551, 1553, 1559, 1600, 2184, 1568, - - 1580, 1576, 1587, 1588, 1594, 740, 184, 1636, 1639, 1606, - 1615, 863, 866, 1032, 1072, 187, 1225, 104, 181, 1648, - 1664, 1675, 1678, 1690, 1693, 1696, 1701, 1705, 1709, 1712, - 1716, 1719, 1751, 98, 1754, 1760, 1763, 1766, 1792, 1776, - 1780, 1784, 1769, 1772, 1787, 1808, 1847, 1820, 1826, 1823, - 1829, 1832, 1835, 1873, 1839, 1876, 1912, 1967, 1879, 1882, - 1885, 1888, 1891, 1894, 1903, 1906, 2184, 2022, 2030, 2037, - 2045, 2053, 2061, 2065, 2072, 2076, 2083, 2086, 2089, 83, - 2096, 2099, 2106, 2114, 2114, 2121, 2129, 2134, 2139, 2144, - 2151, 2159, 2167, 2175 - + 0, 517, 51, 58, 65, 72, 558, 2918, 2918, 2918, + 525, 88, 0, 522, 85, 86, 2918, 2918, 520, 81, + 82, 93, 102, 108, 113, 118, 520, 99, 517, 75, + 139, 143, 2918, 511, 171, 180, 184, 153, 158, 113, + 160, 180, 198, 142, 199, 200, 215, 224, 238, 176, + 245, 2918, 91, 2918, 470, 256, 293, 299, 136, 307, + 223, 238, 307, 2918, 499, 118, 2918, 519, 0, 2918, + 2918, 2918, 158, 517, 2918, 2918, 2918, 2918, 2918, 500, + 281, 332, 99, 2918, 2918, 317, 322, 199, 498, 458, + 2918, 475, 477, 2918, 471, 2918, 83, 350, 230, 365, + + 327, 2918, 247, 334, 336, 341, 345, 356, 350, 362, + 376, 367, 382, 384, 388, 393, 402, 407, 409, 413, + 418, 429, 430, 436, 438, 450, 455, 459, 461, 466, + 475, 477, 481, 489, 493, 500, 501, 516, 517, 523, + 524, 531, 535, 2918, 2918, 426, 540, 341, 578, 583, + 586, 144, 611, 643, 178, 181, 2918, 589, 601, 596, + 465, 2918, 0, 2918, 2918, 637, 647, 703, 463, 327, + 2918, 612, 635, 722, 788, 450, 434, 2918, 2918, 2918, + 429, 814, 398, 397, 385, 397, 615, 777, 784, 789, + 782, 793, 808, 822, 823, 831, 839, 846, 845, 827, + + 847, 862, 853, 867, 868, 869, 883, 876, 888, 890, + 892, 899, 904, 911, 906, 920, 922, 926, 927, 934, + 942, 946, 948, 953, 960, 962, 967, 968, 969, 976, + 2918, 974, 1008, 2918, 1011, 647, 410, 2918, 0, 1033, + 1039, 1059, 398, 1067, 0, 1083, 1024, 1035, 1143, 1209, + 293, 1088, 1235, 392, 1245, 2918, 0, 2918, 0, 356, + 373, 2918, 0, 344, 340, 310, 1037, 1049, 1214, 1215, + 1229, 1058, 1230, 1241, 1192, 1057, 1247, 1249, 1263, 1255, + 1264, 1275, 1256, 1270, 1282, 1286, 1290, 1291, 1298, 1305, + 1306, 1310, 1317, 1321, 1329, 1328, 1322, 1340, 1344, 1345, + + 1346, 1352, 1363, 1361, 1368, 2918, 1365, 1400, 1442, 1508, + 0, 456, 1574, 1534, 1640, 327, 1645, 1679, 0, 2918, + 0, 2918, 0, 1544, 2918, 2918, 318, 2918, 0, 245, + 239, 1375, 1377, 1379, 1491, 1514, 1614, 1615, 1708, 1620, + 1709, 1710, 1717, 1724, 1726, 1728, 1742, 1746, 1753, 1761, + 1762, 1767, 1776, 1781, 1785, 1790, 1796, 1801, 1802, 1813, + 1817, 1819, 1821, 2918, 0, 2918, 0, 1872, 1877, 0, + 1882, 0, 0, 247, 2918, 234, 225, 1851, 1857, 1852, + 1875, 1866, 1871, 1886, 1887, 1892, 1901, 1894, 1906, 1908, + 1910, 1912, 1924, 1926, 1931, 1932, 1933, 1940, 1947, 1949, + + 1951, 1965, 245, 199, 171, 0, 1966, 1958, 1967, 1972, + 1973, 1981, 1987, 1988, 2002, 1995, 2007, 2006, 2011, 2013, + 2018, 2025, 2075, 191, 172, 0, 2918, 2033, 2034, 2045, + 2050, 2057, 2056, 2064, 2071, 2073, 2079, 2129, 144, 2918, + 2091, 2100, 2099, 2106, 2108, 2115, 706, 343, 2166, 2170, + 133, 130, 2138, 2139, 710, 1253, 1429, 1433, 395, 1552, + 146, 227, 2180, 2192, 2204, 1673, 1748, 2215, 2227, 2237, + 2231, 2241, 1784, 2245, 322, 2087, 2249, 134, 2257, 2261, + 2272, 2284, 2318, 2295, 2299, 2303, 2918, 345, 2307, 2311, + 2353, 2357, 2384, 2361, 2365, 97, 399, 2369, 2373, 2419, + + 2423, 2427, 2431, 2435, 2480, 2546, 2439, 2449, 2453, 2457, + 2461, 2466, 2472, 2505, 2918, 2612, 2617, 2628, 2639, 2649, + 2660, 2671, 2677, 2688, 2698, 2709, 2716, 2727, 2738, 2748, + 2755, 2766, 2777, 2783, 2788, 2799, 2810, 2821, 2826, 2837, + 2842, 2847, 2852, 2863, 2873, 2884, 2895, 2906 } ; -static yyconst flex_int16_t yy_def[495] = +static yyconst flex_int16_t yy_def[549] = { 0, - 467, 1, 1, 1, 1, 1, 467, 467, 467, 467, - 467, 468, 467, 467, 467, 469, 467, 467, 467, 467, - 467, 467, 467, 467, 467, 467, 467, 467, 467, 470, - 467, 470, 470, 470, 34, 34, 34, 34, 34, 34, - 34, 34, 34, 34, 34, 39, 34, 34, 467, 467, - 39, 467, 467, 467, 471, 467, 467, 467, 467, 468, - 467, 468, 467, 467, 469, 469, 467, 467, 467, 467, - 467, 467, 467, 472, 473, 467, 467, 467, 474, 467, - 467, 467, 467, 467, 467, 467, 467, 34, 467, 34, - 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, - - 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, - 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, - 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, - 467, 467, 467, 34, 467, 467, 467, 467, 471, 475, - 473, 471, 471, 467, 467, 476, 467, 467, 472, 472, - 477, 467, 473, 467, 467, 478, 474, 467, 467, 467, - 467, 467, 467, 467, 467, 467, 467, 34, 34, 34, - 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, - 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, - 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, - - 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, - 467, 34, 467, 467, 479, 480, 475, 475, 481, 480, - 475, 141, 471, 467, 482, 476, 483, 472, 477, 467, - 472, 478, 467, 467, 484, 467, 467, 467, 34, 34, - 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, - 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, - 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, - 34, 34, 34, 34, 34, 34, 34, 467, 485, 479, - 480, 486, 467, 475, 481, 480, 475, 467, 223, 482, - 472, 467, 467, 467, 487, 467, 467, 34, 34, 34, - - 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, - 34, 34, 39, 34, 34, 34, 34, 34, 34, 34, - 34, 34, 34, 34, 34, 34, 34, 34, 34, 485, - 475, 475, 480, 475, 283, 288, 467, 467, 467, 34, - 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, - 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, - 34, 34, 34, 34, 223, 467, 488, 34, 34, 34, - 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, - 34, 34, 34, 470, 283, 489, 467, 34, 34, 34, - 34, 34, 34, 34, 34, 34, 34, 490, 467, 34, - - 34, 34, 34, 34, 34, 491, 492, 493, 491, 34, - 34, 467, 467, 491, 491, 492, 467, 492, 494, 494, - 493, 493, 491, 493, 467, 467, 491, 491, 491, 491, - 491, 467, 467, 494, 467, 467, 491, 494, 491, 491, - 491, 491, 467, 467, 491, 491, 491, 491, 491, 467, - 467, 491, 491, 491, 491, 491, 491, 491, 467, 467, - 491, 491, 467, 467, 491, 491, 0, 467, 467, 467, - 467, 467, 467, 467, 467, 467, 467, 467, 467, 467, - 467, 467, 467, 467, 467, 467, 467, 467, 467, 467, - 467, 467, 467, 467 - + 515, 1, 1, 1, 1, 1, 515, 515, 515, 515, + 515, 516, 517, 515, 515, 518, 515, 515, 515, 515, + 515, 515, 515, 519, 519, 519, 515, 515, 515, 515, + 520, 520, 515, 515, 520, 520, 520, 37, 37, 37, + 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, + 37, 515, 515, 515, 515, 37, 515, 515, 515, 521, + 522, 522, 522, 515, 515, 516, 515, 516, 523, 515, + 515, 515, 518, 518, 515, 515, 515, 515, 515, 515, + 524, 525, 526, 515, 515, 524, 519, 515, 527, 515, + 515, 515, 515, 515, 515, 515, 515, 515, 37, 515, + + 37, 515, 37, 37, 37, 37, 37, 37, 37, 37, + 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, + 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, + 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, + 37, 37, 37, 515, 515, 515, 37, 515, 528, 528, + 529, 521, 530, 526, 521, 521, 515, 529, 522, 515, + 531, 515, 523, 515, 515, 525, 525, 532, 515, 526, + 515, 524, 524, 515, 527, 515, 515, 515, 515, 515, + 515, 515, 515, 515, 515, 515, 37, 37, 37, 37, + 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, + + 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, + 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, + 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, + 515, 37, 533, 515, 533, 515, 534, 515, 535, 530, + 530, 536, 535, 530, 154, 521, 529, 529, 515, 531, + 537, 525, 532, 515, 525, 515, 174, 515, 174, 515, + 515, 515, 538, 515, 515, 515, 37, 37, 37, 37, + 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, + 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, + 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, + + 37, 37, 37, 37, 37, 515, 533, 533, 515, 534, + 535, 539, 515, 530, 536, 535, 530, 515, 246, 515, + 249, 515, 249, 525, 515, 515, 515, 515, 540, 515, + 515, 37, 37, 37, 37, 37, 37, 37, 37, 37, + 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, + 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, + 37, 37, 37, 515, 309, 515, 309, 530, 530, 535, + 530, 313, 318, 515, 515, 515, 515, 37, 37, 37, + 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, + 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, + + 37, 37, 246, 515, 515, 541, 37, 37, 37, 37, + 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, + 37, 37, 37, 313, 515, 542, 515, 37, 37, 37, + 37, 37, 37, 37, 37, 37, 37, 543, 544, 515, + 37, 37, 37, 37, 37, 37, 545, 546, 547, 545, + 544, 544, 37, 37, 515, 515, 545, 545, 546, 515, + 546, 548, 548, 547, 547, 545, 547, 515, 515, 545, + 545, 545, 545, 545, 544, 515, 515, 548, 515, 515, + 545, 548, 545, 545, 545, 545, 515, 544, 515, 515, + 545, 545, 545, 545, 545, 544, 544, 515, 515, 545, + + 545, 545, 545, 545, 545, 545, 515, 515, 545, 545, + 515, 515, 545, 545, 0, 515, 515, 515, 515, 515, + 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, + 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, + 515, 515, 515, 515, 515, 515, 515, 515 } ; -static yyconst flex_int16_t yy_nxt[2240] = +static yyconst flex_int16_t yy_nxt[2985] = { 0, - 8, 9, 10, 9, 11, 12, 8, 13, 14, 15, - 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, - 26, 27, 28, 29, 30, 8, 31, 30, 32, 33, - 34, 35, 36, 37, 38, 30, 39, 30, 30, 30, - 40, 41, 42, 43, 44, 45, 46, 47, 48, 30, - 30, 49, 8, 8, 50, 52, 53, 54, 55, 56, - 57, 58, 52, 53, 54, 55, 56, 57, 58, 52, - 53, 54, 55, 56, 57, 58, 52, 53, 54, 55, - 56, 57, 58, 61, 68, 51, 61, 70, 72, 281, - 73, 73, 73, 69, 74, 71, 82, 83, 75, 51, - - 419, 66, 131, 62, 76, 77, 416, 78, 78, 78, - 77, 152, 78, 78, 78, 77, 386, 78, 78, 78, - 85, 86, 87, 87, 87, 87, 87, 87, 87, 87, - 87, 132, 87, 87, 87, 98, 88, 161, 162, 79, - 95, 89, 101, 80, 89, 99, 88, 89, 88, 96, - 102, 89, 88, 88, 88, 103, 100, 105, 97, 92, - 104, 385, 367, 88, 88, 61, 88, 88, 90, 93, - 91, 88, 94, 113, 291, 110, 106, 61, 292, 111, - 66, 88, 107, 108, 88, 88, 114, 109, 88, 417, - 88, 417, 417, 112, 117, 366, 88, 62, 88, 88, - - 88, 115, 118, 88, 116, 339, 434, 88, 88, 418, - 338, 88, 418, 231, 122, 119, 120, 88, 121, 88, - 88, 127, 123, 216, 216, 88, 125, 279, 88, 124, - 126, 88, 143, 143, 128, 129, 130, 297, 88, 296, - 68, 88, 135, 295, 136, 137, 137, 70, 135, 69, - 136, 137, 137, 293, 72, 71, 138, 138, 138, 140, - 231, 223, 144, 141, 145, 145, 145, 225, 231, 142, - 143, 144, 143, 145, 145, 145, 144, 279, 145, 145, - 145, 73, 73, 73, 238, 149, 149, 149, 155, 155, - 155, 77, 88, 78, 78, 78, 146, 151, 87, 87, - - 87, 152, 88, 88, 80, 88, 163, 163, 163, 88, - 88, 171, 237, 88, 168, 236, 88, 89, 88, 88, - 88, 88, 88, 88, 88, 169, 170, 88, 88, 88, - 172, 88, 173, 88, 88, 235, 164, 174, 165, 88, - 88, 88, 88, 88, 179, 175, 88, 88, 88, 166, - 176, 88, 88, 167, 88, 234, 233, 177, 88, 156, - 88, 88, 88, 154, 88, 88, 231, 225, 88, 178, - 88, 211, 180, 88, 88, 88, 88, 88, 88, 181, - 182, 88, 160, 88, 159, 88, 88, 158, 88, 88, - 88, 88, 183, 88, 156, 154, 88, 184, 88, 148, - - 88, 88, 65, 88, 88, 60, 185, 186, 88, 187, - 88, 88, 88, 147, 88, 188, 134, 133, 191, 88, - 88, 192, 190, 88, 88, 88, 88, 88, 84, 88, - 189, 88, 88, 198, 193, 81, 88, 88, 195, 194, - 67, 88, 88, 88, 88, 64, 88, 88, 196, 63, - 88, 88, 88, 59, 467, 88, 51, 88, 88, 197, - 467, 88, 467, 88, 88, 199, 200, 88, 88, 88, - 88, 88, 201, 88, 88, 467, 88, 205, 88, 88, - 467, 202, 88, 204, 88, 203, 88, 88, 88, 467, - 206, 88, 88, 207, 467, 467, 88, 88, 88, 88, - - 208, 467, 88, 467, 467, 88, 209, 88, 88, 467, - 88, 88, 239, 88, 210, 212, 213, 213, 213, 138, - 138, 138, 88, 88, 467, 88, 88, 467, 467, 185, - 186, 214, 467, 137, 137, 137, 214, 467, 137, 137, - 137, 217, 217, 149, 224, 224, 224, 144, 467, 145, - 145, 145, 467, 219, 155, 155, 155, 220, 149, 149, - 149, 149, 149, 149, 467, 215, 221, 154, 88, 88, - 227, 241, 240, 227, 228, 228, 228, 467, 88, 88, - 467, 88, 88, 213, 213, 213, 229, 467, 467, 222, - 230, 467, 467, 222, 222, 222, 222, 222, 222, 222, - - 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, - 222, 222, 222, 222, 222, 222, 163, 163, 163, 88, - 88, 245, 278, 278, 278, 224, 224, 224, 247, 88, - 88, 88, 88, 88, 88, 242, 243, 244, 88, 88, - 88, 88, 467, 246, 467, 467, 164, 248, 165, 88, - 88, 88, 88, 88, 467, 249, 88, 88, 252, 166, - 250, 88, 88, 167, 88, 467, 88, 88, 88, 88, - 88, 88, 88, 251, 88, 88, 253, 467, 88, 88, - 88, 278, 278, 278, 88, 467, 467, 88, 88, 254, - 88, 88, 255, 88, 88, 88, 467, 256, 257, 258, - - 88, 88, 88, 467, 88, 88, 88, 88, 88, 259, - 88, 88, 260, 88, 88, 88, 88, 88, 88, 88, - 467, 261, 88, 88, 467, 467, 262, 88, 88, 467, - 88, 88, 88, 265, 88, 88, 88, 263, 88, 264, - 88, 412, 413, 414, 88, 88, 88, 88, 88, 268, - 88, 88, 266, 88, 88, 88, 88, 267, 88, 88, - 88, 88, 88, 269, 88, 271, 272, 270, 88, 88, - 88, 88, 88, 88, 88, 88, 88, 467, 88, 88, - 273, 88, 88, 88, 88, 88, 88, 274, 467, 88, - 88, 467, 276, 275, 88, 88, 88, 88, 88, 467, - - 277, 467, 467, 88, 217, 217, 149, 217, 217, 149, - 284, 284, 228, 149, 149, 149, 282, 467, 88, 282, - 283, 467, 285, 283, 467, 227, 286, 298, 88, 221, - 467, 88, 221, 467, 467, 287, 217, 217, 149, 228, - 228, 228, 149, 149, 149, 467, 88, 467, 282, 467, - 88, 229, 288, 467, 227, 230, 88, 299, 152, 88, - 88, 221, 216, 88, 412, 413, 412, 412, 413, 412, - 289, 143, 467, 467, 289, 289, 289, 289, 289, 289, - 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, - 289, 289, 289, 289, 289, 289, 289, 88, 88, 467, - - 467, 398, 398, 398, 88, 467, 88, 88, 88, 467, - 88, 88, 302, 300, 88, 301, 88, 88, 88, 88, - 89, 467, 467, 88, 303, 467, 467, 88, 88, 88, - 467, 88, 467, 88, 305, 304, 88, 88, 88, 88, - 88, 467, 88, 88, 88, 88, 467, 307, 88, 467, - 306, 88, 467, 88, 308, 88, 88, 88, 88, 88, - 88, 312, 309, 310, 467, 467, 88, 88, 467, 88, - 88, 88, 88, 88, 88, 311, 88, 88, 88, 88, - 88, 313, 88, 314, 467, 467, 88, 467, 88, 467, - 317, 88, 88, 467, 318, 88, 88, 315, 88, 88, - - 88, 316, 319, 88, 88, 88, 88, 88, 88, 467, - 467, 88, 88, 320, 88, 88, 88, 467, 88, 88, - 322, 321, 88, 467, 88, 88, 88, 88, 324, 323, - 88, 88, 88, 412, 413, 414, 88, 467, 467, 88, - 88, 88, 88, 88, 88, 326, 88, 88, 88, 467, - 325, 327, 328, 88, 88, 231, 88, 88, 88, 88, - 88, 88, 467, 88, 88, 332, 88, 88, 467, 333, - 467, 467, 329, 412, 413, 414, 467, 467, 334, 149, - 149, 149, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 227, 150, 150, 150, 150, 150, 150, 150, 150, - - 150, 150, 150, 335, 150, 150, 150, 335, 335, 335, - 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, - 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, - 150, 150, 150, 150, 217, 217, 149, 284, 284, 228, - 217, 217, 149, 467, 88, 88, 282, 467, 467, 285, - 283, 88, 282, 286, 88, 88, 288, 88, 88, 221, - 467, 88, 287, 467, 88, 221, 217, 217, 149, 218, - 218, 218, 218, 218, 218, 218, 218, 218, 282, 218, - 218, 218, 283, 218, 218, 218, 218, 218, 218, 218, - 336, 221, 218, 218, 336, 336, 336, 336, 336, 336, - - 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, - 336, 336, 336, 336, 336, 336, 336, 218, 218, 218, - 218, 149, 149, 149, 467, 88, 432, 433, 432, 88, - 88, 467, 467, 227, 467, 88, 467, 230, 88, 88, - 341, 340, 88, 88, 88, 88, 88, 467, 342, 344, - 88, 88, 467, 343, 88, 88, 88, 88, 88, 88, - 88, 345, 88, 88, 88, 467, 88, 467, 88, 467, - 346, 467, 88, 467, 88, 88, 88, 347, 88, 88, - 467, 88, 350, 467, 88, 348, 349, 88, 88, 351, - 88, 467, 88, 88, 467, 467, 353, 467, 88, 88, - - 88, 467, 88, 88, 352, 88, 354, 88, 88, 88, - 467, 88, 88, 355, 88, 467, 356, 88, 467, 88, - 88, 357, 467, 88, 88, 358, 359, 88, 88, 88, - 360, 467, 88, 88, 88, 88, 88, 467, 88, 88, - 467, 88, 361, 467, 88, 88, 88, 88, 88, 88, - 88, 362, 88, 467, 88, 467, 88, 467, 363, 88, - 88, 88, 88, 88, 88, 364, 467, 88, 217, 217, - 149, 88, 88, 88, 88, 88, 217, 217, 149, 368, - 282, 467, 467, 88, 220, 467, 88, 88, 282, 88, - 369, 370, 286, 221, 217, 217, 149, 88, 88, 88, - - 88, 221, 88, 88, 467, 88, 282, 467, 88, 467, - 365, 88, 467, 88, 371, 88, 88, 88, 373, 221, - 467, 374, 88, 376, 88, 372, 375, 88, 377, 378, - 88, 467, 88, 88, 88, 88, 88, 88, 88, 88, - 88, 88, 88, 467, 88, 88, 467, 379, 467, 380, - 88, 88, 88, 88, 88, 88, 381, 88, 88, 88, - 88, 88, 88, 467, 88, 88, 88, 88, 382, 88, - 88, 88, 88, 88, 467, 88, 88, 88, 467, 88, - 88, 88, 88, 467, 88, 88, 384, 383, 88, 88, - 88, 88, 88, 388, 467, 88, 88, 88, 467, 88, - - 88, 88, 88, 88, 88, 88, 88, 88, 467, 88, - 88, 88, 88, 467, 467, 88, 391, 389, 88, 88, - 467, 88, 88, 390, 88, 88, 88, 467, 392, 393, - 88, 88, 88, 394, 395, 88, 88, 88, 467, 88, - 88, 88, 88, 88, 88, 88, 396, 88, 88, 88, - 88, 88, 88, 397, 467, 88, 88, 88, 88, 88, - 467, 88, 88, 467, 88, 88, 88, 88, 88, 88, - 88, 401, 88, 88, 400, 88, 402, 403, 88, 88, - 467, 88, 88, 88, 404, 88, 88, 88, 467, 88, - 405, 88, 88, 467, 88, 467, 88, 88, 467, 467, - - 88, 398, 398, 398, 88, 407, 88, 467, 88, 88, - 408, 467, 410, 411, 88, 88, 88, 88, 88, 467, - 409, 88, 88, 467, 467, 88, 88, 467, 88, 88, - 467, 467, 88, 467, 88, 88, 419, 420, 413, 421, - 425, 426, 427, 88, 88, 467, 423, 88, 467, 420, - 413, 420, 467, 88, 467, 467, 88, 467, 417, 467, - 467, 424, 467, 467, 419, 420, 413, 421, 467, 467, - 428, 467, 429, 434, 423, 419, 420, 413, 421, 435, - 436, 437, 467, 430, 467, 423, 467, 431, 467, 424, - 419, 420, 438, 421, 425, 426, 425, 425, 426, 425, - - 424, 467, 425, 426, 427, 467, 412, 413, 414, 467, - 412, 413, 414, 412, 413, 414, 467, 412, 413, 414, - 432, 433, 432, 467, 164, 467, 165, 164, 467, 165, - 467, 467, 428, 467, 429, 467, 467, 166, 467, 467, - 166, 167, 467, 467, 167, 430, 439, 467, 467, 431, - 440, 442, 432, 433, 432, 435, 436, 435, 467, 467, - 441, 435, 436, 435, 435, 436, 437, 420, 413, 420, - 412, 413, 412, 412, 413, 412, 417, 412, 413, 414, - 467, 412, 413, 414, 467, 412, 413, 414, 412, 413, - 414, 434, 294, 443, 444, 445, 446, 446, 446, 446, - - 446, 446, 446, 446, 446, 446, 446, 446, 446, 412, - 413, 414, 446, 446, 446, 446, 448, 467, 446, 447, - 449, 412, 413, 414, 412, 413, 412, 412, 413, 414, - 412, 413, 412, 412, 413, 414, 412, 413, 414, 467, - 412, 413, 414, 446, 446, 446, 446, 337, 450, 451, - 452, 453, 453, 453, 453, 453, 453, 453, 453, 453, - 453, 453, 453, 453, 455, 454, 467, 453, 453, 453, - 453, 457, 467, 453, 412, 413, 414, 412, 413, 414, - 412, 413, 412, 412, 413, 412, 412, 413, 414, 412, - 413, 414, 412, 413, 412, 412, 413, 412, 453, 453, - - 453, 453, 467, 456, 412, 413, 414, 412, 413, 414, - 467, 458, 387, 459, 460, 461, 462, 462, 462, 462, - 462, 462, 462, 462, 462, 462, 462, 462, 462, 467, - 467, 467, 462, 462, 462, 462, 467, 467, 462, 467, - 467, 467, 467, 467, 467, 467, 467, 467, 467, 467, - 467, 467, 467, 467, 467, 467, 467, 467, 467, 467, - 467, 467, 467, 462, 462, 462, 462, 399, 463, 464, - 465, 466, 466, 466, 466, 466, 466, 466, 466, 466, - 466, 466, 466, 466, 467, 467, 467, 466, 466, 466, - 466, 467, 467, 466, 467, 467, 467, 467, 467, 467, - - 467, 467, 467, 467, 467, 467, 467, 467, 467, 467, - 467, 467, 467, 467, 467, 467, 467, 467, 466, 466, - 466, 466, 60, 60, 467, 60, 60, 60, 60, 60, - 65, 65, 467, 65, 65, 65, 65, 65, 88, 88, - 467, 467, 88, 88, 88, 139, 139, 467, 139, 139, - 139, 139, 139, 150, 150, 150, 150, 150, 150, 150, - 150, 153, 153, 153, 153, 153, 153, 153, 153, 157, - 157, 157, 218, 218, 218, 218, 218, 218, 218, 218, - 226, 226, 226, 149, 149, 149, 149, 149, 149, 149, - 149, 232, 232, 280, 280, 280, 217, 217, 217, 217, - - 217, 217, 217, 217, 290, 290, 231, 231, 231, 231, - 231, 231, 231, 231, 294, 294, 294, 294, 294, 330, - 330, 331, 331, 331, 331, 331, 331, 331, 331, 337, - 337, 337, 337, 337, 387, 387, 387, 387, 387, 399, - 399, 399, 399, 399, 406, 406, 406, 406, 406, 406, - 406, 406, 415, 415, 415, 415, 415, 415, 415, 416, - 416, 467, 416, 416, 416, 416, 416, 422, 422, 422, - 422, 422, 422, 422, 422, 419, 419, 467, 419, 419, - 419, 419, 419, 7, 467, 467, 467, 467, 467, 467, - 467, 467, 467, 467, 467, 467, 467, 467, 467, 467, - - 467, 467, 467, 467, 467, 467, 467, 467, 467, 467, - 467, 467, 467, 467, 467, 467, 467, 467, 467, 467, - 467, 467, 467, 467, 467, 467, 467, 467, 467, 467, - 467, 467, 467, 467, 467, 467, 467, 467, 467 + 8, 9, 10, 9, 9, 11, 12, 8, 13, 14, + 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, + 25, 26, 27, 28, 29, 30, 31, 31, 31, 31, + 32, 31, 17, 8, 33, 34, 31, 35, 36, 37, + 38, 39, 40, 41, 31, 42, 31, 31, 31, 43, + 44, 45, 46, 47, 48, 49, 50, 51, 31, 31, + 52, 53, 54, 8, 8, 55, 57, 58, 59, 60, + 61, 62, 63, 57, 58, 59, 60, 61, 62, 63, + 57, 58, 59, 60, 61, 62, 63, 57, 58, 59, + 60, 61, 62, 63, 67, 71, 76, 67, 78, 96, + + 97, 171, 171, 56, 92, 77, 79, 180, 181, 72, + 80, 64, 81, 81, 81, 144, 82, 56, 64, 74, + 83, 68, 93, 94, 67, 86, 84, 87, 87, 87, + 86, 452, 87, 87, 87, 86, 462, 87, 87, 87, + 98, 98, 98, 98, 98, 98, 98, 98, 459, 88, + 114, 68, 145, 80, 88, 151, 151, 151, 115, 88, + 99, 100, 239, 116, 475, 100, 89, 452, 117, 67, + 90, 515, 98, 98, 98, 98, 515, 156, 452, 99, + 101, 98, 98, 98, 98, 98, 98, 98, 98, 99, + 99, 74, 99, 100, 108, 111, 239, 99, 126, 246, + + 99, 118, 100, 109, 439, 112, 100, 99, 99, 169, + 99, 156, 110, 140, 156, 426, 113, 99, 173, 173, + 173, 105, 119, 99, 103, 425, 141, 99, 120, 121, + 99, 106, 104, 122, 107, 123, 127, 99, 460, 124, + 158, 130, 159, 159, 159, 99, 99, 99, 99, 99, + 99, 128, 99, 125, 129, 158, 131, 159, 159, 159, + 478, 99, 99, 424, 160, 99, 406, 99, 135, 132, + 133, 99, 134, 405, 99, 99, 136, 99, 404, 160, + 99, 161, 99, 137, 99, 99, 377, 138, 99, 142, + 143, 139, 99, 99, 99, 99, 515, 99, 119, 376, + + 81, 81, 81, 99, 120, 147, 99, 324, 76, 122, + 148, 325, 149, 150, 150, 78, 148, 77, 149, 150, + 150, 153, 88, 79, 158, 154, 159, 159, 159, 171, + 171, 155, 166, 166, 166, 166, 172, 172, 172, 86, + 156, 87, 87, 87, 374, 255, 168, 487, 160, 460, + 169, 98, 98, 98, 98, 331, 488, 187, 88, 90, + 233, 233, 233, 88, 99, 515, 182, 182, 182, 182, + 496, 99, 100, 99, 99, 188, 461, 99, 191, 497, + 515, 99, 99, 99, 99, 330, 99, 99, 99, 189, + 190, 99, 99, 99, 192, 99, 329, 99, 193, 99, + + 99, 460, 327, 194, 99, 183, 99, 184, 326, 99, + 255, 195, 99, 99, 99, 196, 255, 99, 185, 99, + 197, 99, 186, 99, 496, 99, 99, 309, 461, 99, + 99, 199, 99, 475, 99, 99, 198, 200, 99, 99, + 99, 266, 265, 99, 99, 201, 99, 264, 263, 99, + 99, 202, 99, 262, 99, 99, 99, 99, 255, 99, + 99, 203, 261, 99, 204, 99, 99, 99, 99, 260, + 369, 205, 206, 99, 370, 99, 99, 99, 207, 99, + 99, 255, 249, 99, 208, 210, 99, 99, 99, 371, + 231, 211, 99, 209, 212, 179, 99, 99, 99, 215, + + 99, 178, 99, 99, 213, 99, 99, 177, 99, 214, + 176, 99, 99, 99, 218, 174, 99, 164, 99, 73, + 216, 66, 99, 162, 99, 99, 99, 99, 99, 217, + 99, 99, 219, 146, 220, 102, 99, 99, 99, 99, + 99, 95, 91, 99, 75, 221, 70, 99, 99, 65, + 99, 99, 224, 99, 99, 222, 225, 515, 226, 223, + 99, 99, 56, 99, 99, 515, 99, 99, 99, 228, + 99, 99, 99, 99, 99, 227, 229, 99, 99, 232, + 515, 99, 99, 515, 515, 99, 515, 99, 515, 230, + 99, 515, 515, 205, 206, 235, 515, 150, 150, 150, + + 235, 515, 150, 150, 150, 151, 151, 151, 247, 247, + 247, 240, 240, 166, 240, 248, 248, 248, 158, 236, + 159, 159, 159, 515, 236, 242, 515, 160, 515, 243, + 160, 172, 172, 172, 515, 515, 237, 166, 166, 166, + 166, 515, 160, 515, 244, 171, 171, 166, 166, 166, + 166, 251, 99, 88, 173, 173, 173, 515, 515, 515, + 515, 251, 99, 515, 515, 99, 308, 308, 308, 245, + 245, 245, 245, 245, 245, 515, 515, 515, 515, 515, + 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, + 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, + + 245, 245, 245, 252, 252, 252, 252, 455, 456, 455, + 457, 455, 456, 455, 455, 515, 515, 253, 515, 515, + 515, 254, 256, 256, 256, 256, 256, 256, 256, 256, + 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, + 256, 257, 257, 257, 256, 256, 256, 256, 257, 257, + 257, 257, 257, 257, 256, 515, 256, 256, 515, 257, + 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, + 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, + 257, 257, 256, 256, 256, 256, 256, 256, 258, 258, + 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, + + 258, 258, 258, 258, 258, 259, 258, 515, 515, 515, + 258, 258, 258, 258, 267, 182, 182, 182, 182, 99, + 258, 99, 258, 258, 99, 268, 99, 99, 269, 99, + 99, 99, 99, 515, 99, 270, 99, 515, 515, 99, + 99, 515, 515, 99, 515, 273, 271, 272, 258, 258, + 258, 258, 258, 258, 183, 99, 184, 515, 99, 99, + 275, 515, 515, 274, 280, 515, 515, 185, 99, 99, + 99, 186, 99, 99, 99, 276, 99, 99, 99, 515, + 277, 99, 99, 99, 99, 515, 99, 278, 515, 99, + 99, 515, 99, 99, 99, 99, 99, 99, 279, 99, + + 99, 281, 515, 99, 99, 99, 99, 515, 515, 99, + 285, 515, 99, 99, 282, 99, 99, 283, 99, 99, + 99, 287, 284, 99, 286, 99, 99, 99, 515, 99, + 99, 515, 515, 99, 515, 99, 99, 288, 99, 99, + 99, 99, 99, 99, 289, 290, 99, 515, 99, 99, + 515, 99, 515, 293, 99, 515, 99, 99, 99, 99, + 291, 99, 515, 99, 99, 292, 515, 99, 296, 99, + 99, 99, 99, 99, 99, 294, 99, 99, 515, 99, + 295, 99, 515, 99, 99, 99, 515, 299, 297, 99, + 99, 515, 298, 99, 300, 99, 99, 99, 99, 99, + + 99, 301, 515, 99, 99, 99, 99, 99, 302, 99, + 99, 99, 99, 99, 99, 99, 303, 99, 99, 99, + 304, 305, 515, 99, 99, 515, 99, 233, 233, 233, + 307, 307, 307, 240, 240, 166, 240, 515, 515, 240, + 240, 166, 240, 247, 247, 247, 515, 312, 515, 236, + 515, 313, 236, 312, 248, 248, 248, 313, 515, 314, + 314, 252, 314, 515, 515, 160, 244, 240, 240, 166, + 240, 515, 244, 315, 99, 515, 515, 316, 515, 515, + 515, 312, 515, 332, 99, 318, 99, 99, 166, 166, + 166, 166, 317, 515, 99, 99, 99, 515, 515, 99, + + 244, 239, 251, 336, 99, 99, 515, 99, 99, 319, + 319, 319, 319, 319, 319, 515, 156, 515, 515, 515, + 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, + 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, + 319, 319, 319, 320, 320, 320, 320, 320, 320, 320, + 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, + 320, 320, 321, 321, 321, 320, 320, 320, 320, 321, + 321, 321, 321, 321, 321, 320, 515, 320, 320, 515, + 321, 321, 321, 321, 321, 321, 321, 321, 321, 321, + 321, 321, 321, 321, 321, 321, 321, 321, 321, 321, + + 321, 321, 321, 320, 320, 320, 320, 320, 320, 322, + 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, + 322, 322, 322, 322, 322, 322, 323, 322, 515, 99, + 515, 322, 322, 322, 322, 252, 252, 252, 252, 99, + 339, 322, 99, 322, 322, 166, 166, 166, 166, 253, + 515, 99, 99, 254, 455, 456, 455, 455, 333, 251, + 515, 99, 99, 169, 99, 99, 99, 99, 334, 322, + 322, 322, 322, 322, 322, 515, 99, 99, 99, 99, + 99, 515, 515, 335, 99, 337, 99, 515, 99, 515, + 515, 99, 99, 99, 99, 338, 99, 99, 340, 99, + + 99, 99, 342, 99, 341, 99, 99, 346, 345, 515, + 99, 99, 99, 99, 99, 515, 344, 99, 343, 99, + 99, 515, 99, 99, 515, 99, 515, 99, 99, 99, + 515, 515, 99, 99, 347, 99, 99, 99, 99, 348, + 99, 99, 351, 352, 515, 99, 349, 99, 99, 515, + 350, 353, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 358, 354, 515, 99, 99, 99, 99, 99, 99, + 515, 99, 99, 355, 356, 99, 99, 99, 99, 99, + 357, 99, 99, 99, 307, 307, 307, 99, 361, 99, + 99, 99, 99, 99, 99, 360, 99, 359, 99, 99, + + 99, 515, 99, 515, 362, 99, 236, 515, 99, 515, + 99, 99, 99, 99, 99, 99, 99, 515, 99, 308, + 308, 308, 99, 363, 99, 99, 99, 99, 515, 99, + 455, 456, 455, 457, 455, 456, 455, 457, 515, 515, + 515, 515, 364, 364, 364, 364, 364, 364, 364, 364, + 364, 364, 364, 364, 364, 364, 364, 364, 364, 364, + 364, 365, 365, 365, 364, 364, 364, 364, 365, 365, + 365, 365, 365, 365, 364, 515, 364, 364, 515, 365, + 365, 365, 365, 365, 365, 365, 365, 365, 365, 365, + 365, 365, 365, 365, 365, 365, 365, 365, 365, 365, + + 365, 365, 364, 364, 364, 364, 364, 364, 366, 366, + 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, + 366, 366, 366, 366, 366, 367, 366, 515, 99, 515, + 366, 366, 366, 366, 240, 240, 166, 240, 99, 515, + 366, 99, 366, 366, 166, 166, 166, 166, 312, 515, + 515, 99, 313, 476, 477, 476, 476, 515, 251, 515, + 515, 99, 254, 378, 99, 515, 515, 244, 366, 366, + 366, 366, 366, 366, 166, 166, 166, 166, 167, 167, + 167, 167, 167, 167, 167, 167, 167, 167, 251, 167, + 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, + + 372, 372, 372, 372, 372, 372, 167, 167, 167, 167, + 167, 372, 372, 372, 372, 372, 372, 372, 372, 372, + 372, 372, 372, 372, 372, 372, 372, 372, 372, 372, + 372, 372, 372, 372, 167, 167, 167, 167, 167, 167, + 314, 314, 252, 314, 515, 240, 240, 166, 240, 515, + 515, 99, 99, 515, 315, 515, 380, 99, 316, 312, + 382, 379, 99, 318, 99, 99, 515, 99, 515, 515, + 99, 515, 515, 317, 479, 480, 479, 481, 244, 240, + 240, 166, 240, 241, 241, 241, 241, 241, 241, 241, + 241, 241, 241, 312, 241, 241, 241, 313, 241, 241, + + 241, 241, 241, 241, 241, 373, 373, 373, 373, 373, + 373, 241, 244, 241, 241, 241, 373, 373, 373, 373, + 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, + 373, 373, 373, 373, 373, 373, 373, 373, 373, 241, + 241, 241, 241, 241, 241, 99, 99, 99, 462, 463, + 482, 463, 464, 381, 99, 99, 99, 383, 99, 99, + 99, 99, 384, 99, 99, 99, 515, 99, 515, 515, + 515, 99, 385, 99, 99, 99, 99, 387, 99, 99, + 386, 515, 515, 99, 388, 455, 456, 455, 457, 99, + 99, 389, 99, 99, 391, 515, 99, 390, 99, 99, + + 99, 515, 515, 99, 99, 393, 392, 515, 99, 99, + 515, 99, 99, 99, 99, 395, 515, 99, 99, 515, + 396, 394, 99, 99, 515, 515, 99, 99, 99, 398, + 515, 99, 99, 99, 397, 99, 515, 99, 99, 99, + 99, 485, 515, 99, 515, 399, 99, 515, 99, 99, + 99, 99, 99, 515, 99, 400, 99, 515, 99, 515, + 99, 402, 401, 99, 99, 515, 99, 99, 99, 99, + 515, 99, 240, 240, 166, 240, 515, 240, 240, 166, + 240, 515, 240, 240, 166, 240, 312, 515, 99, 99, + 243, 312, 515, 515, 99, 316, 312, 515, 99, 99, + + 403, 99, 99, 99, 99, 244, 407, 99, 99, 515, + 244, 408, 99, 99, 409, 244, 99, 515, 99, 410, + 515, 99, 99, 99, 99, 99, 515, 515, 413, 99, + 411, 415, 515, 99, 99, 515, 412, 99, 99, 99, + 414, 99, 99, 416, 99, 417, 515, 99, 99, 99, + 515, 99, 418, 99, 515, 99, 99, 99, 99, 99, + 99, 99, 99, 99, 515, 419, 515, 420, 99, 99, + 99, 99, 515, 99, 99, 515, 99, 99, 99, 99, + 99, 99, 99, 99, 99, 421, 99, 99, 99, 515, + 99, 515, 515, 515, 99, 99, 99, 99, 99, 99, + + 422, 99, 99, 99, 99, 99, 423, 428, 99, 99, + 99, 515, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 515, 99, 99, 99, 99, 515, 515, 99, 431, + 429, 99, 99, 515, 99, 99, 430, 99, 99, 99, + 515, 432, 433, 99, 99, 99, 434, 435, 99, 99, + 99, 515, 99, 99, 99, 99, 99, 99, 99, 436, + 99, 99, 99, 99, 515, 99, 437, 515, 99, 515, + 99, 99, 99, 515, 515, 99, 438, 438, 438, 438, + 99, 99, 99, 99, 99, 515, 515, 99, 476, 477, + 476, 476, 99, 99, 99, 99, 515, 99, 443, 441, + + 442, 99, 515, 99, 99, 444, 99, 99, 99, 515, + 99, 99, 99, 445, 99, 515, 99, 515, 99, 446, + 99, 99, 99, 99, 515, 99, 99, 515, 99, 99, + 438, 438, 438, 438, 515, 448, 99, 99, 99, 515, + 449, 99, 454, 99, 453, 99, 99, 99, 515, 99, + 99, 450, 99, 99, 515, 99, 99, 515, 99, 515, + 515, 515, 99, 515, 515, 99, 462, 463, 456, 463, + 464, 468, 469, 468, 470, 99, 99, 466, 515, 515, + 515, 463, 456, 463, 463, 99, 99, 515, 99, 99, + 515, 460, 462, 463, 456, 463, 464, 515, 515, 467, + + 515, 515, 515, 466, 462, 463, 456, 463, 464, 515, + 471, 515, 472, 478, 515, 466, 468, 469, 468, 468, + 515, 515, 515, 473, 515, 467, 515, 474, 468, 469, + 468, 468, 455, 456, 455, 457, 515, 467, 468, 469, + 468, 470, 455, 456, 455, 457, 455, 456, 455, 457, + 476, 477, 476, 476, 515, 183, 515, 184, 479, 480, + 479, 479, 479, 480, 479, 479, 515, 183, 185, 184, + 515, 515, 186, 479, 480, 479, 481, 471, 515, 472, + 185, 483, 515, 515, 186, 463, 456, 463, 463, 486, + 473, 484, 515, 515, 474, 460, 455, 456, 455, 457, + + 455, 456, 455, 457, 455, 456, 455, 457, 455, 456, + 455, 455, 455, 456, 455, 455, 515, 478, 328, 489, + 490, 489, 491, 492, 492, 492, 492, 492, 492, 492, + 492, 492, 492, 492, 492, 492, 492, 515, 515, 515, + 492, 492, 492, 492, 494, 515, 515, 493, 495, 515, + 492, 515, 492, 492, 455, 456, 455, 457, 455, 456, + 455, 457, 455, 456, 455, 457, 455, 456, 455, 457, + 455, 456, 455, 455, 455, 456, 455, 455, 492, 492, + 492, 492, 492, 492, 375, 498, 499, 498, 500, 501, + 501, 501, 501, 501, 501, 501, 501, 501, 501, 501, + + 501, 501, 501, 515, 515, 515, 501, 501, 501, 501, + 515, 515, 503, 515, 515, 502, 501, 515, 501, 501, + 455, 456, 455, 457, 455, 456, 455, 457, 455, 456, + 455, 457, 455, 456, 455, 457, 455, 456, 455, 457, + 455, 456, 455, 455, 501, 501, 501, 501, 501, 501, + 455, 456, 455, 455, 455, 456, 455, 457, 455, 456, + 455, 457, 455, 456, 455, 455, 504, 455, 456, 455, + 455, 515, 505, 455, 456, 455, 457, 515, 515, 506, + 427, 507, 508, 507, 509, 510, 510, 510, 510, 510, + 510, 510, 510, 510, 510, 510, 510, 510, 510, 515, + + 515, 515, 510, 510, 510, 510, 455, 456, 455, 457, + 515, 515, 510, 515, 510, 510, 515, 515, 515, 515, + 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, + 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, + 510, 510, 510, 510, 510, 510, 440, 511, 512, 511, + 513, 514, 514, 514, 514, 514, 514, 514, 514, 514, + 514, 514, 514, 514, 514, 515, 515, 515, 514, 514, + 514, 514, 515, 515, 515, 515, 515, 515, 514, 515, + 514, 514, 515, 515, 515, 515, 515, 515, 515, 515, + 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, + + 515, 515, 515, 515, 515, 515, 514, 514, 514, 514, + 514, 514, 66, 66, 515, 66, 66, 66, 66, 66, + 66, 66, 66, 69, 515, 69, 69, 69, 73, 73, + 515, 73, 73, 73, 73, 73, 73, 73, 73, 85, + 85, 85, 85, 85, 85, 515, 515, 515, 85, 85, + 99, 99, 515, 515, 99, 99, 99, 99, 99, 99, + 152, 152, 515, 152, 152, 152, 152, 152, 152, 152, + 152, 157, 157, 157, 157, 157, 157, 515, 515, 515, + 157, 157, 163, 163, 163, 163, 163, 163, 165, 165, + 165, 165, 165, 165, 515, 515, 515, 165, 167, 167, + + 167, 167, 167, 167, 167, 167, 167, 167, 167, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 175, 175, 175, 515, 515, 175, 175, 234, 234, 234, + 234, 234, 234, 515, 515, 515, 234, 234, 238, 238, + 238, 238, 238, 238, 515, 515, 515, 238, 241, 241, + 241, 241, 241, 241, 241, 241, 241, 241, 241, 250, + 250, 250, 515, 515, 250, 250, 166, 166, 166, 166, + 166, 166, 166, 166, 166, 166, 166, 306, 306, 306, + 306, 306, 306, 515, 515, 515, 306, 310, 310, 310, + 515, 515, 310, 310, 311, 515, 515, 311, 311, 240, + + 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 328, 328, 328, 328, 328, 368, 368, 368, 368, + 368, 368, 368, 368, 368, 368, 368, 375, 375, 375, + 375, 375, 427, 427, 427, 427, 427, 440, 440, 440, + 440, 440, 447, 447, 447, 447, 447, 447, 447, 447, + 447, 447, 447, 451, 451, 451, 451, 451, 451, 451, + 451, 451, 451, 451, 458, 458, 458, 458, 458, 458, + 458, 458, 458, 458, 459, 459, 515, 459, 459, 459, + 459, 459, 459, 459, 459, 465, 465, 465, 465, 465, + + 465, 465, 465, 465, 465, 465, 462, 462, 515, 462, + 462, 462, 462, 462, 462, 462, 462, 7, 515, 515, + 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, + 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, + 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, + 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, + 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, + 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, + 515, 515, 515, 515 } ; -static yyconst flex_int16_t yy_chk[2240] = +static yyconst flex_int16_t yy_chk[2985] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, - 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, - 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, - 6, 6, 6, 12, 19, 4, 16, 20, 21, 480, - 21, 21, 21, 19, 22, 20, 27, 27, 22, 6, - - 434, 16, 49, 12, 22, 23, 418, 23, 23, 23, - 24, 385, 24, 24, 24, 25, 366, 25, 25, 25, - 29, 29, 30, 30, 30, 32, 32, 32, 33, 33, - 33, 49, 34, 34, 34, 36, 35, 86, 86, 23, - 35, 30, 37, 25, 32, 36, 35, 33, 36, 35, - 37, 34, 37, 38, 41, 37, 36, 38, 35, 34, - 37, 365, 339, 38, 41, 65, 38, 41, 32, 34, - 33, 39, 34, 41, 227, 40, 39, 60, 227, 40, - 65, 39, 39, 39, 39, 40, 42, 39, 40, 407, - 43, 419, 416, 40, 43, 338, 42, 60, 44, 42, - - 43, 42, 44, 43, 42, 297, 419, 45, 44, 407, - 296, 44, 416, 286, 45, 44, 44, 45, 44, 46, - 45, 47, 45, 139, 142, 46, 46, 280, 48, 45, - 46, 47, 139, 142, 47, 48, 48, 238, 48, 237, - 52, 48, 52, 236, 52, 52, 52, 53, 53, 52, - 53, 53, 53, 233, 54, 53, 54, 54, 54, 55, - 230, 143, 56, 55, 56, 56, 56, 226, 220, 55, - 143, 57, 55, 57, 57, 57, 58, 215, 58, 58, - 58, 73, 73, 73, 167, 74, 74, 74, 77, 77, - 77, 78, 88, 78, 78, 78, 56, 74, 87, 87, - - 87, 74, 88, 90, 58, 88, 89, 89, 89, 92, - 91, 93, 166, 90, 91, 165, 90, 87, 94, 92, - 91, 93, 92, 91, 93, 92, 92, 95, 94, 96, - 94, 94, 95, 97, 101, 164, 89, 95, 89, 96, - 95, 99, 96, 97, 101, 97, 97, 101, 98, 89, - 98, 99, 100, 89, 99, 162, 158, 99, 98, 157, - 102, 98, 100, 153, 103, 100, 152, 146, 104, 100, - 102, 133, 102, 102, 103, 105, 106, 103, 104, 103, - 104, 104, 84, 107, 82, 105, 106, 80, 105, 106, - 108, 109, 105, 107, 79, 75, 107, 107, 110, 72, - - 108, 109, 66, 108, 109, 62, 108, 108, 110, 110, - 111, 110, 112, 59, 113, 110, 51, 50, 113, 114, - 111, 114, 112, 111, 113, 112, 115, 113, 28, 114, - 111, 117, 114, 119, 115, 26, 115, 116, 116, 115, - 18, 117, 118, 119, 117, 15, 119, 116, 117, 14, - 116, 120, 118, 11, 7, 118, 2, 122, 121, 118, - 0, 120, 0, 123, 120, 120, 121, 122, 121, 124, - 122, 121, 122, 123, 125, 0, 123, 125, 127, 124, - 0, 123, 124, 124, 125, 123, 126, 125, 127, 0, - 126, 127, 128, 127, 0, 0, 126, 130, 129, 126, - - 128, 0, 128, 0, 0, 128, 129, 130, 129, 0, - 130, 129, 168, 134, 130, 134, 135, 135, 135, 138, - 138, 138, 168, 134, 0, 168, 134, 0, 0, 134, - 134, 136, 0, 136, 136, 136, 137, 0, 137, 137, - 137, 140, 140, 140, 144, 144, 144, 145, 0, 145, - 145, 145, 0, 140, 155, 155, 155, 140, 149, 149, - 149, 150, 150, 150, 0, 136, 140, 141, 169, 170, - 149, 170, 169, 150, 151, 151, 151, 0, 169, 170, - 0, 169, 170, 213, 213, 213, 151, 0, 0, 141, - 151, 0, 0, 141, 141, 141, 141, 141, 141, 141, - - 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, - 141, 141, 141, 141, 141, 141, 163, 163, 163, 171, - 172, 173, 214, 214, 214, 224, 224, 224, 175, 171, - 172, 173, 171, 172, 173, 171, 172, 172, 175, 174, - 176, 175, 0, 174, 0, 0, 163, 176, 163, 174, - 176, 177, 174, 176, 0, 177, 178, 179, 180, 163, - 178, 177, 181, 163, 177, 0, 178, 179, 180, 178, - 179, 180, 181, 179, 182, 181, 182, 0, 183, 184, - 185, 278, 278, 278, 182, 0, 0, 182, 183, 184, - 185, 183, 184, 185, 186, 187, 0, 185, 186, 187, - - 189, 188, 190, 0, 186, 187, 191, 186, 187, 188, - 189, 188, 190, 189, 188, 190, 191, 192, 193, 191, - 0, 191, 194, 195, 0, 0, 192, 192, 193, 0, - 192, 193, 194, 195, 196, 194, 195, 193, 197, 194, - 198, 406, 406, 406, 196, 199, 200, 196, 197, 199, - 198, 197, 196, 198, 201, 199, 200, 198, 199, 200, - 203, 202, 204, 200, 201, 202, 204, 201, 206, 207, - 203, 202, 204, 203, 202, 204, 205, 0, 206, 207, - 205, 206, 207, 209, 208, 210, 205, 208, 0, 205, - 212, 0, 210, 209, 208, 210, 209, 208, 210, 0, - - 212, 0, 0, 212, 217, 217, 217, 218, 218, 218, - 219, 219, 219, 228, 228, 228, 217, 0, 239, 218, - 217, 0, 219, 218, 0, 228, 219, 239, 239, 217, - 0, 239, 218, 0, 0, 219, 221, 221, 221, 229, - 229, 229, 231, 231, 231, 0, 240, 0, 221, 0, - 241, 229, 221, 0, 231, 229, 240, 241, 231, 240, - 241, 221, 223, 241, 412, 412, 412, 413, 413, 413, - 223, 223, 0, 0, 223, 223, 223, 223, 223, 223, - 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, - 223, 223, 223, 223, 223, 223, 223, 242, 243, 0, - - 0, 384, 384, 384, 244, 0, 245, 242, 243, 0, - 242, 243, 244, 242, 244, 243, 245, 244, 246, 245, - 384, 0, 0, 247, 245, 0, 0, 248, 246, 249, - 0, 246, 0, 247, 247, 246, 247, 248, 250, 249, - 248, 0, 249, 251, 252, 253, 0, 251, 250, 0, - 250, 250, 0, 251, 252, 253, 251, 252, 253, 254, - 255, 256, 253, 254, 0, 0, 257, 258, 0, 254, - 255, 256, 254, 255, 256, 255, 257, 258, 259, 257, - 258, 257, 260, 258, 0, 0, 261, 0, 259, 0, - 262, 259, 260, 0, 263, 260, 261, 259, 264, 261, - - 262, 261, 264, 262, 263, 265, 266, 263, 264, 0, - 0, 264, 267, 265, 268, 265, 266, 0, 265, 266, - 267, 266, 267, 0, 268, 267, 269, 268, 269, 268, - 270, 271, 272, 414, 414, 414, 269, 0, 0, 269, - 270, 271, 272, 270, 271, 272, 273, 274, 275, 0, - 270, 273, 275, 276, 277, 282, 273, 274, 275, 273, - 274, 275, 0, 276, 277, 282, 276, 277, 0, 282, - 0, 0, 277, 415, 415, 415, 0, 0, 282, 283, - 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, - 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, - - 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, - 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, - 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, - 283, 283, 283, 283, 284, 284, 284, 285, 285, 285, - 287, 287, 287, 0, 298, 299, 284, 0, 0, 285, - 284, 300, 287, 285, 298, 299, 287, 298, 299, 284, - 0, 300, 285, 0, 300, 287, 288, 288, 288, 288, - 288, 288, 288, 288, 288, 288, 288, 288, 288, 288, - 288, 288, 288, 288, 288, 288, 288, 288, 288, 288, - 288, 288, 288, 288, 288, 288, 288, 288, 288, 288, - - 288, 288, 288, 288, 288, 288, 288, 288, 288, 288, - 288, 288, 288, 288, 288, 288, 288, 288, 288, 288, - 288, 291, 291, 291, 0, 301, 417, 417, 417, 302, - 303, 0, 0, 291, 0, 301, 0, 291, 301, 302, - 303, 302, 302, 303, 304, 305, 306, 0, 304, 306, - 307, 308, 0, 305, 304, 305, 306, 304, 305, 306, - 307, 308, 309, 307, 308, 0, 310, 0, 311, 0, - 309, 0, 309, 0, 312, 309, 310, 310, 311, 310, - 0, 311, 313, 0, 312, 311, 312, 312, 313, 313, - 314, 0, 315, 313, 0, 0, 315, 0, 316, 318, - - 314, 0, 315, 314, 314, 315, 316, 317, 316, 318, - 0, 316, 318, 317, 321, 0, 318, 317, 0, 319, - 317, 319, 0, 320, 321, 320, 321, 321, 322, 319, - 322, 0, 319, 320, 323, 324, 320, 0, 322, 325, - 0, 322, 324, 0, 323, 324, 326, 323, 324, 325, - 327, 326, 325, 0, 328, 0, 326, 0, 327, 326, - 327, 340, 329, 327, 328, 329, 0, 328, 331, 331, - 331, 340, 329, 341, 340, 329, 332, 332, 332, 340, - 331, 0, 0, 341, 331, 0, 341, 342, 332, 343, - 341, 343, 332, 331, 334, 334, 334, 342, 344, 343, - - 342, 332, 343, 345, 0, 346, 334, 0, 344, 0, - 334, 344, 0, 345, 344, 346, 345, 347, 346, 334, - 0, 347, 348, 350, 349, 345, 349, 347, 351, 352, - 347, 0, 348, 350, 349, 348, 350, 349, 351, 352, - 353, 351, 352, 0, 354, 355, 0, 354, 0, 355, - 353, 357, 356, 353, 354, 355, 356, 354, 355, 358, - 359, 357, 356, 0, 357, 356, 360, 361, 357, 358, - 359, 362, 358, 359, 0, 363, 360, 361, 0, 360, - 361, 362, 364, 0, 362, 363, 364, 363, 363, 368, - 369, 370, 364, 368, 0, 364, 371, 372, 0, 368, - - 369, 370, 368, 369, 370, 373, 371, 372, 0, 371, - 372, 374, 375, 0, 0, 373, 375, 373, 373, 377, - 0, 374, 375, 374, 374, 375, 376, 0, 376, 377, - 379, 378, 377, 378, 379, 380, 376, 381, 0, 376, - 379, 378, 382, 379, 378, 380, 382, 381, 380, 383, - 381, 388, 382, 383, 0, 382, 389, 390, 391, 383, - 0, 388, 383, 0, 388, 393, 389, 390, 391, 389, - 390, 391, 392, 394, 390, 393, 392, 394, 393, 395, - 0, 396, 392, 394, 396, 392, 394, 397, 0, 395, - 397, 396, 395, 0, 396, 0, 400, 397, 0, 0, - - 397, 398, 398, 398, 402, 398, 400, 0, 401, 400, - 398, 0, 400, 401, 402, 403, 404, 402, 401, 0, - 398, 401, 405, 0, 0, 403, 404, 0, 403, 404, - 0, 0, 405, 0, 410, 405, 408, 408, 408, 408, - 409, 409, 409, 411, 410, 0, 408, 410, 0, 420, - 420, 420, 0, 411, 0, 0, 411, 0, 420, 0, - 0, 408, 0, 0, 421, 421, 421, 421, 0, 0, - 409, 0, 409, 420, 421, 422, 422, 422, 422, 423, - 423, 423, 0, 409, 0, 422, 0, 409, 0, 421, - 424, 424, 424, 424, 425, 425, 425, 426, 426, 426, - - 422, 0, 427, 427, 427, 0, 428, 428, 428, 0, - 429, 429, 429, 430, 430, 430, 0, 431, 431, 431, - 432, 432, 432, 0, 425, 0, 425, 426, 0, 426, - 0, 0, 427, 0, 427, 0, 0, 425, 0, 0, - 426, 425, 0, 0, 426, 427, 428, 0, 0, 427, - 429, 431, 433, 433, 433, 435, 435, 435, 0, 0, - 430, 436, 436, 436, 437, 437, 437, 438, 438, 438, - 443, 443, 443, 444, 444, 444, 438, 440, 440, 440, - 0, 441, 441, 441, 0, 442, 442, 442, 445, 445, - 445, 438, 439, 439, 439, 439, 439, 439, 439, 439, - - 439, 439, 439, 439, 439, 439, 439, 439, 439, 446, - 446, 446, 439, 439, 439, 439, 441, 0, 439, 440, - 442, 448, 448, 448, 450, 450, 450, 449, 449, 449, - 451, 451, 451, 452, 452, 452, 453, 453, 453, 0, - 455, 455, 455, 439, 439, 439, 439, 447, 447, 447, - 447, 447, 447, 447, 447, 447, 447, 447, 447, 447, - 447, 447, 447, 447, 449, 448, 0, 447, 447, 447, - 447, 455, 0, 447, 454, 454, 454, 456, 456, 456, - 459, 459, 459, 460, 460, 460, 461, 461, 461, 462, - 462, 462, 463, 463, 463, 464, 464, 464, 447, 447, - - 447, 447, 0, 454, 465, 465, 465, 466, 466, 466, - 0, 456, 457, 457, 457, 457, 457, 457, 457, 457, - 457, 457, 457, 457, 457, 457, 457, 457, 457, 0, - 0, 0, 457, 457, 457, 457, 0, 0, 457, 0, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, + 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, + 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, + 6, 6, 6, 6, 12, 15, 20, 16, 21, 30, + + 30, 83, 83, 4, 28, 20, 21, 97, 97, 15, + 22, 3, 22, 22, 22, 53, 23, 6, 4, 16, + 23, 12, 28, 28, 66, 24, 23, 24, 24, 24, + 25, 496, 25, 25, 25, 26, 478, 26, 26, 26, + 31, 31, 31, 31, 32, 32, 32, 32, 461, 24, + 40, 66, 53, 59, 25, 59, 59, 59, 40, 26, + 40, 31, 152, 40, 452, 32, 24, 451, 40, 73, + 26, 25, 35, 35, 35, 35, 26, 152, 439, 44, + 32, 36, 36, 36, 36, 37, 37, 37, 37, 44, + 38, 73, 44, 35, 38, 39, 155, 41, 44, 156, + + 38, 41, 36, 38, 425, 39, 37, 41, 39, 424, + 41, 155, 38, 50, 156, 405, 39, 42, 88, 88, + 88, 37, 42, 50, 35, 404, 50, 42, 42, 42, + 42, 37, 36, 42, 37, 43, 45, 46, 462, 43, + 61, 46, 61, 61, 61, 43, 45, 46, 43, 45, + 46, 45, 47, 43, 45, 62, 47, 62, 62, 62, + 462, 48, 47, 403, 61, 47, 377, 99, 48, 47, + 47, 48, 47, 376, 48, 49, 48, 99, 374, 62, + 99, 61, 51, 48, 103, 49, 331, 49, 49, 51, + 51, 49, 51, 56, 103, 51, 62, 103, 56, 330, + + 81, 81, 81, 56, 56, 56, 56, 251, 57, 56, + 57, 251, 57, 57, 57, 58, 58, 57, 58, 58, + 58, 60, 81, 58, 63, 60, 63, 63, 63, 170, + 170, 60, 82, 82, 82, 82, 86, 86, 86, 87, + 60, 87, 87, 87, 327, 316, 82, 475, 63, 448, + 82, 98, 98, 98, 98, 266, 475, 101, 86, 63, + 148, 148, 148, 87, 101, 63, 100, 100, 100, 100, + 488, 104, 98, 105, 101, 104, 448, 101, 106, 488, + 87, 104, 107, 105, 104, 265, 105, 109, 106, 105, + 105, 106, 107, 108, 107, 107, 264, 109, 108, 110, + + 109, 459, 261, 108, 112, 100, 108, 100, 260, 110, + 254, 110, 110, 111, 112, 111, 243, 112, 100, 113, + 112, 114, 100, 111, 497, 115, 111, 237, 459, 113, + 116, 114, 113, 497, 114, 115, 113, 115, 115, 117, + 116, 186, 185, 116, 118, 116, 119, 184, 183, 117, + 120, 117, 117, 181, 118, 121, 119, 118, 312, 119, + 120, 118, 177, 120, 120, 121, 122, 123, 121, 176, + 312, 121, 121, 124, 312, 125, 122, 123, 123, 122, + 123, 169, 161, 124, 123, 125, 124, 126, 125, 312, + 146, 126, 127, 124, 127, 95, 128, 126, 129, 129, + + 126, 93, 127, 130, 128, 127, 128, 92, 129, 128, + 90, 129, 131, 130, 132, 89, 130, 80, 133, 74, + 130, 68, 131, 65, 132, 131, 134, 132, 133, 131, + 135, 133, 133, 55, 134, 34, 134, 136, 137, 134, + 135, 29, 27, 135, 19, 135, 14, 136, 137, 11, + 136, 137, 137, 138, 139, 136, 138, 7, 139, 136, + 140, 141, 2, 138, 139, 0, 138, 139, 142, 141, + 140, 141, 143, 140, 141, 140, 142, 147, 142, 147, + 0, 142, 143, 0, 0, 143, 0, 147, 0, 143, + 147, 0, 0, 147, 147, 149, 0, 149, 149, 149, + + 150, 0, 150, 150, 150, 151, 151, 151, 158, 158, + 158, 153, 153, 153, 153, 160, 160, 160, 159, 149, + 159, 159, 159, 0, 150, 153, 0, 151, 0, 153, + 158, 172, 172, 172, 0, 0, 149, 166, 166, 166, + 166, 150, 159, 0, 153, 154, 154, 167, 167, 167, + 167, 166, 187, 172, 173, 173, 173, 0, 0, 159, + 0, 167, 187, 0, 0, 187, 236, 236, 236, 154, + 154, 154, 154, 154, 154, 0, 173, 0, 0, 0, + 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, + 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, + + 154, 154, 154, 168, 168, 168, 168, 447, 447, 447, + 447, 455, 455, 455, 455, 0, 0, 168, 0, 0, + 0, 168, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 0, 174, 174, 0, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 175, 175, + 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, + + 175, 175, 175, 175, 175, 175, 175, 0, 0, 0, + 175, 175, 175, 175, 188, 182, 182, 182, 182, 191, + 175, 189, 175, 175, 188, 189, 190, 188, 190, 191, + 192, 189, 191, 0, 189, 191, 190, 0, 0, 190, + 192, 0, 0, 192, 0, 193, 192, 192, 175, 175, + 175, 175, 175, 175, 182, 193, 182, 0, 193, 194, + 195, 0, 0, 194, 200, 0, 0, 182, 196, 194, + 195, 182, 194, 195, 200, 196, 197, 200, 196, 0, + 197, 196, 199, 198, 201, 0, 197, 198, 0, 197, + 203, 0, 199, 198, 201, 199, 198, 201, 199, 202, + + 203, 202, 0, 203, 204, 205, 206, 0, 0, 202, + 206, 0, 202, 208, 204, 205, 206, 204, 205, 206, + 207, 208, 205, 208, 207, 209, 208, 210, 0, 211, + 207, 0, 0, 207, 0, 209, 212, 210, 209, 211, + 210, 213, 211, 215, 211, 212, 212, 0, 214, 212, + 0, 213, 0, 215, 213, 0, 215, 216, 214, 217, + 213, 214, 0, 218, 219, 214, 0, 216, 219, 217, + 216, 220, 217, 218, 219, 216, 218, 219, 0, 221, + 218, 220, 0, 222, 220, 223, 0, 222, 220, 221, + 224, 0, 221, 222, 224, 223, 222, 225, 223, 226, + + 224, 225, 0, 224, 227, 228, 229, 225, 228, 226, + 225, 232, 226, 230, 227, 228, 229, 227, 228, 229, + 230, 232, 0, 230, 232, 0, 230, 233, 233, 233, + 235, 235, 235, 240, 240, 240, 240, 0, 0, 241, + 241, 241, 241, 247, 247, 247, 0, 240, 0, 233, + 0, 240, 235, 241, 248, 248, 248, 241, 0, 242, + 242, 242, 242, 0, 0, 247, 240, 244, 244, 244, + 244, 0, 241, 242, 267, 0, 248, 242, 0, 0, + 0, 244, 0, 267, 267, 244, 268, 267, 252, 252, + 252, 252, 242, 0, 276, 272, 268, 0, 0, 268, + + 244, 246, 252, 272, 276, 272, 0, 276, 272, 246, + 246, 246, 246, 246, 246, 0, 246, 0, 0, 0, + 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, + 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, + 246, 246, 246, 249, 249, 249, 249, 249, 249, 249, + 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, + 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, + 249, 249, 249, 249, 249, 249, 0, 249, 249, 0, + 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, + 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, + + 249, 249, 249, 249, 249, 249, 249, 249, 249, 250, + 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, + 250, 250, 250, 250, 250, 250, 250, 250, 0, 275, + 0, 250, 250, 250, 250, 253, 253, 253, 253, 275, + 275, 250, 275, 250, 250, 255, 255, 255, 255, 253, + 0, 269, 270, 253, 456, 456, 456, 456, 269, 255, + 0, 269, 270, 255, 269, 270, 271, 273, 270, 250, + 250, 250, 250, 250, 250, 0, 271, 273, 274, 271, + 273, 0, 0, 271, 277, 273, 278, 0, 274, 0, + 0, 274, 280, 283, 277, 274, 278, 277, 278, 278, + + 279, 281, 280, 283, 279, 280, 283, 284, 283, 0, + 279, 281, 282, 279, 281, 0, 282, 284, 281, 285, + 284, 0, 282, 286, 0, 282, 0, 287, 288, 285, + 0, 0, 285, 286, 285, 289, 286, 287, 288, 286, + 287, 288, 290, 291, 0, 289, 287, 292, 289, 0, + 289, 292, 290, 291, 293, 290, 291, 292, 294, 297, + 292, 297, 293, 0, 293, 296, 295, 293, 294, 297, + 0, 294, 297, 294, 295, 296, 295, 298, 296, 295, + 296, 299, 300, 301, 307, 307, 307, 298, 301, 302, + 298, 299, 300, 301, 299, 300, 301, 298, 304, 302, + + 303, 0, 302, 0, 303, 305, 307, 0, 304, 0, + 303, 304, 332, 303, 333, 305, 334, 0, 305, 308, + 308, 308, 332, 305, 333, 332, 334, 333, 0, 334, + 457, 457, 457, 457, 458, 458, 458, 458, 0, 0, + 0, 308, 309, 309, 309, 309, 309, 309, 309, 309, + 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, + 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, + 309, 309, 309, 309, 309, 0, 309, 309, 0, 309, + 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, + 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, + + 309, 309, 309, 309, 309, 309, 309, 309, 310, 310, + 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, + 310, 310, 310, 310, 310, 310, 310, 0, 335, 0, + 310, 310, 310, 310, 314, 314, 314, 314, 335, 0, + 310, 335, 310, 310, 324, 324, 324, 324, 314, 0, + 0, 336, 314, 460, 460, 460, 460, 0, 324, 0, + 0, 336, 324, 336, 336, 0, 0, 314, 310, 310, + 310, 310, 310, 310, 313, 313, 313, 313, 313, 313, + 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, + 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, + + 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, + 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, + 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, + 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, + 315, 315, 315, 315, 0, 317, 317, 317, 317, 0, + 0, 337, 338, 0, 315, 0, 338, 340, 315, 317, + 340, 337, 338, 317, 337, 338, 0, 340, 0, 0, + 340, 0, 0, 315, 466, 466, 466, 466, 317, 318, + 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, + 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, + + 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, + 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, + 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, + 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, + 318, 318, 318, 318, 318, 339, 341, 342, 467, 467, + 467, 467, 467, 339, 343, 339, 341, 342, 339, 341, + 342, 344, 343, 345, 343, 346, 0, 343, 0, 0, + 0, 344, 344, 345, 344, 346, 345, 346, 346, 347, + 345, 0, 0, 348, 347, 473, 473, 473, 473, 347, + 349, 347, 347, 348, 349, 0, 348, 348, 350, 351, + + 349, 0, 0, 349, 352, 351, 350, 0, 350, 351, + 0, 350, 351, 353, 352, 353, 0, 352, 354, 0, + 354, 352, 355, 353, 0, 0, 353, 356, 354, 356, + 0, 354, 355, 357, 355, 355, 0, 356, 358, 359, + 356, 473, 0, 357, 0, 358, 357, 0, 358, 359, + 360, 358, 359, 0, 361, 360, 362, 0, 363, 0, + 360, 363, 361, 360, 361, 0, 362, 361, 363, 362, + 0, 363, 368, 368, 368, 368, 0, 369, 369, 369, + 369, 0, 371, 371, 371, 371, 368, 0, 378, 380, + 368, 369, 0, 0, 379, 369, 371, 0, 378, 380, + + 371, 378, 380, 382, 379, 368, 378, 379, 383, 0, + 369, 379, 381, 382, 381, 371, 382, 0, 383, 382, + 0, 383, 381, 384, 385, 381, 0, 0, 385, 386, + 383, 388, 0, 384, 385, 0, 384, 385, 387, 386, + 387, 388, 386, 389, 388, 390, 0, 391, 387, 392, + 0, 387, 392, 389, 0, 390, 389, 391, 390, 392, + 391, 393, 392, 394, 0, 393, 0, 394, 395, 396, + 397, 393, 0, 394, 393, 0, 394, 398, 395, 396, + 397, 395, 396, 397, 399, 395, 400, 398, 401, 0, + 398, 0, 0, 0, 399, 408, 400, 399, 401, 400, + + 401, 401, 402, 407, 409, 408, 402, 407, 408, 410, + 411, 0, 402, 407, 409, 402, 407, 409, 412, 410, + 411, 0, 410, 411, 413, 414, 0, 0, 412, 414, + 412, 412, 416, 0, 413, 414, 413, 413, 414, 415, + 0, 415, 416, 418, 417, 416, 417, 418, 419, 415, + 420, 0, 415, 418, 417, 421, 418, 417, 419, 421, + 420, 419, 422, 420, 0, 421, 422, 0, 421, 0, + 428, 429, 422, 0, 0, 422, 423, 423, 423, 423, + 428, 429, 430, 428, 429, 0, 0, 431, 476, 476, + 476, 476, 430, 433, 432, 430, 0, 431, 432, 430, + + 431, 434, 0, 433, 432, 434, 433, 432, 435, 0, + 436, 434, 423, 436, 434, 0, 437, 0, 435, 437, + 436, 435, 423, 436, 0, 423, 437, 0, 441, 437, + 438, 438, 438, 438, 0, 438, 443, 442, 441, 0, + 438, 441, 442, 444, 441, 445, 443, 442, 0, 443, + 442, 438, 446, 444, 0, 445, 444, 0, 445, 0, + 0, 0, 446, 0, 0, 446, 449, 449, 449, 449, + 449, 450, 450, 450, 450, 453, 454, 449, 0, 0, + 0, 463, 463, 463, 463, 453, 454, 0, 453, 454, + 0, 463, 464, 464, 464, 464, 464, 0, 0, 449, + + 0, 0, 0, 464, 465, 465, 465, 465, 465, 0, + 450, 0, 450, 463, 0, 465, 468, 468, 468, 468, + 0, 0, 0, 450, 0, 464, 0, 450, 469, 469, + 469, 469, 471, 471, 471, 471, 0, 465, 470, 470, + 470, 470, 472, 472, 472, 472, 474, 474, 474, 474, + 477, 477, 477, 477, 0, 468, 0, 468, 479, 479, + 479, 479, 480, 480, 480, 480, 0, 469, 468, 469, + 0, 0, 468, 481, 481, 481, 481, 470, 0, 470, + 469, 471, 0, 0, 469, 482, 482, 482, 482, 474, + 470, 472, 0, 0, 470, 482, 484, 484, 484, 484, + + 485, 485, 485, 485, 486, 486, 486, 486, 489, 489, + 489, 489, 490, 490, 490, 490, 0, 482, 483, 483, + 483, 483, 483, 483, 483, 483, 483, 483, 483, 483, + 483, 483, 483, 483, 483, 483, 483, 0, 0, 0, + 483, 483, 483, 483, 485, 0, 0, 484, 486, 0, + 483, 0, 483, 483, 491, 491, 491, 491, 492, 492, + 492, 492, 494, 494, 494, 494, 495, 495, 495, 495, + 498, 498, 498, 498, 499, 499, 499, 499, 483, 483, + 483, 483, 483, 483, 493, 493, 493, 493, 493, 493, + 493, 493, 493, 493, 493, 493, 493, 493, 493, 493, + + 493, 493, 493, 0, 0, 0, 493, 493, 493, 493, + 0, 0, 495, 0, 0, 494, 493, 0, 493, 493, + 500, 500, 500, 500, 501, 501, 501, 501, 502, 502, + 502, 502, 503, 503, 503, 503, 504, 504, 504, 504, + 507, 507, 507, 507, 493, 493, 493, 493, 493, 493, + 508, 508, 508, 508, 509, 509, 509, 509, 510, 510, + 510, 510, 511, 511, 511, 511, 502, 512, 512, 512, + 512, 0, 503, 513, 513, 513, 513, 0, 0, 504, + 505, 505, 505, 505, 505, 505, 505, 505, 505, 505, + 505, 505, 505, 505, 505, 505, 505, 505, 505, 0, + + 0, 0, 505, 505, 505, 505, 514, 514, 514, 514, + 0, 0, 505, 0, 505, 505, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 457, 457, 457, 457, 458, 458, 458, - 458, 458, 458, 458, 458, 458, 458, 458, 458, 458, - 458, 458, 458, 458, 0, 0, 0, 458, 458, 458, - 458, 0, 0, 458, 0, 0, 0, 0, 0, 0, - + 505, 505, 505, 505, 505, 505, 506, 506, 506, 506, + 506, 506, 506, 506, 506, 506, 506, 506, 506, 506, + 506, 506, 506, 506, 506, 0, 0, 0, 506, 506, + 506, 506, 0, 0, 0, 0, 0, 0, 506, 0, + 506, 506, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 458, 458, - 458, 458, 468, 468, 0, 468, 468, 468, 468, 468, - 469, 469, 0, 469, 469, 469, 469, 469, 470, 470, - 0, 0, 470, 470, 470, 471, 471, 0, 471, 471, - 471, 471, 471, 472, 472, 472, 472, 472, 472, 472, - 472, 473, 473, 473, 473, 473, 473, 473, 473, 474, - 474, 474, 475, 475, 475, 475, 475, 475, 475, 475, - 476, 476, 476, 477, 477, 477, 477, 477, 477, 477, - 477, 478, 478, 479, 479, 479, 481, 481, 481, 481, - - 481, 481, 481, 481, 482, 482, 483, 483, 483, 483, - 483, 483, 483, 483, 484, 484, 484, 484, 484, 485, - 485, 486, 486, 486, 486, 486, 486, 486, 486, 487, - 487, 487, 487, 487, 488, 488, 488, 488, 488, 489, - 489, 489, 489, 489, 490, 490, 490, 490, 490, 490, - 490, 490, 491, 491, 491, 491, 491, 491, 491, 492, - 492, 0, 492, 492, 492, 492, 492, 493, 493, 493, - 493, 493, 493, 493, 493, 494, 494, 0, 494, 494, - 494, 494, 494, 467, 467, 467, 467, 467, 467, 467, - 467, 467, 467, 467, 467, 467, 467, 467, 467, 467, - - 467, 467, 467, 467, 467, 467, 467, 467, 467, 467, - 467, 467, 467, 467, 467, 467, 467, 467, 467, 467, - 467, 467, 467, 467, 467, 467, 467, 467, 467, 467, - 467, 467, 467, 467, 467, 467, 467, 467, 467 + + 0, 0, 0, 0, 0, 0, 506, 506, 506, 506, + 506, 506, 516, 516, 0, 516, 516, 516, 516, 516, + 516, 516, 516, 517, 0, 517, 517, 517, 518, 518, + 0, 518, 518, 518, 518, 518, 518, 518, 518, 519, + 519, 519, 519, 519, 519, 0, 0, 0, 519, 519, + 520, 520, 0, 0, 520, 520, 520, 520, 520, 520, + 521, 521, 0, 521, 521, 521, 521, 521, 521, 521, + 521, 522, 522, 522, 522, 522, 522, 0, 0, 0, + 522, 522, 523, 523, 523, 523, 523, 523, 524, 524, + 524, 524, 524, 524, 0, 0, 0, 524, 525, 525, + + 525, 525, 525, 525, 525, 525, 525, 525, 525, 526, + 526, 526, 526, 526, 526, 526, 526, 526, 526, 526, + 527, 527, 527, 0, 0, 527, 527, 528, 528, 528, + 528, 528, 528, 0, 0, 0, 528, 528, 529, 529, + 529, 529, 529, 529, 0, 0, 0, 529, 530, 530, + 530, 530, 530, 530, 530, 530, 530, 530, 530, 531, + 531, 531, 0, 0, 531, 531, 532, 532, 532, 532, + 532, 532, 532, 532, 532, 532, 532, 533, 533, 533, + 533, 533, 533, 0, 0, 0, 533, 534, 534, 534, + 0, 0, 534, 534, 535, 0, 0, 535, 535, 536, + + 536, 536, 536, 536, 536, 536, 536, 536, 536, 536, + 537, 537, 537, 537, 537, 537, 537, 537, 537, 537, + 537, 538, 538, 538, 538, 538, 539, 539, 539, 539, + 539, 539, 539, 539, 539, 539, 539, 540, 540, 540, + 540, 540, 541, 541, 541, 541, 541, 542, 542, 542, + 542, 542, 543, 543, 543, 543, 543, 543, 543, 543, + 543, 543, 543, 544, 544, 544, 544, 544, 544, 544, + 544, 544, 544, 544, 545, 545, 545, 545, 545, 545, + 545, 545, 545, 545, 546, 546, 0, 546, 546, 546, + 546, 546, 546, 546, 546, 547, 547, 547, 547, 547, + + 547, 547, 547, 547, 547, 547, 548, 548, 0, 548, + 548, 548, 548, 548, 548, 548, 548, 515, 515, 515, + 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, + 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, + 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, + 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, + 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, + 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, + 515, 515, 515, 515 } ; static yy_state_type yy_last_accepting_state; static char *yy_last_accepting_cpos; -extern int avm2__flex_debug; -int avm2__flex_debug = 0; +extern int as3__flex_debug; +int as3__flex_debug = 0; /* The intent behind this definition is that it'll catch * any uses of REJECT which flex missed. @@ -1116,7 +1297,7 @@ int avm2__flex_debug = 0; #define yymore() yymore_used_but_not_detected #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET -char *avm2_text; +char *as3_text; #line 1 "tokenizer.lex" /* tokenizer.lex @@ -1148,52 +1329,12 @@ char *avm2_text; #include #include #include "../utf8.h" +#include "common.h" #include "tokenizer.h" #include "files.h" -int as3_pass = 0; +unsigned int as3_tokencount = 0; -int as3_verbosity = 1; -void as3_error(const char*format, ...) -{ - char buf[1024]; - int l; - va_list arglist; - if(as3_verbosity<0) - exit(1); - va_start(arglist, format); - vsprintf(buf, format, arglist); - va_end(arglist); - fprintf(stderr, "%s:%d:%d: error: %s\n", current_filename_short, current_line, current_column, buf); - fflush(stderr); - exit(1); -} -void as3_warning(const char*format, ...) -{ - char buf[1024]; - int l; - va_list arglist; - if(as3_verbosity<1) - return; - va_start(arglist, format); - vsprintf(buf, format, arglist); - va_end(arglist); - fprintf(stderr, "%s:%d:%d: warning: %s\n", current_filename_short, current_line, current_column, buf); - fflush(stderr); -} -void as3_softwarning(const char*format, ...) -{ - char buf[1024]; - int l; - va_list arglist; - if(as3_verbosity<2) - return; - va_start(arglist, format); - vsprintf(buf, format, arglist); - va_end(arglist); - fprintf(stderr, "%s:%d:%d: warning: %s\n", current_filename_short, current_line, current_column, buf); - fflush(stderr); -} static void dbg(const char*format, ...) { char buf[1024]; @@ -1214,12 +1355,45 @@ static void dbg(const char*format, ...) fflush(stdout); } - - #ifndef YY_CURRENT_BUFFER #define YY_CURRENT_BUFFER yy_current_buffer #endif +static void*as3_buffer=0; +static int as3_buffer_pos=0; +static int as3_buffer_len=0; +void as3_file_input(FILE*fi) +{ + as3_in = fi; + as3_buffer = 0; +} +void as3_buffer_input(void*buffer, int len) +{ + if(!buffer) + syntaxerror("trying to parse zero bytearray"); + as3_buffer = buffer; + as3_buffer_len = len; + as3_buffer_pos = 0; + as3_in = 0; +} + +#define YY_INPUT(buf,result,max_size) { \ + if(!as3_buffer) { \ + errno=0; \ + while((result = fread(buf, 1, max_size, as3_in))==0 && ferror(as3_in)) \ + { if(errno != EINTR) {YY_FATAL_ERROR("input in flex scanner failed"); break;} \ + errno=0; clearerr(as3_in); \ + } \ + } else { \ + int to_read = max_size; \ + if(to_read + as3_buffer_pos > as3_buffer_len) \ + to_read = as3_buffer_len - as3_buffer_pos; \ + memcpy(buf, as3_buffer+as3_buffer_pos, to_read); \ + as3_buffer_pos += to_read; \ + result=to_read; \ + } \ +} + void handleInclude(char*text, int len, char quotes) { char*filename = 0; @@ -1242,13 +1416,14 @@ void handleInclude(char*text, int len, char quotes) filename = strdup(&text[i1]); } - char*fullfilename = enter_file(filename, YY_CURRENT_BUFFER); - avm2_in = fopen(fullfilename, "rb"); - if (!avm2_in) { + char*fullfilename = find_file(filename, 1); + enter_file2(filename, fullfilename, YY_CURRENT_BUFFER); + as3_in = fopen(fullfilename, "rb"); + if (!as3_in) { syntaxerror("Couldn't open include file \"%s\"\n", fullfilename); } - avm2__switch_to_buffer(avm2__create_buffer(avm2_in,YY_BUF_SIZE ) ); + as3__switch_to_buffer(as3__create_buffer(as3_in,YY_BUF_SIZE ) ); //BEGIN(INITIAL); keep context } @@ -1344,8 +1519,15 @@ static int do_unescape(const char*s, const char*end, char*n) } break; } - default: - syntaxerror("unknown escape sequence: \"\\%c\"", *s); + default: { + if(o) { + o[len+0] = '\\'; + o[len+1] = *s; + } + s++; + len+=2; + break; + } } } if(o) o[len]=0; @@ -1364,6 +1546,13 @@ static string_t string_unescape(const char*in, int l) return out; } +static void handleCData(char*s, int len) +{ + a3_lval.str.str = s+9; // + a3_lval.str.str = strdup_n(a3_lval.str.str, a3_lval.str.len); +} + static void handleString(char*s, int len) { if(s[0]=='"') { @@ -1375,26 +1564,16 @@ static void handleString(char*s, int len) s++;len-=2; } else syntaxerror("String incorrectly terminated"); - - avm2_lval.str = string_unescape(s, len); + a3_lval.str = string_unescape(s, len); } char start_of_expression; -static inline int mkid(int type) -{ - char*s = malloc(avm2_leng+1); - memcpy(s, avm2_text, avm2_leng); - s[avm2_leng]=0; - avm2_lval.id = s; - return type; -} - static inline int m(int type) { - avm2_lval.token = type; + a3_lval.token = type; return type; } @@ -1402,91 +1581,78 @@ static inline int m(int type) static char numberbuf[64]; static char*nrbuf() { - if(avm2_leng>sizeof(numberbuf)-1) + if(as3_leng>sizeof(numberbuf)-1) syntaxerror("decimal number overflow"); char*s = numberbuf; - memcpy(s, avm2_text, avm2_leng); - s[avm2_leng]=0; + memcpy(s, as3_text, as3_leng); + s[as3_leng]=0; return s; } static inline int setint(int v) { - avm2_lval.number_int = v; - if(v>-128) - return T_BYTE; - else if(v>=-32768) - return T_SHORT; - else - return T_INT; -} -static inline int setuint(unsigned int v) -{ - avm2_lval.number_uint = v; - if(v<128) - return T_BYTE; - else if(v<32768) - return T_SHORT; - else - return T_UINT; + a3_lval.number_int = v; + return T_INT; } static inline int setfloat(double v) { - avm2_lval.number_float = v; + a3_lval.number_float = v; return T_FLOAT; } static inline int handlefloat() { char*s = nrbuf(); - avm2_lval.number_float = atof(s); + a3_lval.number_float = atof(s); return T_FLOAT; } static inline int handleint() { char*s = nrbuf(); - char l = (avm2_text[0]=='-'); + char l = (as3_text[0]=='-'); + + //char*max = l?"1073741824":"2147483647"; + char*max = l?"2147483648":"2147483647"; - char*max = l?"1073741824":"2147483647"; - if(avm2_leng-l>10) { - as3_warning("integer overflow: %s (converted to Number)", s); + if(as3_leng-l>10) { + as3_softwarning("integer overflow: %s (converted to Number)", s); return handlefloat(); } - if(avm2_leng-l==10) { + if(as3_leng-l==10) { int t; - for(t=0;tmax[t]) { - as3_warning("integer overflow: %s (converted to Number)", s); + for(t=0;tmax[t]) { + as3_softwarning("integer overflow: %s (converted to Number)", s); return handlefloat(); } - else if(avm2_text[l+t]8) { char*s = nrbuf(); @@ -1517,27 +1683,27 @@ static inline int handlehex() unsigned int v = 0; for(t=l;t='0' && c<='9') v|=(c&15); else if((c>='a' && c<='f') || (c>='A' && c<='F')) v|=(c&0x0f)+9; } - if(l && v>1073741824) { + if(l && v>=0x80000000) { char*s = nrbuf(); - as3_warning("signed integer overflow: %s (converted to Number)", s); + as3_softwarning("integer overflow: %s (converted to Number)", s); return setfloat(v); } - if(!l && v>2147483647) { + if(!l && v>0x7fffffff) { char*s = nrbuf(); - as3_warning("unsigned integer overflow: %s (converted to Number)", s); + as3_softwarning("integer overflow: %s (converted to Number)", s); return setfloat(v); } if(l==3) { return setint(-(int)v); } else { - return setuint(v); + return setint(v); } } @@ -1550,16 +1716,16 @@ void handleLabel(char*text, int len) break; } char*s = malloc(t+1); - memcpy(s, avm2_text, t); + memcpy(s, as3_text, t); s[t]=0; - avm2_lval.id = s; + a3_lval.id = s; } static int handleregexp() { - char*s = malloc(avm2_leng); - int len=avm2_leng-1; - memcpy(s, avm2_text+1, len); + char*s = malloc(as3_leng); + int len=as3_leng-1; + memcpy(s, as3_text+1, len); s[len] = 0; int t; for(t=len;t>=0;--t) { @@ -1568,11 +1734,11 @@ static int handleregexp() break; } } - avm2_lval.regexp.pattern = s; + a3_lval.regexp.pattern = s; if(t==len) { - avm2_lval.regexp.options = 0; + a3_lval.regexp.options = 0; } else { - avm2_lval.regexp.options = s+t+1; + a3_lval.regexp.options = s+t+1; } return T_REGEXP; } @@ -1583,8 +1749,8 @@ void initialize_scanner(); /* count the number of lines+columns consumed by this token */ static inline void l() { int t; - for(t=0;t 0 ) \ + if ( as3_leng > 0 ) \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \ - (avm2_text[avm2_leng - 1] == '\n'); \ + (as3_text[as3_leng - 1] == '\n'); \ YY_USER_ACTION /** The main scanner function which does all the work. @@ -1792,11 +1984,11 @@ YY_DECL register char *yy_cp, *yy_bp; register int yy_act; -#line 509 "tokenizer.lex" +#line 521 "tokenizer.lex" -#line 1800 "tokenizer.yy.c" +#line 1992 "tokenizer.yy.c" if ( !(yy_init) ) { @@ -1809,26 +2001,26 @@ YY_DECL if ( ! (yy_start) ) (yy_start) = 1; /* first start state */ - if ( ! avm2_in ) - avm2_in = stdin; + if ( ! as3_in ) + as3_in = stdin; - if ( ! avm2_out ) - avm2_out = stdout; + if ( ! as3_out ) + as3_out = stdout; if ( ! YY_CURRENT_BUFFER ) { - avm2_ensure_buffer_stack (); + as3_ensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = - avm2__create_buffer(avm2_in,YY_BUF_SIZE ); + as3__create_buffer(as3_in,YY_BUF_SIZE ); } - avm2__load_buffer_state( ); + as3__load_buffer_state( ); } while ( 1 ) /* loops until end-of-file is reached */ { yy_cp = (yy_c_buf_p); - /* Support of avm2_text. */ + /* Support of as3_text. */ *yy_cp = (yy_hold_char); /* yy_bp points to the position in yy_ch_buf of the start of @@ -1850,13 +2042,13 @@ yy_match: 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 >= 468 ) + if ( yy_current_state >= 516 ) 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 != 467 ); + while ( yy_current_state != 515 ); yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); @@ -1879,560 +2071,629 @@ do_action: /* This label is used only to access EOF actions. */ case 1: /* rule 1 can match eol */ YY_RULE_SETUP -#line 512 "tokenizer.lex" +#line 524 "tokenizer.lex" {l(); /* single line comment */} YY_BREAK case 2: /* rule 2 can match eol */ YY_RULE_SETUP -#line 513 "tokenizer.lex" +#line 525 "tokenizer.lex" {l(); /* multi line comment */} YY_BREAK case 3: YY_RULE_SETUP -#line 514 "tokenizer.lex" -{syntaxerror("syntax error: unterminated comment", avm2_text);} +#line 526 "tokenizer.lex" +{syntaxerror("syntax error: unterminated comment", as3_text);} YY_BREAK case 4: /* rule 4 can match eol */ -*yy_cp = (yy_hold_char); /* undo effects of setting up avm2_text */ +*yy_cp = (yy_hold_char); /* undo effects of setting up as3_text */ (yy_c_buf_p) = yy_cp -= 1; -YY_DO_BEFORE_ACTION; /* set up avm2_text again */ +YY_DO_BEFORE_ACTION; /* set up as3_text again */ YY_RULE_SETUP -#line 516 "tokenizer.lex" -{l();handleInclude(avm2_text, avm2_leng, 1);} +#line 528 "tokenizer.lex" +{l();handleInclude(as3_text, as3_leng, 1);} YY_BREAK case 5: /* rule 5 can match eol */ -*yy_cp = (yy_hold_char); /* undo effects of setting up avm2_text */ +*yy_cp = (yy_hold_char); /* undo effects of setting up as3_text */ (yy_c_buf_p) = yy_cp -= 1; -YY_DO_BEFORE_ACTION; /* set up avm2_text again */ +YY_DO_BEFORE_ACTION; /* set up as3_text again */ YY_RULE_SETUP -#line 517 "tokenizer.lex" -{l();handleInclude(avm2_text, avm2_leng, 0);} +#line 529 "tokenizer.lex" +{l();handleInclude(as3_text, as3_leng, 0);} YY_BREAK case 6: /* rule 6 can match eol */ YY_RULE_SETUP -#line 518 "tokenizer.lex" -{l(); BEGIN(INITIAL);handleString(avm2_text, avm2_leng);return T_STRING;} +#line 530 "tokenizer.lex" +{l(); BEGIN(INITIAL);handleString(as3_text, as3_leng);return T_STRING;} YY_BREAK - case 7: +/* rule 7 can match eol */ YY_RULE_SETUP -#line 521 "tokenizer.lex" -{c(); BEGIN(INITIAL);return handleregexp();} +#line 531 "tokenizer.lex" +{l(); BEGIN(INITIAL);handleCData(as3_text, as3_leng);return T_STRING;} YY_BREAK + case 8: YY_RULE_SETUP -#line 522 "tokenizer.lex" -{c(); BEGIN(INITIAL);return handlehex();} +#line 534 "tokenizer.lex" +{c(); BEGIN(INITIAL);return handleregexp();} YY_BREAK case 9: +/* rule 9 can match eol */ +*yy_cp = (yy_hold_char); /* undo effects of setting up as3_text */ +(yy_c_buf_p) = yy_cp -= 1; +YY_DO_BEFORE_ACTION; /* set up as3_text again */ YY_RULE_SETUP -#line 523 "tokenizer.lex" -{c(); BEGIN(INITIAL);return handlehexfloat();} +#line 535 "tokenizer.lex" +{c(); BEGIN(INITIAL);return handlehex();} YY_BREAK case 10: +/* rule 10 can match eol */ +*yy_cp = (yy_hold_char); /* undo effects of setting up as3_text */ +(yy_c_buf_p) = yy_cp -= 1; +YY_DO_BEFORE_ACTION; /* set up as3_text again */ YY_RULE_SETUP -#line 524 "tokenizer.lex" -{c(); BEGIN(INITIAL);return handleint();} +#line 536 "tokenizer.lex" +{c(); BEGIN(INITIAL);return handlehexfloat();} YY_BREAK case 11: +/* rule 11 can match eol */ +*yy_cp = (yy_hold_char); /* undo effects of setting up as3_text */ +(yy_c_buf_p) = yy_cp -= 1; +YY_DO_BEFORE_ACTION; /* set up as3_text again */ YY_RULE_SETUP -#line 525 "tokenizer.lex" -{c(); BEGIN(INITIAL);return handlefloat();} +#line 537 "tokenizer.lex" +{c(); BEGIN(INITIAL);return handleint();} YY_BREAK - case 12: +/* rule 12 can match eol */ +*yy_cp = (yy_hold_char); /* undo effects of setting up as3_text */ +(yy_c_buf_p) = yy_cp -= 1; +YY_DO_BEFORE_ACTION; /* set up as3_text again */ YY_RULE_SETUP -#line 528 "tokenizer.lex" -{/* utf 8 bom */} +#line 538 "tokenizer.lex" +{c(); BEGIN(INITIAL);return handlefloat();} YY_BREAK + case 13: -/* rule 13 can match eol */ YY_RULE_SETUP -#line 529 "tokenizer.lex" -{l();} +#line 541 "tokenizer.lex" +{c(); BEGIN(REGEXPOK);return m(T_DICTSTART);} YY_BREAK case 14: YY_RULE_SETUP -#line 531 "tokenizer.lex" -{c(); BEGIN(INITIAL);return handlehex();} +#line 542 "tokenizer.lex" +{c(); BEGIN(INITIAL); return m('{');} YY_BREAK case 15: YY_RULE_SETUP -#line 532 "tokenizer.lex" -{c(); BEGIN(INITIAL);return handlehexfloat();} +#line 544 "tokenizer.lex" +{/* utf 8 bom */} YY_BREAK case 16: +/* rule 16 can match eol */ YY_RULE_SETUP -#line 533 "tokenizer.lex" -{c(); BEGIN(INITIAL);return handleint();} +#line 545 "tokenizer.lex" +{l();} YY_BREAK case 17: +/* rule 17 can match eol */ +*yy_cp = (yy_hold_char); /* undo effects of setting up as3_text */ +(yy_c_buf_p) = yy_cp -= 1; +YY_DO_BEFORE_ACTION; /* set up as3_text again */ YY_RULE_SETUP -#line 534 "tokenizer.lex" -{c(); BEGIN(INITIAL);return handlefloat();} +#line 547 "tokenizer.lex" +{c(); BEGIN(INITIAL);return handlehex();} YY_BREAK case 18: +/* rule 18 can match eol */ +*yy_cp = (yy_hold_char); /* undo effects of setting up as3_text */ +(yy_c_buf_p) = yy_cp -= 1; +YY_DO_BEFORE_ACTION; /* set up as3_text again */ YY_RULE_SETUP -#line 536 "tokenizer.lex" -{/* for debugging: generates a tokenizer-level error */ - syntaxerror("3rr0r");} +#line 548 "tokenizer.lex" +{c(); BEGIN(INITIAL);return handlehexfloat();} YY_BREAK case 19: /* rule 19 can match eol */ -*yy_cp = (yy_hold_char); /* undo effects of setting up avm2_text */ +*yy_cp = (yy_hold_char); /* undo effects of setting up as3_text */ (yy_c_buf_p) = yy_cp -= 1; -YY_DO_BEFORE_ACTION; /* set up avm2_text again */ +YY_DO_BEFORE_ACTION; /* set up as3_text again */ YY_RULE_SETUP -#line 539 "tokenizer.lex" -{l();handleLabel(avm2_text, avm2_leng-3);return T_FOR;} +#line 549 "tokenizer.lex" +{c(); BEGIN(INITIAL);return handleint();} YY_BREAK case 20: /* rule 20 can match eol */ -*yy_cp = (yy_hold_char); /* undo effects of setting up avm2_text */ +*yy_cp = (yy_hold_char); /* undo effects of setting up as3_text */ (yy_c_buf_p) = yy_cp -= 1; -YY_DO_BEFORE_ACTION; /* set up avm2_text again */ +YY_DO_BEFORE_ACTION; /* set up as3_text again */ YY_RULE_SETUP -#line 540 "tokenizer.lex" -{l();handleLabel(avm2_text, avm2_leng-2);return T_DO;} +#line 550 "tokenizer.lex" +{c(); BEGIN(INITIAL);return handlefloat();} YY_BREAK case 21: -/* rule 21 can match eol */ -*yy_cp = (yy_hold_char); /* undo effects of setting up avm2_text */ -(yy_c_buf_p) = yy_cp -= 1; -YY_DO_BEFORE_ACTION; /* set up avm2_text again */ YY_RULE_SETUP -#line 541 "tokenizer.lex" -{l();handleLabel(avm2_text, avm2_leng-5);return T_WHILE;} +#line 551 "tokenizer.lex" +{c(); BEGIN(INITIAL);return m(KW_NAN);} YY_BREAK case 22: -/* rule 22 can match eol */ -*yy_cp = (yy_hold_char); /* undo effects of setting up avm2_text */ -(yy_c_buf_p) = yy_cp -= 1; -YY_DO_BEFORE_ACTION; /* set up avm2_text again */ YY_RULE_SETUP -#line 542 "tokenizer.lex" -{l();handleLabel(avm2_text, avm2_leng-6);return T_SWITCH;} +#line 553 "tokenizer.lex" +{/* for debugging: generates a tokenizer-level error */ + syntaxerror("3rr0r");} YY_BREAK case 23: +/* rule 23 can match eol */ +*yy_cp = (yy_hold_char); /* undo effects of setting up as3_text */ +(yy_c_buf_p) = yy_cp -= 1; +YY_DO_BEFORE_ACTION; /* set up as3_text again */ YY_RULE_SETUP -#line 543 "tokenizer.lex" -{c();avm2_lval.id="";return T_FOR;} +#line 556 "tokenizer.lex" +{l();BEGIN(INITIAL);handleLabel(as3_text, as3_leng-3);return T_FOR;} YY_BREAK case 24: +/* rule 24 can match eol */ +*yy_cp = (yy_hold_char); /* undo effects of setting up as3_text */ +(yy_c_buf_p) = yy_cp -= 1; +YY_DO_BEFORE_ACTION; /* set up as3_text again */ YY_RULE_SETUP -#line 544 "tokenizer.lex" -{c();avm2_lval.id="";return T_DO;} +#line 557 "tokenizer.lex" +{l();BEGIN(INITIAL);handleLabel(as3_text, as3_leng-2);return T_DO;} YY_BREAK case 25: +/* rule 25 can match eol */ +*yy_cp = (yy_hold_char); /* undo effects of setting up as3_text */ +(yy_c_buf_p) = yy_cp -= 1; +YY_DO_BEFORE_ACTION; /* set up as3_text again */ YY_RULE_SETUP -#line 545 "tokenizer.lex" -{c();avm2_lval.id="";return T_WHILE;} +#line 558 "tokenizer.lex" +{l();BEGIN(INITIAL);handleLabel(as3_text, as3_leng-5);return T_WHILE;} YY_BREAK case 26: +/* rule 26 can match eol */ +*yy_cp = (yy_hold_char); /* undo effects of setting up as3_text */ +(yy_c_buf_p) = yy_cp -= 1; +YY_DO_BEFORE_ACTION; /* set up as3_text again */ YY_RULE_SETUP -#line 546 "tokenizer.lex" -{c();avm2_lval.id="";return T_SWITCH;} +#line 559 "tokenizer.lex" +{l();BEGIN(INITIAL);handleLabel(as3_text, as3_leng-6);return T_SWITCH;} YY_BREAK case 27: YY_RULE_SETUP -#line 548 "tokenizer.lex" -{c();BEGIN(REGEXPOK);return m(T_ANDAND);} +#line 560 "tokenizer.lex" +{c();BEGIN(INITIAL);a3_lval.id="";return T_FOR;} YY_BREAK case 28: YY_RULE_SETUP -#line 549 "tokenizer.lex" -{c();BEGIN(REGEXPOK);return m(T_OROR);} +#line 561 "tokenizer.lex" +{c();BEGIN(INITIAL);a3_lval.id="";return T_DO;} YY_BREAK case 29: YY_RULE_SETUP -#line 550 "tokenizer.lex" -{c();BEGIN(REGEXPOK);return m(T_NE);} +#line 562 "tokenizer.lex" +{c();BEGIN(INITIAL);a3_lval.id="";return T_WHILE;} YY_BREAK case 30: YY_RULE_SETUP -#line 551 "tokenizer.lex" -{c();BEGIN(REGEXPOK);return m(T_NEE);} +#line 563 "tokenizer.lex" +{c();BEGIN(INITIAL);a3_lval.id="";return T_SWITCH;} YY_BREAK case 31: YY_RULE_SETUP -#line 552 "tokenizer.lex" -{c();BEGIN(REGEXPOK);return m(T_EQEQEQ);} +#line 565 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(T_ANDAND);} YY_BREAK case 32: YY_RULE_SETUP -#line 553 "tokenizer.lex" -{c();BEGIN(REGEXPOK);return m(T_EQEQ);} +#line 566 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(T_OROR);} YY_BREAK case 33: YY_RULE_SETUP -#line 554 "tokenizer.lex" -{c();return m(T_GE);} +#line 567 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(T_NE);} YY_BREAK case 34: YY_RULE_SETUP -#line 555 "tokenizer.lex" -{c();return m(T_LE);} +#line 568 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(T_NEE);} YY_BREAK case 35: YY_RULE_SETUP -#line 556 "tokenizer.lex" -{c();BEGIN(INITIAL);return m(T_MINUSMINUS);} +#line 569 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(T_EQEQEQ);} YY_BREAK case 36: YY_RULE_SETUP -#line 557 "tokenizer.lex" -{c();BEGIN(INITIAL);return m(T_PLUSPLUS);} +#line 570 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(T_EQEQ);} YY_BREAK case 37: YY_RULE_SETUP -#line 558 "tokenizer.lex" -{c();return m(T_PLUSBY);} +#line 571 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(T_GE);} YY_BREAK case 38: YY_RULE_SETUP -#line 559 "tokenizer.lex" -{c();return m(T_MINUSBY);} +#line 572 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(T_LE);} YY_BREAK case 39: YY_RULE_SETUP -#line 560 "tokenizer.lex" -{c();return m(T_DIVBY);} +#line 573 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(T_MINUSMINUS);} YY_BREAK case 40: YY_RULE_SETUP -#line 561 "tokenizer.lex" -{c();return m(T_MODBY);} +#line 574 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(T_PLUSPLUS);} YY_BREAK case 41: YY_RULE_SETUP -#line 562 "tokenizer.lex" -{c();return m(T_MULBY);} +#line 575 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(T_PLUSBY);} YY_BREAK case 42: YY_RULE_SETUP -#line 563 "tokenizer.lex" -{c();return m(T_ORBY);} +#line 576 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(T_XORBY);} YY_BREAK case 43: YY_RULE_SETUP -#line 564 "tokenizer.lex" -{c();return m(T_SHRBY);} +#line 577 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(T_MINUSBY);} YY_BREAK case 44: YY_RULE_SETUP -#line 565 "tokenizer.lex" -{c();return m(T_SHLBY);} +#line 578 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(T_DIVBY);} YY_BREAK case 45: YY_RULE_SETUP -#line 566 "tokenizer.lex" -{c();return m(T_USHRBY);} +#line 579 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(T_MODBY);} YY_BREAK case 46: YY_RULE_SETUP -#line 567 "tokenizer.lex" -{c();return m(T_SHL);} +#line 580 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(T_MULBY);} YY_BREAK case 47: YY_RULE_SETUP -#line 568 "tokenizer.lex" -{c();return m(T_USHR);} +#line 581 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(T_ORBY);} YY_BREAK case 48: YY_RULE_SETUP -#line 569 "tokenizer.lex" -{c();return m(T_SHR);} +#line 582 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(T_ANDBY);} YY_BREAK case 49: YY_RULE_SETUP -#line 570 "tokenizer.lex" -{c();return m(T_DOTDOTDOT);} +#line 583 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(T_SHRBY);} YY_BREAK case 50: YY_RULE_SETUP -#line 571 "tokenizer.lex" -{c();return m(T_DOTDOT);} +#line 584 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(T_SHLBY);} YY_BREAK case 51: YY_RULE_SETUP -#line 572 "tokenizer.lex" -{c();return m('.');} +#line 585 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(T_USHRBY);} YY_BREAK case 52: YY_RULE_SETUP -#line 573 "tokenizer.lex" -{c();return m(T_COLONCOLON);} +#line 586 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(T_SHL);} YY_BREAK case 53: YY_RULE_SETUP -#line 574 "tokenizer.lex" -{c();return m(':');} +#line 587 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(T_USHR);} YY_BREAK case 54: YY_RULE_SETUP -#line 575 "tokenizer.lex" -{c();return m(KW_INSTANCEOF);} +#line 588 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(T_SHR);} YY_BREAK case 55: YY_RULE_SETUP -#line 576 "tokenizer.lex" -{c();return m(KW_IMPLEMENTS);} +#line 589 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(T_DOTDOTDOT);} YY_BREAK case 56: YY_RULE_SETUP -#line 577 "tokenizer.lex" -{c();return m(KW_INTERFACE);} +#line 590 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(T_DOTDOT);} YY_BREAK case 57: YY_RULE_SETUP -#line 578 "tokenizer.lex" -{c();return m(KW_NAMESPACE);} +#line 591 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m('.');} YY_BREAK case 58: YY_RULE_SETUP -#line 579 "tokenizer.lex" -{c();return m(KW_PROTECTED);} +#line 592 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(T_COLONCOLON);} YY_BREAK case 59: YY_RULE_SETUP -#line 580 "tokenizer.lex" -{c();return m(KW_UNDEFINED);} +#line 593 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(':');} YY_BREAK case 60: YY_RULE_SETUP -#line 581 "tokenizer.lex" -{c();return m(KW_CONTINUE);} +#line 594 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(KW_INSTANCEOF);} YY_BREAK case 61: YY_RULE_SETUP -#line 582 "tokenizer.lex" -{c();return m(KW_OVERRIDE);} +#line 595 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(KW_IMPLEMENTS);} YY_BREAK case 62: YY_RULE_SETUP -#line 583 "tokenizer.lex" -{c();return m(KW_INTERNAL);} +#line 596 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_INTERFACE);} YY_BREAK case 63: YY_RULE_SETUP -#line 584 "tokenizer.lex" -{c();return m(KW_FUNCTION);} +#line 597 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_NAMESPACE);} YY_BREAK case 64: YY_RULE_SETUP -#line 585 "tokenizer.lex" -{c();return m(KW_FINALLY);} +#line 598 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_PROTECTED);} YY_BREAK case 65: YY_RULE_SETUP -#line 586 "tokenizer.lex" -{c();return m(KW_DEFAULT);} +#line 599 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_UNDEFINED);} YY_BREAK case 66: YY_RULE_SETUP -#line 587 "tokenizer.lex" -{c();return m(KW_PACKAGE);} +#line 600 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_CONTINUE);} YY_BREAK case 67: YY_RULE_SETUP -#line 588 "tokenizer.lex" -{c();return m(KW_PRIVATE);} +#line 601 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_OVERRIDE);} YY_BREAK case 68: YY_RULE_SETUP -#line 589 "tokenizer.lex" -{c();return m(KW_DYNAMIC);} +#line 602 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_INTERNAL);} YY_BREAK case 69: YY_RULE_SETUP -#line 590 "tokenizer.lex" -{c();return m(KW_EXTENDS);} +#line 603 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_FUNCTION);} YY_BREAK case 70: YY_RULE_SETUP -#line 591 "tokenizer.lex" -{c();return m(KW_DELETE);} +#line 604 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_FINALLY);} YY_BREAK case 71: YY_RULE_SETUP -#line 592 "tokenizer.lex" -{c();return m(KW_RETURN);} +#line 605 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_DEFAULT);} YY_BREAK case 72: YY_RULE_SETUP -#line 593 "tokenizer.lex" -{c();return m(KW_PUBLIC);} +#line 606 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_PACKAGE);} YY_BREAK case 73: YY_RULE_SETUP -#line 594 "tokenizer.lex" -{c();return m(KW_NATIVE);} +#line 607 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_PRIVATE);} YY_BREAK case 74: YY_RULE_SETUP -#line 595 "tokenizer.lex" -{c();return m(KW_STATIC);} +#line 608 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_DYNAMIC);} YY_BREAK case 75: YY_RULE_SETUP -#line 596 "tokenizer.lex" -{c();return m(KW_IMPORT);} +#line 609 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_EXTENDS);} YY_BREAK case 76: YY_RULE_SETUP -#line 597 "tokenizer.lex" -{c();return m(KW_TYPEOF);} +#line 610 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(KW_DELETE);} YY_BREAK case 77: YY_RULE_SETUP -#line 598 "tokenizer.lex" -{c();return m(KW_THROW);} +#line 611 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(KW_RETURN);} YY_BREAK case 78: YY_RULE_SETUP -#line 599 "tokenizer.lex" -{c();return m(KW_CLASS);} +#line 612 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_PUBLIC);} YY_BREAK case 79: YY_RULE_SETUP -#line 600 "tokenizer.lex" -{c();return m(KW_CONST);} +#line 613 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_NATIVE);} YY_BREAK case 80: YY_RULE_SETUP -#line 601 "tokenizer.lex" -{c();return m(KW_CATCH);} +#line 614 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_STATIC);} YY_BREAK case 81: YY_RULE_SETUP -#line 602 "tokenizer.lex" -{c();return m(KW_FINAL);} +#line 615 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(KW_IMPORT);} YY_BREAK case 82: YY_RULE_SETUP -#line 603 "tokenizer.lex" -{c();return m(KW_FALSE);} +#line 616 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(KW_TYPEOF);} YY_BREAK case 83: YY_RULE_SETUP -#line 604 "tokenizer.lex" -{c();return m(KW_BREAK);} +#line 617 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(KW_THROW);} YY_BREAK case 84: YY_RULE_SETUP -#line 605 "tokenizer.lex" -{c();return m(KW_SUPER);} +#line 618 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_CLASS);} YY_BREAK case 85: YY_RULE_SETUP -#line 606 "tokenizer.lex" -{c();return m(KW_EACH);} +#line 619 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_CONST);} YY_BREAK case 86: YY_RULE_SETUP -#line 607 "tokenizer.lex" -{c();return m(KW_VOID);} +#line 620 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_CATCH);} YY_BREAK case 87: YY_RULE_SETUP -#line 608 "tokenizer.lex" -{c();return m(KW_TRUE);} +#line 621 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_FINAL);} YY_BREAK case 88: YY_RULE_SETUP -#line 609 "tokenizer.lex" -{c();return m(KW_NULL);} +#line 622 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_FALSE);} YY_BREAK case 89: YY_RULE_SETUP -#line 610 "tokenizer.lex" -{c();return m(KW_ELSE);} +#line 623 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_BREAK);} YY_BREAK case 90: YY_RULE_SETUP -#line 611 "tokenizer.lex" -{c();return m(KW_CASE);} +#line 624 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_SUPER);} YY_BREAK case 91: YY_RULE_SETUP -#line 612 "tokenizer.lex" -{c();return m(KW_WITH);} +#line 625 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_EACH);} YY_BREAK case 92: YY_RULE_SETUP -#line 613 "tokenizer.lex" -{c();return m(KW_USE);} +#line 626 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_VOID);} YY_BREAK case 93: YY_RULE_SETUP -#line 614 "tokenizer.lex" -{c();return m(KW_NEW);} +#line 627 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_TRUE);} YY_BREAK case 94: YY_RULE_SETUP -#line 615 "tokenizer.lex" -{c();return m(KW_GET);} +#line 628 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_NULL);} YY_BREAK case 95: YY_RULE_SETUP -#line 616 "tokenizer.lex" -{c();return m(KW_SET);} +#line 629 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_ELSE);} YY_BREAK case 96: YY_RULE_SETUP -#line 617 "tokenizer.lex" -{c();return m(KW_VAR);} +#line 630 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(KW_CASE);} YY_BREAK case 97: YY_RULE_SETUP -#line 618 "tokenizer.lex" -{c();return m(KW_TRY);} +#line 631 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(KW_WITH);} YY_BREAK case 98: YY_RULE_SETUP -#line 619 "tokenizer.lex" -{c();return m(KW_IS) ;} +#line 632 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(KW_USE);} YY_BREAK case 99: YY_RULE_SETUP -#line 620 "tokenizer.lex" -{c();return m(KW_IN) ;} +#line 633 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(KW_NEW);} YY_BREAK case 100: YY_RULE_SETUP -#line 621 "tokenizer.lex" -{c();return m(KW_IF) ;} +#line 634 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_GET);} YY_BREAK case 101: YY_RULE_SETUP -#line 622 "tokenizer.lex" -{c();return m(KW_AS);} +#line 635 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_SET);} YY_BREAK case 102: YY_RULE_SETUP -#line 623 "tokenizer.lex" -{c();BEGIN(INITIAL);return mkid(T_IDENTIFIER);} +#line 636 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_VAR);} YY_BREAK case 103: YY_RULE_SETUP -#line 625 "tokenizer.lex" -{c();BEGIN(REGEXPOK);return m(avm2_text[0]);} +#line 637 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_TRY);} YY_BREAK case 104: YY_RULE_SETUP -#line 626 "tokenizer.lex" -{c();BEGIN(INITIAL);return m(avm2_text[0]);} +#line 638 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(KW_IS) ;} YY_BREAK case 105: YY_RULE_SETUP -#line 628 "tokenizer.lex" -{char c1=avm2_text[0]; +#line 639 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(KW_IN) ;} + YY_BREAK +case 106: +YY_RULE_SETUP +#line 640 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(KW_IF) ;} + YY_BREAK +case 107: +YY_RULE_SETUP +#line 641 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(KW_AS);} + YY_BREAK +case 108: +YY_RULE_SETUP +#line 642 "tokenizer.lex" +{c();BEGIN(INITIAL);return handleIdentifier();} + YY_BREAK +case 109: +YY_RULE_SETUP +#line 644 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(as3_text[0]);} + YY_BREAK +case 110: +YY_RULE_SETUP +#line 645 "tokenizer.lex" +{c();BEGIN(REGEXPOK);return m(as3_text[0]);} + YY_BREAK +case 111: +YY_RULE_SETUP +#line 646 "tokenizer.lex" +{c();BEGIN(INITIAL);return m(as3_text[0]);} + YY_BREAK +case 112: +YY_RULE_SETUP +#line 648 "tokenizer.lex" +{/* ERROR */ + char c1=as3_text[0]; char buf[128]; - buf[0] = avm2_text[0]; + buf[0] = as3_text[0]; int t; for(t=1;t<128;t++) { char c = buf[t]=input(); @@ -2453,25 +2714,25 @@ YY_RULE_SETUP case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(REGEXPOK): case YY_STATE_EOF(BEGINNING): -#line 647 "tokenizer.lex" +#line 668 "tokenizer.lex" {l(); void*b = leave_file(); if (!b) { yyterminate(); - avm2__delete_buffer(YY_CURRENT_BUFFER); + as3__delete_buffer(YY_CURRENT_BUFFER); return m(T_EOF); } else { - avm2__delete_buffer(YY_CURRENT_BUFFER); - avm2__switch_to_buffer(b); + as3__delete_buffer(YY_CURRENT_BUFFER); + as3__switch_to_buffer(b); } } YY_BREAK -case 106: +case 113: YY_RULE_SETUP -#line 659 "tokenizer.lex" +#line 680 "tokenizer.lex" ECHO; YY_BREAK -#line 2475 "tokenizer.yy.c" +#line 2736 "tokenizer.yy.c" case YY_END_OF_BUFFER: { @@ -2486,15 +2747,15 @@ ECHO; { /* We're scanning a new file or input source. It's * possible that this happened because the user - * just pointed avm2_in at a new source and called - * avm2_lex(). If so, then we have to assure + * just pointed as3_in at a new source and called + * as3_lex(). If so, then we have to assure * consistency between YY_CURRENT_BUFFER and our * globals. Here is the right place to do so, because * this is the first action (other than possibly a * back-up) that will match for the new input source. */ (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - YY_CURRENT_BUFFER_LVALUE->yy_input_file = avm2_in; + YY_CURRENT_BUFFER_LVALUE->yy_input_file = as3_in; YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; } @@ -2548,11 +2809,11 @@ ECHO; { (yy_did_buffer_switch_on_eof) = 0; - if ( avm2_wrap( ) ) + if ( as3_wrap( ) ) { /* Note: because we've taken care in * yy_get_next_buffer() to have set up - * avm2_text, we can now set up + * as3_text, we can now set up * yy_c_buf_p so that if some total * hoser (like flex itself) wants to * call the scanner after we return the @@ -2601,7 +2862,7 @@ ECHO; "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ -} /* end of avm2_lex */ +} /* end of as3_lex */ /* yy_get_next_buffer - try to read in a new buffer * @@ -2679,7 +2940,7 @@ static int yy_get_next_buffer (void) b->yy_ch_buf = (char *) /* Include room in for 2 EOB chars. */ - avm2_realloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); + as3_realloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); } else /* Can't grow it, we don't own it. */ @@ -2711,7 +2972,7 @@ static int yy_get_next_buffer (void) if ( number_to_move == YY_MORE_ADJ ) { ret_val = EOB_ACT_END_OF_FILE; - avm2_restart(avm2_in ); + as3_restart(as3_in ); } else @@ -2728,7 +2989,7 @@ static int yy_get_next_buffer (void) 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 *) avm2_realloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ); + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) as3_realloc((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()" ); } @@ -2763,7 +3024,7 @@ static int yy_get_next_buffer (void) 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 >= 468 ) + if ( yy_current_state >= 516 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; @@ -2791,11 +3052,11 @@ static int yy_get_next_buffer (void) 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 >= 468 ) + if ( yy_current_state >= 516 ) 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 == 467); + yy_is_jam = (yy_current_state == 515); return yy_is_jam ? 0 : yy_current_state; } @@ -2806,7 +3067,7 @@ static int yy_get_next_buffer (void) yy_cp = (yy_c_buf_p); - /* undo effects of setting up avm2_text */ + /* undo effects of setting up as3_text */ *yy_cp = (yy_hold_char); if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) @@ -2878,13 +3139,13 @@ static int yy_get_next_buffer (void) */ /* Reset buffer status. */ - avm2_restart(avm2_in ); + as3_restart(as3_in ); /*FALLTHROUGH*/ case EOB_ACT_END_OF_FILE: { - if ( avm2_wrap( ) ) + if ( as3_wrap( ) ) return EOF; if ( ! (yy_did_buffer_switch_on_eof) ) @@ -2904,7 +3165,7 @@ static int yy_get_next_buffer (void) } c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ - *(yy_c_buf_p) = '\0'; /* preserve avm2_text */ + *(yy_c_buf_p) = '\0'; /* preserve as3_text */ (yy_hold_char) = *++(yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n'); @@ -2918,32 +3179,32 @@ static int yy_get_next_buffer (void) * * @note This function does not reset the start condition to @c INITIAL . */ - void avm2_restart (FILE * input_file ) + void as3_restart (FILE * input_file ) { if ( ! YY_CURRENT_BUFFER ){ - avm2_ensure_buffer_stack (); + as3_ensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = - avm2__create_buffer(avm2_in,YY_BUF_SIZE ); + as3__create_buffer(as3_in,YY_BUF_SIZE ); } - avm2__init_buffer(YY_CURRENT_BUFFER,input_file ); - avm2__load_buffer_state( ); + as3__init_buffer(YY_CURRENT_BUFFER,input_file ); + as3__load_buffer_state( ); } /** Switch to a different input buffer. * @param new_buffer The new input buffer. * */ - void avm2__switch_to_buffer (YY_BUFFER_STATE new_buffer ) + void as3__switch_to_buffer (YY_BUFFER_STATE new_buffer ) { /* TODO. We should be able to replace this entire function body * with - * avm2_pop_buffer_state(); - * avm2_push_buffer_state(new_buffer); + * as3_pop_buffer_state(); + * as3_push_buffer_state(new_buffer); */ - avm2_ensure_buffer_stack (); + as3_ensure_buffer_stack (); if ( YY_CURRENT_BUFFER == new_buffer ) return; @@ -2956,21 +3217,21 @@ static int yy_get_next_buffer (void) } YY_CURRENT_BUFFER_LVALUE = new_buffer; - avm2__load_buffer_state( ); + as3__load_buffer_state( ); /* We don't actually know whether we did this switch during - * EOF (avm2_wrap()) processing, but the only time this flag - * is looked at is after avm2_wrap() is called, so it's safe + * EOF (as3_wrap()) processing, but the only time this flag + * is looked at is after as3_wrap() is called, so it's safe * to go ahead and always set it. */ (yy_did_buffer_switch_on_eof) = 1; } -static void avm2__load_buffer_state (void) +static void as3__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; - avm2_in = YY_CURRENT_BUFFER_LVALUE->yy_input_file; + as3_in = YY_CURRENT_BUFFER_LVALUE->yy_input_file; (yy_hold_char) = *(yy_c_buf_p); } @@ -2980,35 +3241,35 @@ static void avm2__load_buffer_state (void) * * @return the allocated buffer state. */ - YY_BUFFER_STATE avm2__create_buffer (FILE * file, int size ) + YY_BUFFER_STATE as3__create_buffer (FILE * file, int size ) { YY_BUFFER_STATE b; - b = (YY_BUFFER_STATE) avm2_alloc(sizeof( struct yy_buffer_state ) ); + b = (YY_BUFFER_STATE) as3_alloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in avm2__create_buffer()" ); + YY_FATAL_ERROR( "out of dynamic memory in as3__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 *) avm2_alloc(b->yy_buf_size + 2 ); + b->yy_ch_buf = (char *) as3_alloc(b->yy_buf_size + 2 ); if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( "out of dynamic memory in avm2__create_buffer()" ); + YY_FATAL_ERROR( "out of dynamic memory in as3__create_buffer()" ); b->yy_is_our_buffer = 1; - avm2__init_buffer(b,file ); + as3__init_buffer(b,file ); return b; } /** Destroy the buffer. - * @param b a buffer created with avm2__create_buffer() + * @param b a buffer created with as3__create_buffer() * */ - void avm2__delete_buffer (YY_BUFFER_STATE b ) + void as3__delete_buffer (YY_BUFFER_STATE b ) { if ( ! b ) @@ -3018,9 +3279,9 @@ static void avm2__load_buffer_state (void) YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; if ( b->yy_is_our_buffer ) - avm2_free((void *) b->yy_ch_buf ); + as3_free((void *) b->yy_ch_buf ); - avm2_free((void *) b ); + as3_free((void *) b ); } #ifndef _UNISTD_H /* assume unistd.h has isatty() for us */ @@ -3039,20 +3300,20 @@ extern int isatty (int ); /* Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, - * such as during a avm2_restart() or at EOF. + * such as during a as3_restart() or at EOF. */ - static void avm2__init_buffer (YY_BUFFER_STATE b, FILE * file ) + static void as3__init_buffer (YY_BUFFER_STATE b, FILE * file ) { int oerrno = errno; - avm2__flush_buffer(b ); + as3__flush_buffer(b ); b->yy_input_file = file; b->yy_fill_buffer = 1; - /* If b is the current buffer, then avm2__init_buffer was _probably_ - * called from avm2_restart() or through yy_get_next_buffer. + /* If b is the current buffer, then as3__init_buffer was _probably_ + * called from as3_restart() or through yy_get_next_buffer. * In that case, we don't want to reset the lineno or column. */ if (b != YY_CURRENT_BUFFER){ @@ -3069,7 +3330,7 @@ extern int isatty (int ); * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. * */ - void avm2__flush_buffer (YY_BUFFER_STATE b ) + void as3__flush_buffer (YY_BUFFER_STATE b ) { if ( ! b ) return; @@ -3089,7 +3350,7 @@ extern int isatty (int ); b->yy_buffer_status = YY_BUFFER_NEW; if ( b == YY_CURRENT_BUFFER ) - avm2__load_buffer_state( ); + as3__load_buffer_state( ); } /** Pushes the new state onto the stack. The new state becomes @@ -3098,14 +3359,14 @@ extern int isatty (int ); * @param new_buffer The new state. * */ -void avm2_push_buffer_state (YY_BUFFER_STATE new_buffer ) +void as3_push_buffer_state (YY_BUFFER_STATE new_buffer ) { if (new_buffer == NULL) return; - avm2_ensure_buffer_stack(); + as3_ensure_buffer_stack(); - /* This block is copied from avm2__switch_to_buffer. */ + /* This block is copied from as3__switch_to_buffer. */ if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ @@ -3119,8 +3380,8 @@ void avm2_push_buffer_state (YY_BUFFER_STATE new_buffer ) (yy_buffer_stack_top)++; YY_CURRENT_BUFFER_LVALUE = new_buffer; - /* copied from avm2__switch_to_buffer. */ - avm2__load_buffer_state( ); + /* copied from as3__switch_to_buffer. */ + as3__load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } @@ -3128,18 +3389,18 @@ void avm2_push_buffer_state (YY_BUFFER_STATE new_buffer ) * The next element becomes the new top. * */ -void avm2_pop_buffer_state (void) +void as3_pop_buffer_state (void) { if (!YY_CURRENT_BUFFER) return; - avm2__delete_buffer(YY_CURRENT_BUFFER ); + as3__delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; if ((yy_buffer_stack_top) > 0) --(yy_buffer_stack_top); if (YY_CURRENT_BUFFER) { - avm2__load_buffer_state( ); + as3__load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } } @@ -3147,7 +3408,7 @@ void avm2_pop_buffer_state (void) /* Allocates the stack if it does not exist. * Guarantees space for at least one push. */ -static void avm2_ensure_buffer_stack (void) +static void as3_ensure_buffer_stack (void) { int num_to_alloc; @@ -3158,11 +3419,11 @@ static void avm2_ensure_buffer_stack (void) * immediate realloc on the next call. */ num_to_alloc = 1; - (yy_buffer_stack) = (struct yy_buffer_state**)avm2_alloc + (yy_buffer_stack) = (struct yy_buffer_state**)as3_alloc (num_to_alloc * sizeof(struct yy_buffer_state*) ); if ( ! (yy_buffer_stack) ) - YY_FATAL_ERROR( "out of dynamic memory in avm2_ensure_buffer_stack()" ); + YY_FATAL_ERROR( "out of dynamic memory in as3_ensure_buffer_stack()" ); memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); @@ -3177,12 +3438,12 @@ static void avm2_ensure_buffer_stack (void) int grow_size = 8 /* arbitrary grow size */; num_to_alloc = (yy_buffer_stack_max) + grow_size; - (yy_buffer_stack) = (struct yy_buffer_state**)avm2_realloc + (yy_buffer_stack) = (struct yy_buffer_state**)as3_realloc ((yy_buffer_stack), num_to_alloc * sizeof(struct yy_buffer_state*) ); if ( ! (yy_buffer_stack) ) - YY_FATAL_ERROR( "out of dynamic memory in avm2_ensure_buffer_stack()" ); + YY_FATAL_ERROR( "out of dynamic memory in as3_ensure_buffer_stack()" ); /* zero only the new slots.*/ memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); @@ -3196,7 +3457,7 @@ static void avm2_ensure_buffer_stack (void) * * @return the newly allocated buffer state object. */ -YY_BUFFER_STATE avm2__scan_buffer (char * base, yy_size_t size ) +YY_BUFFER_STATE as3__scan_buffer (char * base, yy_size_t size ) { YY_BUFFER_STATE b; @@ -3206,9 +3467,9 @@ YY_BUFFER_STATE avm2__scan_buffer (char * base, yy_size_t size ) /* They forgot to leave room for the EOB's. */ return 0; - b = (YY_BUFFER_STATE) avm2_alloc(sizeof( struct yy_buffer_state ) ); + b = (YY_BUFFER_STATE) as3_alloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in avm2__scan_buffer()" ); + YY_FATAL_ERROR( "out of dynamic memory in as3__scan_buffer()" ); b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ b->yy_buf_pos = b->yy_ch_buf = base; @@ -3220,33 +3481,33 @@ YY_BUFFER_STATE avm2__scan_buffer (char * base, yy_size_t size ) b->yy_fill_buffer = 0; b->yy_buffer_status = YY_BUFFER_NEW; - avm2__switch_to_buffer(b ); + as3__switch_to_buffer(b ); return b; } -/** Setup the input buffer state to scan a string. The next call to avm2_lex() will +/** Setup the input buffer state to scan a string. The next call to as3_lex() will * scan from a @e copy of @a str. * @param yystr a NUL-terminated string to scan * * @return the newly allocated buffer state object. * @note If you want to scan bytes that may contain NUL values, then use - * avm2__scan_bytes() instead. + * as3__scan_bytes() instead. */ -YY_BUFFER_STATE avm2__scan_string (yyconst char * yystr ) +YY_BUFFER_STATE as3__scan_string (yyconst char * yystr ) { - return avm2__scan_bytes(yystr,strlen(yystr) ); + return as3__scan_bytes(yystr,strlen(yystr) ); } -/** Setup the input buffer state to scan the given bytes. The next call to avm2_lex() will +/** Setup the input buffer state to scan the given bytes. The next call to as3_lex() will * scan from a @e copy of @a bytes. * @param bytes the byte buffer to scan * @param len the number of bytes in the buffer pointed to by @a bytes. * * @return the newly allocated buffer state object. */ -YY_BUFFER_STATE avm2__scan_bytes (yyconst char * yybytes, int _yybytes_len ) +YY_BUFFER_STATE as3__scan_bytes (yyconst char * yybytes, int _yybytes_len ) { YY_BUFFER_STATE b; char *buf; @@ -3255,18 +3516,18 @@ YY_BUFFER_STATE avm2__scan_bytes (yyconst char * yybytes, int _yybytes_len ) /* Get memory for full buffer, including space for trailing EOB's. */ n = _yybytes_len + 2; - buf = (char *) avm2_alloc(n ); + buf = (char *) as3_alloc(n ); if ( ! buf ) - YY_FATAL_ERROR( "out of dynamic memory in avm2__scan_bytes()" ); + YY_FATAL_ERROR( "out of dynamic memory in as3__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 = avm2__scan_buffer(buf,n ); + b = as3__scan_buffer(buf,n ); if ( ! b ) - YY_FATAL_ERROR( "bad buffer in avm2__scan_bytes()" ); + YY_FATAL_ERROR( "bad buffer in as3__scan_bytes()" ); /* It's okay to grow etc. this buffer, and we should throw it * away when we're done. @@ -3292,14 +3553,14 @@ static void yy_fatal_error (yyconst char* msg ) #define yyless(n) \ do \ { \ - /* Undo effects of setting up avm2_text. */ \ + /* Undo effects of setting up as3_text. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ - avm2_text[avm2_leng] = (yy_hold_char); \ - (yy_c_buf_p) = avm2_text + yyless_macro_arg; \ + as3_text[as3_leng] = (yy_hold_char); \ + (yy_c_buf_p) = as3_text + yyless_macro_arg; \ (yy_hold_char) = *(yy_c_buf_p); \ *(yy_c_buf_p) = '\0'; \ - avm2_leng = yyless_macro_arg; \ + as3_leng = yyless_macro_arg; \ } \ while ( 0 ) @@ -3308,85 +3569,85 @@ static void yy_fatal_error (yyconst char* msg ) /** Get the current line number. * */ -int avm2_get_lineno (void) +int as3_get_lineno (void) { - return avm2_lineno; + return as3_lineno; } /** Get the input stream. * */ -FILE *avm2_get_in (void) +FILE *as3_get_in (void) { - return avm2_in; + return as3_in; } /** Get the output stream. * */ -FILE *avm2_get_out (void) +FILE *as3_get_out (void) { - return avm2_out; + return as3_out; } /** Get the length of the current token. * */ -int avm2_get_leng (void) +int as3_get_leng (void) { - return avm2_leng; + return as3_leng; } /** Get the current token. * */ -char *avm2_get_text (void) +char *as3_get_text (void) { - return avm2_text; + return as3_text; } /** Set the current line number. * @param line_number * */ -void avm2_set_lineno (int line_number ) +void as3_set_lineno (int line_number ) { - avm2_lineno = line_number; + as3_lineno = line_number; } /** Set the input stream. This does not discard the current * input buffer. * @param in_str A readable stream. * - * @see avm2__switch_to_buffer + * @see as3__switch_to_buffer */ -void avm2_set_in (FILE * in_str ) +void as3_set_in (FILE * in_str ) { - avm2_in = in_str ; + as3_in = in_str ; } -void avm2_set_out (FILE * out_str ) +void as3_set_out (FILE * out_str ) { - avm2_out = out_str ; + as3_out = out_str ; } -int avm2_get_debug (void) +int as3_get_debug (void) { - return avm2__flex_debug; + return as3__flex_debug; } -void avm2_set_debug (int bdebug ) +void as3_set_debug (int bdebug ) { - avm2__flex_debug = bdebug ; + as3__flex_debug = bdebug ; } static int yy_init_globals (void) { /* Initialization is the same as for the non-reentrant scanner. - * This function is called from avm2_lex_destroy(), so don't allocate here. + * This function is called from as3_lex_destroy(), so don't allocate here. */ (yy_buffer_stack) = 0; @@ -3398,36 +3659,36 @@ static int yy_init_globals (void) /* Defined in main.c */ #ifdef YY_STDINIT - avm2_in = stdin; - avm2_out = stdout; + as3_in = stdin; + as3_out = stdout; #else - avm2_in = (FILE *) 0; - avm2_out = (FILE *) 0; + as3_in = (FILE *) 0; + as3_out = (FILE *) 0; #endif /* For future reference: Set errno on error, since we are called by - * avm2_lex_init() + * as3_lex_init() */ return 0; } -/* avm2_lex_destroy is for both reentrant and non-reentrant scanners. */ -int avm2_lex_destroy (void) +/* as3_lex_destroy is for both reentrant and non-reentrant scanners. */ +int as3_lex_destroy (void) { /* Pop the buffer stack, destroying each element. */ while(YY_CURRENT_BUFFER){ - avm2__delete_buffer(YY_CURRENT_BUFFER ); + as3__delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; - avm2_pop_buffer_state(); + as3_pop_buffer_state(); } /* Destroy the stack itself. */ - avm2_free((yy_buffer_stack) ); + as3_free((yy_buffer_stack) ); (yy_buffer_stack) = NULL; /* Reset the globals. This is important in a non-reentrant scanner so the next time - * avm2_lex() is called, initialization will occur. */ + * as3_lex() is called, initialization will occur. */ yy_init_globals( ); return 0; @@ -3457,12 +3718,12 @@ static int yy_flex_strlen (yyconst char * s ) } #endif -void *avm2_alloc (yy_size_t size ) +void *as3_alloc (yy_size_t size ) { return (void *) malloc( size ); } -void *avm2_realloc (void * ptr, yy_size_t size ) +void *as3_realloc (void * ptr, yy_size_t size ) { /* The cast to (char *) in the following accommodates both * implementations that use char* generic pointers, and those @@ -3474,18 +3735,18 @@ void *avm2_realloc (void * ptr, yy_size_t size ) return (void *) realloc( (char *) ptr, size ); } -void avm2_free (void * ptr ) +void as3_free (void * ptr ) { - free( (char *) ptr ); /* see avm2_realloc() for (char *) cast */ + free( (char *) ptr ); /* see as3_realloc() for (char *) cast */ } #define YYTABLES_NAME "yytables" -#line 659 "tokenizer.lex" +#line 680 "tokenizer.lex" -int avm2_wrap() +int as3_wrap() { return 1; } @@ -3493,12 +3754,26 @@ int avm2_wrap() static char mbuf[256]; char*token2string(enum yytokentype nr, YYSTYPE v) { - if(nr==T_STRING) return ""; + if(nr==T_STRING) { + char*s = malloc(v.str.len+10); + strcpy(s, ""); + memcpy(s+8, v.str.str, v.str.len); + sprintf(s+8+v.str.len, " (%d bytes)", v.str.len); + return s; + } + else if(nr==T_REGEXP) { + char*s = malloc(strlen(v.regexp.pattern)+10); + sprintf(s, "%s", v.regexp.pattern); + return s; + } + else if(nr==T_IDENTIFIER) { + char*s = malloc(strlen(v.id)+10); + sprintf(s, "%s", v.id); + return s; + } else if(nr==T_INT) return ""; else if(nr==T_UINT) return ""; - else if(nr==T_BYTE) return ""; else if(nr==T_FLOAT) return ""; - else if(nr==T_REGEXP) return "REGEXP"; else if(nr==T_EOF) return "***END***"; else if(nr==T_GE) return ">="; else if(nr==T_LE) return "<="; @@ -3537,7 +3812,6 @@ char*token2string(enum yytokentype nr, YYSTYPE v) else if(nr==KW_VAR) return "var"; else if(nr==KW_IS) return "is"; else if(nr==KW_AS) return "as"; - else if(nr==T_IDENTIFIER) return "ID"; else { sprintf(mbuf, "%d", nr); return mbuf; @@ -3550,3 +3824,4 @@ void initialize_scanner() } +