X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2Fparser.tab.c;h=b67e11b5f235719a6548090ac33997df9831dcec;hb=639ac6b9f7a89f10d02c5d9ef41bca3bad4eaf2b;hp=0ccd08fb08998be6d46a8388e9dcb9469f2bc90a;hpb=3dea7306ae2c9590673c10dec1fbabcd6d7e1806;p=swftools.git diff --git a/lib/as3/parser.tab.c b/lib/as3/parser.tab.c index 0ccd08f..b67e11b 100644 --- a/lib/as3/parser.tab.c +++ b/lib/as3/parser.tab.c @@ -91,13 +91,14 @@ #include "opcodes.h" #include "compiler.h" #include "expr.h" +#include "initcode.h" extern int a3_lex(); /* Line 198 of skeleton.m4 */ -#line 101 "parser.tab.c" +#line 102 "parser.tab.c" /* Enabling traces. */ #ifndef YYDEBUG @@ -140,95 +141,97 @@ extern int a3_lex(); KW_NAMESPACE = 271, KW_PACKAGE = 272, KW_PROTECTED = 273, - KW_PUBLIC = 274, - KW_PRIVATE = 275, - KW_USE = 276, - KW_INTERNAL = 277, - KW_NEW = 278, - KW_NATIVE = 279, - KW_FUNCTION = 280, - KW_FINALLY = 281, - KW_UNDEFINED = 282, - KW_NAN = 283, - KW_CONTINUE = 284, - KW_CLASS = 285, - KW_CONST = 286, - KW_CATCH = 287, - KW_CASE = 288, - KW_SET = 289, - KW_VOID = 290, - KW_THROW = 291, - KW_STATIC = 292, - KW_WITH = 293, - KW_INSTANCEOF = 294, - KW_IMPORT = 295, - KW_RETURN = 296, - KW_TYPEOF = 297, - KW_INTERFACE = 298, - KW_NULL = 299, - KW_VAR = 300, - KW_DYNAMIC = 301, - KW_OVERRIDE = 302, - KW_FINAL = 303, - KW_EACH = 304, - KW_GET = 305, - KW_TRY = 306, - KW_SUPER = 307, - KW_EXTENDS = 308, - KW_FALSE = 309, - KW_TRUE = 310, - KW_BOOLEAN = 311, - KW_UINT = 312, - KW_INT = 313, - KW_NUMBER = 314, - KW_STRING = 315, - KW_DEFAULT = 316, - KW_DELETE = 317, - KW_IF = 318, - KW_ELSE = 319, - KW_BREAK = 320, - KW_IS = 321, - KW_IN = 322, - KW_AS = 323, - T_DICTSTART = 324, - T_EQEQ = 325, - T_EQEQEQ = 326, - T_NE = 327, - T_NEE = 328, - T_LE = 329, - T_GE = 330, - T_ORBY = 331, - T_DIVBY = 332, - T_MODBY = 333, - T_MULBY = 334, - T_ANDBY = 335, - T_PLUSBY = 336, - T_MINUSBY = 337, - T_XORBY = 338, - T_SHRBY = 339, - T_SHLBY = 340, - T_USHRBY = 341, - T_OROR = 342, - T_ANDAND = 343, - T_COLONCOLON = 344, - T_MINUSMINUS = 345, - T_PLUSPLUS = 346, - T_DOTDOT = 347, - T_DOTDOTDOT = 348, - T_SHL = 349, - T_USHR = 350, - T_SHR = 351, - prec_none = 352, - below_semicolon = 353, - below_assignment = 354, - below_minus = 355, - minusminus_prefix = 356, - plusplus_prefix = 357, - below_curly = 358, - new2 = 359, - above_identifier = 360, - below_else = 361, - above_function = 362 + KW_ARGUMENTS = 274, + KW_PUBLIC = 275, + KW_PRIVATE = 276, + KW_USE = 277, + KW_INTERNAL = 278, + KW_NEW = 279, + KW_NATIVE = 280, + KW_FUNCTION = 281, + KW_FINALLY = 282, + KW_UNDEFINED = 283, + KW_NAN = 284, + KW_CONTINUE = 285, + KW_CLASS = 286, + KW_CONST = 287, + KW_CATCH = 288, + KW_CASE = 289, + KW_SET = 290, + KW_VOID = 291, + KW_THROW = 292, + KW_STATIC = 293, + KW_WITH = 294, + KW_INSTANCEOF = 295, + KW_IMPORT = 296, + KW_RETURN = 297, + KW_TYPEOF = 298, + KW_INTERFACE = 299, + KW_NULL = 300, + KW_VAR = 301, + KW_DYNAMIC = 302, + KW_OVERRIDE = 303, + KW_FINAL = 304, + KW_EACH = 305, + KW_GET = 306, + KW_TRY = 307, + KW_SUPER = 308, + KW_EXTENDS = 309, + KW_FALSE = 310, + KW_TRUE = 311, + KW_BOOLEAN = 312, + KW_UINT = 313, + KW_INT = 314, + KW_NUMBER = 315, + KW_STRING = 316, + KW_DEFAULT = 317, + KW_DELETE = 318, + KW_IF = 319, + KW_ELSE = 320, + KW_BREAK = 321, + KW_IS = 322, + KW_IN = 323, + KW_AS = 324, + T_DICTSTART = 325, + T_EQEQ = 326, + T_EQEQEQ = 327, + T_NE = 328, + T_NEE = 329, + T_LE = 330, + T_GE = 331, + T_ORBY = 332, + T_DIVBY = 333, + T_MODBY = 334, + T_MULBY = 335, + T_ANDBY = 336, + T_PLUSBY = 337, + T_MINUSBY = 338, + T_XORBY = 339, + T_SHRBY = 340, + T_SHLBY = 341, + T_USHRBY = 342, + T_OROR = 343, + T_ANDAND = 344, + T_COLONCOLON = 345, + T_MINUSMINUS = 346, + T_PLUSPLUS = 347, + T_DOTDOT = 348, + T_DOTDOTDOT = 349, + T_SHL = 350, + T_USHR = 351, + T_SHR = 352, + prec_none = 353, + below_semicolon = 354, + below_assignment = 355, + below_lt = 356, + below_minus = 357, + minusminus_prefix = 358, + plusplus_prefix = 359, + below_curly = 360, + new2 = 361, + above_identifier = 362, + below_else = 363, + above_function = 364 }; #endif @@ -237,12 +240,12 @@ extern int a3_lex(); #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef union /* Line 223 of skeleton.m4 */ -#line 46 "parser.y" +#line 47 "parser.y" tokenunion { /* Line 223 of skeleton.m4 */ -#line 46 "parser.y" +#line 47 "parser.y" enum yytokentype token; @@ -277,7 +280,7 @@ tokenunion /* Line 223 of skeleton.m4 */ -#line 281 "parser.tab.c" +#line 284 "parser.tab.c" } YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ @@ -288,7 +291,7 @@ tokenunion /* Copy the second part of user declarations. */ /* Line 273 of skeleton.m4 */ -#line 269 "parser.y" +#line 274 "parser.y" static int a3_error(char*s) @@ -340,7 +343,7 @@ typedef struct _classstate { /* class data */ classinfo_t*info; abc_class_t*abc; - + methodstate_t*init; methodstate_t*static_init; //code_t*init; @@ -357,6 +360,7 @@ struct _methodstate { char is_constructor; char has_super; char is_global; + char is_static; int variable_count; dict_t*unresolved_variables; @@ -367,6 +371,8 @@ struct _methodstate { dict_t*slots; int activation_var; + int need_arguments; + abc_method_t*abc; int var_index; // for inner methods int slot_index; // for inner methods @@ -393,6 +399,7 @@ typedef struct _state { char has_own_imports; char new_vars; // e.g. transition between two functions + char xmlfilter; // are we inside a xmlobj..() filter? classstate_t*cls; methodstate_t*method; @@ -402,11 +409,17 @@ typedef struct _state { int switch_var; dict_t*vars; + dict_t*allvars; // also contains variables from sublevels } state_t; typedef struct _global { abc_file_t*file; - abc_script_t*init; + + parsedclass_list_t*classes; + abc_script_t*classinit; + + abc_script_t*init; //package-level code + dict_t*token2info; dict_t*file2token2info; } global_t; @@ -416,18 +429,19 @@ static state_t* state = 0; DECLARE_LIST(state); -#define MULTINAME(m,x) \ - multiname_t m;\ - namespace_t m##_ns;\ - (x)->package; \ - registry_fill_multiname(&m, &m##_ns, (slotinfo_t*)(x)); - +/* protected handling here is a big hack: we just assume the protectedns + is package:class. the correct approach would be to add the proper + namespace to all protected members in the registry, even though that + would slow down searching */ #define MEMBER_MULTINAME(m,f,n) \ multiname_t m;\ namespace_t m##_ns;\ if(f) { \ - if((m##_ns.access = ((slotinfo_t*)(f))->access)==ACCESS_NAMESPACE) \ + m##_ns.access = ((slotinfo_t*)(f))->access; \ + if(m##_ns.access == ACCESS_NAMESPACE) \ m##_ns.name = ((slotinfo_t*)(f))->package; \ + else if(m##_ns.access == ACCESS_PROTECTED && (f)->parent) \ + m##_ns.name = concat3((f)->parent->package,":",(f)->parent->name); \ else \ m##_ns.name = ""; \ m.type = QNAME; \ @@ -454,8 +468,8 @@ DECLARE_LIST(state); static namespace_t ns1 = {ACCESS_PRIVATE, ""}; static namespace_t ns2 = {ACCESS_PROTECTED, ""}; static namespace_t ns3 = {ACCESS_PACKAGEINTERNAL, ""}; -static namespace_t ns4 = {ACCESS_PACKAGE, ""}; -static namespace_list_t nl4 = {&ns4,0}; +static namespace_t stdns = {ACCESS_PACKAGE, ""}; +static namespace_list_t nl4 = {&stdns,0}; static namespace_list_t nl3 = {&ns3,&nl4}; static namespace_list_t nl2 = {&ns2,&nl3}; static namespace_list_t nl1 = {&ns1,&nl2}; @@ -505,16 +519,15 @@ static void state_destroy(state_t*state) dict_destroy(state->imports);state->imports=0; } if(state->vars) { - int t; - for(t=0;tvars->hashsize;t++) { - dictentry_t*e =state->vars->slots[t]; - while(e) { - free(e->data);e->data=0; - e = e->next; - } - } dict_destroy(state->vars);state->vars=0; } + if(state->new_vars && state->allvars) { + parserassert(!state->old || state->old->allvars != state->allvars); + DICT_ITERATE_DATA(state->allvars, void*, data) { + free(data); + } + dict_destroy(state->allvars); + } list_free(state->active_namespace_urls) state->active_namespace_urls = 0; @@ -546,7 +559,7 @@ static void old_state() static code_t* method_header(methodstate_t*m); static code_t* wrap_function(code_t*c,code_t*header, code_t*body); -static void function_initvars(methodstate_t*m, params_t*params, int flags, char var0); +static void function_initvars(methodstate_t*m, char has_params, params_t*params, int flags, char var0); static char* internal_filename_package = 0; @@ -560,6 +573,7 @@ void initialize_file(char*filename) new_state(); state->package = internal_filename_package = strdup(filename); + state->allvars = dict_new(); global->token2info = dict_lookup(global->file2token2info, current_filename // use long version @@ -577,7 +591,7 @@ void initialize_file(char*filename) state->method = dict_lookup(global->token2info, (void*)(ptroff_t)as3_tokencount); if(!state->method) syntaxerror("internal error: skewed tokencount"); - function_initvars(state->method, 0, 0, 1); + function_initvars(state->method, 0, 0, 0, 1); global->init = abc_initscript(global->file); } } @@ -590,10 +604,9 @@ void finish_file() if(as3_pass==2) { dict_del(global->file2token2info, current_filename); - code_t*header = method_header(state->method); code_t*c = wrap_function(header, 0, global->init->method->body->code); - global->init->method->body->code = c; + global->init->method->body->code = abc_returnvoid(c); free(state->method);state->method=0; } @@ -608,12 +621,16 @@ void initialize_parser() global->file->flags &= ~ABCFILE_LAZY; global->file2token2info = dict_new(); global->token2info = 0; + global->classinit = abc_initscript(global->file); } void* finish_parser() { dict_free_all(global->file2token2info, 1, (void*)dict_destroy); global->token2info=0; + + initcode_add_classlist(global->classinit, global->classes); + return global->file; } @@ -627,6 +644,7 @@ typedef struct _variable { static variable_t* find_variable(state_t*s, char*name) { + state_t*top = s; while(s) { variable_t*v = 0; v = dict_lookup(s->vars, name); @@ -634,7 +652,7 @@ static variable_t* find_variable(state_t*s, char*name) if(s->new_vars) break; s = s->old; } - return 0; + return dict_lookup(top->allvars, name); } static variable_t* find_slot(state_t*s, const char*name) { @@ -695,8 +713,10 @@ static variable_t* new_variable2(const char*name, classinfo_t*type, char init, c v->type = type; v->init = init; - if(name) + if(name) { dict_put(state->vars, name, v); + dict_put(state->allvars, name, v); + } return v; } @@ -779,8 +799,9 @@ static code_t* add_scope_code(code_t*c, methodstate_t*m, char init) if(m->uses_slots) { /* FIXME: this alloc_local() causes variable indexes to be different in pass2 than in pass1 */ - if(!m->activation_var) + if(!m->activation_var) { m->activation_var = alloc_local(); + } if(init) { c = abc_newactivation(c); c = abc_dup(c); @@ -916,7 +937,7 @@ static memberinfo_t* findmember_nsset(classinfo_t*cls, const char*name, char rec return registry_findmember_nsset(cls, state->active_namespace_urls, name, recurse); } -static void function_initvars(methodstate_t*m, params_t*params, int flags, char var0) +static void function_initvars(methodstate_t*m, char has_params, params_t*params, int flags, char var0) { if(var0) { int index = -1; @@ -929,6 +950,18 @@ static void function_initvars(methodstate_t*m, params_t*params, int flags, char parserassert(!index); } + if(has_params) { + param_list_t*p=0; + for(p=params->list;p;p=p->next) { + variable_t*v = new_variable2(p->param->name, p->param->type, 0, 1); + v->is_parameter = 1; + } + variable_t*v = new_variable2("arguments", TYPE_ARRAY, 0, 0); + if(as3_pass==2 && m->need_arguments) { + m->need_arguments = v->index; + } + } + if(m->uses_slots) { /* as variables and slots share the same number, make sure that those variable indices are reserved. It's up to the @@ -937,13 +970,6 @@ static void function_initvars(methodstate_t*m, params_t*params, int flags, char m->variable_count = m->uses_slots; } - if(params) { - param_list_t*p=0; - for(p=params->list;p;p=p->next) { - variable_t*v = new_variable2(p->param->name, p->param->type, 0, 1); - v->is_parameter = 1; - } - } methodstate_list_t*l = m->innerfunctions; while(l) { @@ -993,6 +1019,9 @@ static void startclass(modifiers_t* mod, char*classname, classinfo_t*extends, cl if((mod->flags&(FLAG_PUBLIC|FLAG_PACKAGEINTERNAL)) == (FLAG_PUBLIC|FLAG_PACKAGEINTERNAL)) syntaxerror("public and internal not supported at the same time."); + if((mod->flags&(FLAG_PROTECTED)) == (FLAG_STATIC)) + syntaxerror("protected and static not supported at the same time."); + //if(!(mod->flags&FLAG_INTERFACE) && !extends) { if(!(mod->flags&FLAG_INTERFACE) && !extends) { // all classes extend object @@ -1017,9 +1046,10 @@ static void startclass(modifiers_t* mod, char*classname, classinfo_t*extends, cl state->cls = rfx_calloc(sizeof(classstate_t)); state->cls->init = rfx_calloc(sizeof(methodstate_t)); state->cls->static_init = rfx_calloc(sizeof(methodstate_t)); + state->cls->static_init->is_static=FLAG_STATIC; state->cls->static_init->variable_count=1; /* notice: we make no effort to initialize the top variable (local0) here, - even though it has special meaning. We just rely on the facat + even though it has special meaning. We just rely on the fact that pass 1 won't do anything with variables */ dict_put(global->token2info, (void*)(ptroff_t)as3_tokencount, state->cls); @@ -1035,6 +1065,7 @@ static void startclass(modifiers_t* mod, char*classname, classinfo_t*extends, cl int num_interfaces = (list_length(implements)); state->cls->info = classinfo_register(access, package, classname, num_interfaces); state->cls->info->flags |= mod->flags & (FLAG_DYNAMIC|FLAG_INTERFACE|FLAG_FINAL); + state->cls->info->superclass = extends; int pos = 0; classinfo_list_t*l = implements; @@ -1045,12 +1076,12 @@ static void startclass(modifiers_t* mod, char*classname, classinfo_t*extends, cl if(as3_pass == 2) { state->cls = dict_lookup(global->token2info, (void*)(ptroff_t)as3_tokencount); - + state->method = state->cls->init; parserassert(state->cls && state->cls->info); - function_initvars(state->cls->init, 0, 0, 1); - function_initvars(state->cls->static_init, 0, 0, 0); + function_initvars(state->cls->init, 0, 0, 0, 1); + function_initvars(state->cls->static_init, 0, 0, 0, 0); if(extends && (extends->flags & FLAG_FINAL)) syntaxerror("Can't extend final class '%s'", extends->name); @@ -1063,79 +1094,33 @@ static void startclass(modifiers_t* mod, char*classname, classinfo_t*extends, cl pos++; } - /* fill out interfaces and extends (we couldn't resolve those during the first pass) */ - state->cls->info->superclass = extends; - /* generate the abc code for this class */ MULTINAME(classname2,state->cls->info); multiname_t*extends2 = sig2mname(extends); - state->cls->abc = abc_class_new(global->file, &classname2, extends2); + /* don't add the class to the class index just yet- that will be done later + by initscript */ + state->cls->abc = abc_class_new(0, &classname2, extends2); + state->cls->abc->file = global->file; + + multiname_destroy(extends2); if(state->cls->info->flags&FLAG_FINAL) abc_class_final(state->cls->abc); if(!(state->cls->info->flags&FLAG_DYNAMIC)) abc_class_sealed(state->cls->abc); if(state->cls->info->flags&FLAG_INTERFACE) { abc_class_interface(state->cls->abc); } - abc_class_protectedNS(state->cls->abc, classname); - for(mlist=implements;mlist;mlist=mlist->next) { MULTINAME(m, mlist->classinfo); abc_class_add_interface(state->cls->abc, &m); } - /* write the construction code for this class to the global init - function */ - int slotindex = abc_initscript_addClassTrait(global->init, &classname2, state->cls->abc); - - abc_method_body_t*m = global->init->method->body; - __ getglobalscope(m); - classinfo_t*s = extends; - - int count=0; - - while(s) { - //TODO: take a look at the current scope stack, maybe - // we can re-use something - s = s->superclass; - if(!s) - break; - - multiname_t*s2 = sig2mname(s); - __ getlex2(m, s2); - multiname_destroy(s2); - - __ pushscope(m); count++; - m->code = m->code->prev->prev; // invert - } - /* continue appending after last op end */ - while(m->code && m->code->next) m->code = m->code->next; - - /* TODO: if this is one of *our* classes, we can also - do a getglobalscope/getslot (which references - the init function's slots) */ - if(extends2) { - __ getlex2(m, extends2); - __ dup(m); - /* notice: we get a Verify Error #1107 if the top elemnt on the scope - stack is not the superclass */ - __ pushscope(m);count++; - } else { - __ pushnull(m); - /* notice: we get a verify error #1107 if the top element on the scope - stack is not the global object */ - __ getlocal_0(m); - __ pushscope(m);count++; - } - __ newclass(m,state->cls->abc); - while(count--) { - __ popscope(m); - } - __ setslot(m, slotindex); - multiname_destroy(extends2); + NEW(parsedclass_t,p); + p->cls = state->cls->info; + p->abc = state->cls->abc; + list_append(global->classes, p); /* flash.display.MovieClip handling */ - if(!as3_globalclass && (mod->flags&FLAG_PUBLIC) && slotinfo_equals((slotinfo_t*)registry_getMovieClip(),(slotinfo_t*)extends)) { if(state->package && state->package[0]) { as3_globalclass = concat3(state->package, ".", classname); @@ -1171,6 +1156,21 @@ static void endclass() code_t*c = method_header(state->cls->static_init); m->body->code = wrap_function(c, 0, m->body->code); } + + trait_list_t*trait = state->cls->abc->traits; + /* switch all protected members to the protected ns of this class */ + while(trait) { + trait_t*t = trait->trait; + if(t->name->ns->access == ACCESS_PROTECTED) { + if(!state->cls->abc->protectedNS) { + char*n = concat3(state->cls->info->package, ":", state->cls->info->name); + state->cls->abc->protectedNS = namespace_new_protected(n); + state->cls->abc->flags |= CLASS_PROTECTED_NS; + } + t->name->ns->name = strdup(state->cls->abc->protectedNS->name); + } + trait = trait->next; + } } old_state(); @@ -1256,7 +1256,7 @@ static methodinfo_t*registerfunction(enum yytokentype getset, modifiers_t*mod, c if(!state->cls) { //package method minfo = methodinfo_register_global(ns.access, state->package, name); - minfo->return_type = 0; // save this for pass 2 + minfo->return_type = return_type; } else if(getset != KW_GET && getset != KW_SET) { //class method memberinfo_t* m = registry_findmember(state->cls->info, ns.name, name, 0); @@ -1264,7 +1264,7 @@ static methodinfo_t*registerfunction(enum yytokentype getset, modifiers_t*mod, c syntaxerror("class already contains a %s '%s'", infotypename((slotinfo_t*)m), m->name); } minfo = methodinfo_register_onclass(state->cls->info, ns.access, ns.name, name); - minfo->return_type = 0; // save this for pass 2 + minfo->return_type = return_type; // getslot on a member slot only returns "undefined", so no need // to actually store these //state->minfo->slot = state->method->abc->method->trait->slot_id; @@ -1281,7 +1281,7 @@ static methodinfo_t*registerfunction(enum yytokentype getset, modifiers_t*mod, c // not sure wether to look into superclasses here, too minfo = (methodinfo_t*)registry_findmember(state->cls->info, ns.name, name, 1); if(minfo) { - if(minfo->kind!=INFOTYPE_SLOT) + if(minfo->kind!=INFOTYPE_VAR) syntaxerror("class already contains a method called '%s'", name); if(!(minfo->subtype & (SUBTYPE_GETSET))) syntaxerror("class already contains a field called '%s'", name); @@ -1302,10 +1302,11 @@ static methodinfo_t*registerfunction(enum yytokentype getset, modifiers_t*mod, c }*/ } else { minfo = methodinfo_register_onclass(state->cls->info, ns.access, ns.name, name); - minfo->kind = INFOTYPE_SLOT; //hack + minfo->kind = INFOTYPE_VAR; //hack minfo->subtype = gs; - minfo->return_type = 0; + minfo->return_type = type; } + /* can't assign a slot as getter and setter might have different slots */ //minfo->slot = slot; } @@ -1328,6 +1329,7 @@ static void innerfunction(char*name, params_t*params, classinfo_t*return_type) new_state(); state->new_vars = 1; + state->allvars = dict_new(); if(as3_pass == 1) { state->method = rfx_calloc(sizeof(methodstate_t)); @@ -1346,7 +1348,7 @@ static void innerfunction(char*name, params_t*params, classinfo_t*return_type) dict_put(global->token2info, (void*)(ptroff_t)as3_tokencount, state->method); - function_initvars(state->method, params, 0, 1); + function_initvars(state->method, 1, params, 0, 1); } if(as3_pass == 2) { @@ -1355,7 +1357,7 @@ static void innerfunction(char*name, params_t*params, classinfo_t*return_type) parserassert(state->method); state->method->info->return_type = return_type; - function_initvars(state->method, params, 0, 1); + function_initvars(state->method, 1, params, 0, 1); } } @@ -1367,10 +1369,12 @@ static void startfunction(modifiers_t*mod, enum yytokentype getset, char*name, } new_state(); state->new_vars = 1; - + state->allvars = dict_new(); + if(as3_pass == 1) { state->method = rfx_calloc(sizeof(methodstate_t)); state->method->has_super = 0; + state->method->is_static = mod->flags&FLAG_STATIC; if(state->cls) { state->method->is_constructor = !strcmp(state->cls->info->name,name); @@ -1383,7 +1387,7 @@ static void startfunction(modifiers_t*mod, enum yytokentype getset, char*name, state->method->info = registerfunction(getset, mod, name, params, return_type, 0); - function_initvars(state->method, params, mod->flags, 1); + function_initvars(state->method, 1, params, mod->flags, 1); dict_put(global->token2info, (void*)(ptroff_t)as3_tokencount, state->method); } @@ -1402,8 +1406,7 @@ static void startfunction(modifiers_t*mod, enum yytokentype getset, char*name, state->cls->has_constructor |= state->method->is_constructor; } - state->method->info->return_type = return_type; - function_initvars(state->method, params, mod->flags, 1); + function_initvars(state->method, 1, params, mod->flags, 1); } } @@ -1412,7 +1415,7 @@ static abc_method_t* endfunction(modifiers_t*mod, enum yytokentype getset, char* { if(as3_pass==1) { // store inner methods in variables - function_initvars(state->method, 0, 0, 0); + function_initvars(state->method, 0, 0, 0, 0); methodstate_list_t*ml = state->method->innerfunctions; @@ -1462,6 +1465,8 @@ static abc_method_t* endfunction(modifiers_t*mod, enum yytokentype getset, char* } state->method->uses_slots = i; dict_destroy(state->vars);state->vars = 0; + parserassert(state->new_vars); + dict_destroy(state->allvars);state->allvars = 0; } old_state(); return 0; @@ -1482,9 +1487,8 @@ static abc_method_t* endfunction(modifiers_t*mod, enum yytokentype getset, char* } else if(state->method->is_constructor) { f = abc_class_getconstructor(state->cls->abc, type2); } else if(!state->method->is_global) { - namespace_t mname_ns = modifiers2access(mod); - multiname_t mname = {QNAME, &mname_ns, 0, name}; - + namespace_t ns = modifiers2access(mod); + multiname_t mname = {QNAME, &ns, 0, name}; if(mod->flags&FLAG_STATIC) f = abc_class_staticmethod(state->cls->abc, type2, &mname); else @@ -1505,6 +1509,7 @@ static abc_method_t* endfunction(modifiers_t*mod, enum yytokentype getset, char* if(getset == KW_GET) f->trait->kind = TRAIT_GETTER; if(getset == KW_SET) f->trait->kind = TRAIT_SETTER; if(params->varargs) f->flags |= METHOD_NEED_REST; + if(state->method->need_arguments) f->flags |= METHOD_NEED_ARGUMENTS; char opt=0; param_list_t*p=0; @@ -1581,8 +1586,6 @@ void continuejumpsto(code_t*c, char*name, code_t*jump) } } -#define IS_NUMBER_OR_INT(a) (TYPE_IS_INT((a)) || TYPE_IS_UINT((a)) || TYPE_IS_NUMBER((a))) - code_t*converttype(code_t*c, classinfo_t*from, classinfo_t*to) { if(from==to) @@ -1609,6 +1612,9 @@ code_t*converttype(code_t*c, classinfo_t*from, classinfo_t*to) return abc_coerce2(c, &m); } + if(TYPE_IS_XMLLIST(to) && TYPE_IS_XML(from)) + return c; + if(TYPE_IS_BOOLEAN(to)) return abc_convert_b(c); if(TYPE_IS_STRING(to)) @@ -1745,7 +1751,8 @@ typedcode_t push_class(slotinfo_t*a) } } else { classinfo_t*c = (classinfo_t*)a; - if(c->slot) { + //if(c->slot) { + if(0) { //Error #1026: Slot 1 exceeds slotCount=0 of global x.c = abc_getglobalscope(x.c); x.c = abc_getslot(x.c, c->slot); } else { @@ -1898,11 +1905,11 @@ code_t* insert_finally(code_t*c, code_t*finally, int tempvar) /* Line 273 of skeleton.m4 */ -#line 1902 "parser.tab.c" +#line 1909 "parser.tab.c" /* Unqualified %code blocks. */ /* Line 274 of skeleton.m4 */ -#line 1966 "parser.y" +#line 1985 "parser.y" char is_subtype_of(classinfo_t*type, classinfo_t*supertype) { @@ -1911,7 +1918,7 @@ code_t* insert_finally(code_t*c, code_t*finally, int tempvar) /* Line 274 of skeleton.m4 */ -#line 2415 "parser.y" +#line 2434 "parser.y" static void state_has_imports() { @@ -1934,7 +1941,7 @@ code_t* insert_finally(code_t*c, code_t*finally, int tempvar) /* Line 274 of skeleton.m4 */ -#line 2548 "parser.y" +#line 2567 "parser.y" static int slotstate_varconst = 0; static modifiers_t*slotstate_flags = 0; @@ -1943,19 +1950,178 @@ code_t* insert_finally(code_t*c, code_t*finally, int tempvar) slotstate_varconst = varconst; slotstate_flags = flags; if(state->cls) { - if(flags && flags->flags&FLAG_STATIC) { - state->method = state->cls->static_init; + if(flags) { + if(flags->flags&FLAG_STATIC) { + state->method = state->cls->static_init; + } else { + state->method = state->cls->init; + } } else { - state->method = state->cls->init; + // reset to "default" state (all in class code is static by default) */ + state->method = state->cls->static_init; } } else { parserassert(state->method); } } + static trait_t* add_abc_slot(modifiers_t* modifiers, const char*name, multiname_t*m, code_t***c) + { + int flags = modifiers->flags; + namespace_t ns = modifiers2access(modifiers); + + /* slot name */ + multiname_t mname = {QNAME, &ns, 0, name}; + + trait_list_t**traits; + code_t**code=0; + if(!state->cls) { + // global variable + ns.name = state->package; + traits = &global->init->traits; + code = &global->init->method->body->code; + } else if(flags&FLAG_STATIC) { + // static variable + traits = &state->cls->abc->static_traits; + code = &state->cls->static_init->header; + } else { + // instance variable + traits = &state->cls->abc->traits; + code = &state->cls->init->header; + } + if(c) + *c = code; + if(m) + *m = *multiname_clone(&mname); + + return trait_new_member(traits, 0, multiname_clone(&mname), 0); + } + + +/* Line 274 of skeleton.m4 */ +#line 2747 "parser.y" + + static int xml_level = 0; + + +/* Line 274 of skeleton.m4 */ +#line 3519 "parser.y" + + node_t* resolve_identifier(char*name) + { + typedcode_t o; + o.t = 0; + o.c = 0; + + slotinfo_t*a = 0; + memberinfo_t*f = 0; + + variable_t*v; + /* look at variables */ + if((v = find_variable(state, name))) { + // name is a local variable + o.c = abc_getlocal(o.c, v->index); + o.t = v->type; + return mkcodenode(o); + } + if((v = find_slot(state, name))) { + o.c = abc_getscopeobject(o.c, 1); + o.c = abc_getslot(o.c, v->index); + o.t = v->type; + return mkcodenode(o); + } + + int i_am_static = state->method->is_static; + + /* look at current class' members */ + if(!state->method->inner && + !state->xmlfilter && + state->cls && + (f = findmember_nsset(state->cls->info, name, 1))) + { + // name is a member or attribute in this class + int var_is_static = (f->flags&FLAG_STATIC); + + if(f->kind == INFOTYPE_VAR && (f->flags&FLAG_CONST)) { + /* if the variable is a constant (and we know what is evaluates to), we + can just use the value itself */ + varinfo_t*v = (varinfo_t*)f; + if(v->value) { + return mkconstnode(v->value); + } + } + + if(var_is_static >= i_am_static) { + if(f->kind == INFOTYPE_METHOD) { + o.t = TYPE_FUNCTION(f); + } else { + o.t = f->type; + } + + if(var_is_static && !i_am_static) { + /* access to a static member from a non-static location. + do this via findpropstrict: + there doesn't seem to be any non-lookup way to access + static properties of a class */ + state->method->late_binding = 1; + o.t = f->type; + namespace_t ns = {f->access, f->package}; + multiname_t m = {QNAME, &ns, 0, name}; + o.c = abc_findpropstrict2(o.c, &m); + o.c = abc_getproperty2(o.c, &m); + return mkcodenode(o); + } else if(f->slot>0) { + o.c = abc_getlocal_0(o.c); + o.c = abc_getslot(o.c, f->slot); + return mkcodenode(o); + } else { + MEMBER_MULTINAME(m, f, name); + o.c = abc_getlocal_0(o.c); + o.c = abc_getproperty2(o.c, &m); + return mkcodenode(o); + } + } + } + + /* look at actual classes, in the current package and imported */ + if(!state->xmlfilter && (a = find_class(name))) { + if(state->cls && state->cls->info == (classinfo_t*)a && i_am_static) { + o.c = abc_getlocal_0(0); + o.t = TYPE_CLASS((classinfo_t*)a); + } else { + o = push_class(a); + } + return mkcodenode(o); + } + + /* look through package prefixes */ + if(!state->xmlfilter && + (dict_contains(state->import_toplevel_packages, name) || + registry_ispackage(name))) { + o.c = abc___pushpackage__(o.c, name); + o.t = 0; + return mkcodenode(o); //? + } + + /* unknown object, let the avm2 resolve it */ + if(1) { + if(!state->method->inner && !state->xmlfilter) { + /* we really should make inner functions aware of the class context */ + as3_warning("Couldn't resolve '%s', doing late binding", name); + } + state->method->late_binding = 1; + + multiname_t m = {MULTINAME, 0, &nopackage_namespace_set, name}; + + o.t = 0; + o.c = abc_findpropstrict2(o.c, &m); + o.c = abc_getproperty2(o.c, &m); + return mkcodenode(o); + } + } /* Line 274 of skeleton.m4 */ -#line 3399 "parser.y" +#line 3661 "parser.y" void add_active_url(const char*url) { @@ -1967,7 +2133,7 @@ code_t* insert_finally(code_t*c, code_t*finally, int tempvar) /* Line 274 of skeleton.m4 */ -#line 1971 "parser.tab.c" +#line 2137 "parser.tab.c" #ifdef short # undef short @@ -2180,22 +2346,22 @@ union yyalloc #endif /* YYFINAL -- State number of the termination state. */ -#define YYFINAL 147 +#define YYFINAL 157 /* YYLAST -- Last index in YYTABLE. */ -#define YYLAST 3105 +#define YYLAST 3397 /* YYNTOKENS -- Number of terminals. */ -#define YYNTOKENS 133 +#define YYNTOKENS 135 /* YYNNTS -- Number of nonterminals. */ -#define YYNNTS 115 +#define YYNNTS 134 /* YYNRULES -- Number of rules. */ -#define YYNRULES 303 +#define YYNRULES 347 /* YYNRULES -- Number of states. */ -#define YYNSTATES 517 +#define YYNSTATES 591 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 -#define YYMAXUTOK 362 +#define YYMAXUTOK 364 #define YYTRANSLATE(YYX) \ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) @@ -2206,16 +2372,16 @@ static const yytype_uint8 yytranslate[] = 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 117, 2, 2, 2, 115, 107, 2, - 121, 132, 114, 112, 100, 111, 126, 113, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 104, 99, - 108, 102, 109, 103, 127, 2, 2, 2, 2, 2, + 2, 2, 2, 119, 2, 2, 2, 117, 108, 2, + 123, 134, 116, 114, 101, 113, 128, 115, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 105, 100, + 110, 103, 111, 104, 129, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 123, 2, 124, 106, 2, 2, 2, 2, 2, + 2, 125, 2, 126, 107, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 125, 105, 131, 116, 2, 2, 2, + 2, 2, 2, 127, 106, 133, 118, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, @@ -2238,8 +2404,8 @@ static const yytype_uint8 yytranslate[] = 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, - 95, 96, 97, 98, 101, 110, 118, 119, 120, 122, - 128, 129, 130 + 95, 96, 97, 98, 99, 102, 109, 112, 120, 121, + 122, 124, 130, 131, 132 }; #if YYDEBUG @@ -2264,153 +2430,175 @@ static const yytype_uint16 yyprhs[] = 378, 379, 389, 390, 399, 400, 402, 404, 407, 409, 414, 416, 418, 420, 421, 423, 425, 428, 430, 433, 442, 444, 446, 447, 452, 454, 458, 462, 463, 466, - 468, 470, 472, 474, 476, 478, 480, 482, 484, 485, - 487, 490, 495, 499, 501, 506, 509, 511, 513, 514, - 515, 528, 530, 531, 532, 543, 545, 549, 551, 553, - 555, 559, 561, 563, 565, 568, 569, 570, 574, 575, - 577, 579, 581, 584, 587, 588, 593, 598, 603, 606, - 608, 611, 613, 615, 617, 621, 623, 627, 628, 630, - 634, 640, 642, 644, 646, 648, 650, 652, 654, 656, - 660, 664, 668, 672, 676, 680, 684, 688, 692, 696, - 700, 704, 707, 710, 714, 718, 722, 726, 730, 734, - 738, 742, 746, 750, 754, 758, 762, 766, 770, 775, - 778, 780, 784, 787, 792, 796, 800, 804, 808, 812, - 816, 820, 824, 828, 832, 836, 840, 846, 849, 852, - 855, 858, 862, 865, 870, 876, 880, 886, 890, 892, - 895, 900, 905, 908 + 468, 470, 472, 474, 476, 478, 480, 482, 484, 486, + 488, 490, 491, 492, 497, 498, 503, 504, 507, 510, + 513, 516, 520, 522, 524, 535, 542, 554, 555, 557, + 559, 562, 564, 568, 572, 576, 580, 581, 583, 586, + 591, 595, 597, 602, 605, 607, 609, 610, 611, 624, + 626, 627, 628, 639, 641, 645, 647, 649, 651, 655, + 657, 659, 661, 664, 665, 666, 670, 671, 673, 675, + 677, 680, 683, 684, 689, 694, 699, 702, 704, 707, + 709, 711, 713, 717, 719, 723, 724, 726, 728, 730, + 732, 734, 736, 740, 746, 748, 750, 752, 754, 756, + 758, 760, 762, 764, 766, 770, 774, 778, 782, 786, + 790, 794, 798, 802, 806, 810, 814, 817, 820, 824, + 828, 832, 836, 840, 844, 848, 852, 856, 860, 864, + 868, 872, 876, 880, 885, 888, 890, 894, 897, 902, + 906, 910, 914, 918, 922, 926, 930, 934, 938, 942, + 946, 950, 956, 959, 962, 965, 968, 972, 975, 976, + 983, 985, 987, 989, 991, 997, 1001, 1007, 1012, 1017, + 1024, 1031, 1035, 1037, 1040, 1045, 1050, 1053 }; /* YYRHS -- A `-1'-separated list of the rules' RHS. */ static const yytype_int16 yyrhs[] = { - 134, 0, -1, 135, -1, -1, 136, -1, 137, -1, - 136, 137, -1, 185, -1, 197, -1, 195, -1, 216, - -1, 206, -1, 146, -1, 147, 125, 135, 131, -1, - 99, -1, -1, 139, -1, 140, -1, 139, 140, -1, - 197, -1, 195, -1, 216, -1, 206, -1, 146, -1, - 147, 125, 138, 131, -1, 99, -1, 142, -1, -1, - 142, 144, -1, 144, -1, 188, -1, 158, -1, 159, - -1, 160, -1, 162, -1, 170, -1, 153, -1, 182, - -1, 178, -1, 239, -1, 247, -1, 246, -1, 125, - 142, 131, -1, 125, 131, -1, 99, -1, 143, -1, - 149, -1, 164, -1, 165, -1, 235, -1, 180, -1, - 147, 125, 142, 131, -1, 144, 99, -1, 144, -1, - 143, -1, 3, 89, 3, -1, 102, 242, -1, -1, - 45, 150, -1, 31, 150, -1, 151, -1, 150, 100, - 151, -1, 3, 226, 148, -1, -1, 64, 145, -1, - -1, 63, 121, 154, 237, 132, 145, 152, -1, -1, - 149, -1, 239, -1, 45, 3, 226, -1, 3, -1, - 11, 121, -1, 11, 49, 121, -1, 157, 155, 99, - 237, 99, 239, 132, 145, -1, 157, 156, 67, 237, - 132, 145, -1, -1, 12, 121, 161, 237, 132, 145, - -1, -1, 13, 163, 145, 12, 121, 237, 132, -1, - 65, -1, 65, 3, -1, 29, -1, 29, 3, -1, - -1, 167, -1, 169, -1, 167, 169, -1, 168, -1, - 167, 168, -1, 33, 242, 104, 141, -1, 61, 104, - 141, -1, -1, 14, 121, 171, 242, 132, 125, 166, - 131, -1, -1, 32, 121, 3, 226, 132, 173, 125, - 141, 131, -1, -1, 26, 125, 175, 141, 131, -1, - 172, -1, 176, 172, -1, 176, -1, 176, 174, -1, - 174, -1, -1, 51, 125, 179, 141, 131, 177, -1, - 36, 237, -1, 36, -1, 38, 121, 237, 132, -1, - 181, 145, -1, 3, -1, 17, -1, 4, -1, 184, - 126, 183, -1, 183, -1, -1, 17, 184, 125, 186, - 138, 131, -1, -1, 17, 125, 187, 138, 131, -1, - 40, 222, -1, 40, 184, 126, 114, -1, -1, 190, - -1, 191, -1, 190, 191, -1, 19, -1, 20, -1, - 18, -1, 37, -1, 46, -1, 48, -1, 47, -1, - 24, -1, 22, -1, 4, -1, -1, 53, 223, -1, - -1, 53, 224, -1, -1, 15, 224, -1, -1, 189, - 30, 3, 192, 194, 125, 196, 199, 131, -1, -1, - 189, 43, 3, 193, 125, 198, 202, 131, -1, -1, - 200, -1, 201, -1, 200, 201, -1, 99, -1, 147, - 125, 199, 131, -1, 206, -1, 216, -1, 143, -1, - -1, 203, -1, 204, -1, 203, 204, -1, 99, -1, - 45, 3, -1, 189, 25, 215, 3, 121, 212, 132, - 226, -1, 45, -1, 31, -1, -1, 189, 205, 207, - 208, -1, 209, -1, 208, 100, 209, -1, 3, 226, - 148, -1, -1, 102, 211, -1, 8, -1, 9, -1, - 10, -1, 5, -1, 55, -1, 54, -1, 44, -1, - 27, -1, 28, -1, -1, 213, -1, 93, 214, -1, - 213, 100, 93, 214, -1, 213, 100, 214, -1, 214, - -1, 3, 104, 225, 210, -1, 3, 210, -1, 50, - -1, 34, -1, -1, -1, 189, 25, 215, 3, 121, - 212, 132, 226, 125, 217, 141, 131, -1, 3, -1, - -1, -1, 25, 218, 121, 212, 132, 226, 125, 220, - 141, 131, -1, 183, -1, 184, 126, 183, -1, 222, - -1, 221, -1, 223, -1, 224, 100, 223, -1, 223, - -1, 114, -1, 35, -1, 104, 225, -1, -1, -1, - 121, 228, 132, -1, -1, 229, -1, 230, -1, 236, - -1, 229, 100, -1, 230, 236, -1, -1, 23, 242, - 231, 227, -1, 242, 121, 228, 132, -1, 52, 121, - 228, 132, -1, 62, 242, -1, 41, -1, 41, 237, - -1, 242, -1, 238, -1, 242, -1, 238, 100, 242, - -1, 242, -1, 239, 100, 242, -1, -1, 241, -1, - 236, 104, 236, -1, 241, 100, 236, 104, 236, -1, - 219, -1, 244, -1, 243, -1, 232, -1, 234, -1, - 233, -1, 211, -1, 6, -1, 123, 228, 124, -1, - 69, 240, 131, -1, 242, 108, 242, -1, 242, 109, - 242, -1, 242, 74, 242, -1, 242, 75, 242, -1, - 242, 70, 242, -1, 242, 71, 242, -1, 242, 73, - 242, -1, 242, 72, 242, -1, 242, 87, 242, -1, - 242, 88, 242, -1, 117, 242, -1, 116, 242, -1, - 242, 107, 242, -1, 242, 106, 242, -1, 242, 105, - 242, -1, 242, 96, 242, -1, 242, 95, 242, -1, - 242, 94, 242, -1, 242, 113, 242, -1, 242, 115, - 242, -1, 242, 112, 242, -1, 242, 111, 242, -1, - 242, 114, 242, -1, 242, 67, 242, -1, 242, 68, - 242, -1, 242, 39, 242, -1, 242, 66, 242, -1, - 42, 121, 242, 132, -1, 35, 242, -1, 35, -1, - 121, 238, 132, -1, 111, 242, -1, 242, 123, 242, - 124, -1, 242, 79, 242, -1, 242, 78, 242, -1, - 242, 85, 242, -1, 242, 84, 242, -1, 242, 86, - 242, -1, 242, 77, 242, -1, 242, 76, 242, -1, - 242, 83, 242, -1, 242, 80, 242, -1, 242, 81, - 242, -1, 242, 82, 242, -1, 242, 102, 242, -1, - 242, 103, 242, 104, 242, -1, 242, 91, -1, 242, - 90, -1, 91, 242, -1, 90, 242, -1, 52, 126, - 3, -1, 127, 3, -1, 242, 126, 127, 3, -1, - 242, 126, 3, 89, 3, -1, 242, 92, 3, -1, - 242, 126, 121, 242, 132, -1, 242, 126, 3, -1, - 3, -1, 16, 3, -1, 16, 3, 102, 3, -1, - 16, 3, 102, 5, -1, 189, 245, -1, 21, 16, - 223, -1 + 136, 0, -1, 137, -1, -1, 138, -1, 139, -1, + 138, 139, -1, 187, -1, 199, -1, 197, -1, 233, + -1, 208, -1, 148, -1, 149, 127, 137, 133, -1, + 100, -1, -1, 141, -1, 142, -1, 141, 142, -1, + 199, -1, 197, -1, 233, -1, 208, -1, 148, -1, + 149, 127, 140, 133, -1, 100, -1, 144, -1, -1, + 144, 146, -1, 146, -1, 190, -1, 160, -1, 161, + -1, 162, -1, 164, -1, 172, -1, 155, -1, 184, + -1, 180, -1, 256, -1, 268, -1, 267, -1, 127, + 144, 133, -1, 127, 133, -1, 100, -1, 145, -1, + 151, -1, 166, -1, 167, -1, 252, -1, 182, -1, + 149, 127, 144, 133, -1, 146, 100, -1, 146, -1, + 145, -1, 3, 90, 3, -1, 103, 260, -1, -1, + 46, 152, -1, 32, 152, -1, 153, -1, 152, 101, + 153, -1, 3, 243, 150, -1, -1, 65, 147, -1, + -1, 64, 123, 156, 254, 134, 147, 154, -1, -1, + 151, -1, 256, -1, 46, 3, 243, -1, 3, -1, + 11, 123, -1, 11, 50, 123, -1, 159, 157, 100, + 254, 100, 256, 134, 147, -1, 159, 158, 68, 254, + 134, 147, -1, -1, 12, 123, 163, 254, 134, 147, + -1, -1, 13, 165, 147, 12, 123, 254, 134, -1, + 66, -1, 66, 3, -1, 30, -1, 30, 3, -1, + -1, 169, -1, 171, -1, 169, 171, -1, 170, -1, + 169, 170, -1, 34, 260, 105, 143, -1, 62, 105, + 143, -1, -1, 14, 123, 173, 260, 134, 127, 168, + 133, -1, -1, 33, 123, 3, 243, 134, 175, 127, + 143, 133, -1, -1, 27, 127, 177, 143, 133, -1, + 174, -1, 178, 174, -1, 178, -1, 178, 176, -1, + 176, -1, -1, 52, 127, 181, 143, 133, 179, -1, + 37, 254, -1, 37, -1, 39, 123, 254, 134, -1, + 183, 147, -1, 3, -1, 17, -1, 4, -1, 186, + 128, 185, -1, 185, -1, -1, 17, 186, 127, 188, + 140, 133, -1, -1, 17, 127, 189, 140, 133, -1, + 41, 239, -1, 41, 186, 128, 116, -1, -1, 192, + -1, 193, -1, 192, 193, -1, 20, -1, 21, -1, + 18, -1, 38, -1, 47, -1, 49, -1, 48, -1, + 25, -1, 23, -1, 4, -1, -1, 54, 240, -1, + -1, 54, 241, -1, -1, 15, 241, -1, -1, 191, + 31, 3, 194, 196, 127, 198, 201, 133, -1, -1, + 191, 44, 3, 195, 127, 200, 204, 133, -1, -1, + 202, -1, 203, -1, 202, 203, -1, 100, -1, 149, + 127, 201, 133, -1, 208, -1, 233, -1, 145, -1, + -1, 205, -1, 206, -1, 205, 206, -1, 100, -1, + 46, 3, -1, 191, 26, 232, 3, 123, 229, 134, + 243, -1, 46, -1, 32, -1, -1, 191, 207, 209, + 210, -1, 211, -1, 210, 101, 211, -1, 3, 243, + 150, -1, -1, 103, 260, -1, 8, -1, 9, -1, + 10, -1, 5, -1, 56, -1, 55, -1, 45, -1, + 28, -1, 29, -1, 225, -1, 110, -1, 111, -1, + -1, -1, 127, 260, 219, 133, -1, -1, 127, 260, + 221, 133, -1, -1, 222, 218, -1, 222, 5, -1, + 222, 111, -1, 225, 222, -1, 223, 225, 222, -1, + 3, -1, 220, -1, 215, 224, 226, 216, 222, 110, + 115, 224, 217, 111, -1, 215, 224, 226, 115, 217, + 111, -1, 215, 224, 226, 216, 222, 223, 110, 115, + 224, 217, 111, -1, -1, 227, -1, 228, -1, 227, + 228, -1, 220, -1, 220, 103, 5, -1, 220, 103, + 220, -1, 3, 103, 220, -1, 3, 103, 5, -1, + -1, 230, -1, 94, 231, -1, 230, 101, 94, 231, + -1, 230, 101, 231, -1, 231, -1, 3, 105, 242, + 212, -1, 3, 212, -1, 51, -1, 35, -1, -1, + -1, 191, 26, 232, 3, 123, 229, 134, 243, 127, + 234, 143, 133, -1, 3, -1, -1, -1, 26, 235, + 123, 229, 134, 243, 127, 237, 143, 133, -1, 185, + -1, 186, 128, 185, -1, 239, -1, 238, -1, 240, + -1, 241, 101, 240, -1, 240, -1, 116, -1, 36, + -1, 105, 242, -1, -1, -1, 123, 245, 134, -1, + -1, 246, -1, 247, -1, 253, -1, 246, 101, -1, + 247, 253, -1, -1, 24, 260, 248, 244, -1, 260, + 123, 245, 134, -1, 53, 123, 245, 134, -1, 63, + 260, -1, 42, -1, 42, 254, -1, 260, -1, 255, + -1, 260, -1, 255, 101, 260, -1, 260, -1, 256, + 101, 260, -1, -1, 259, -1, 3, -1, 5, -1, + 8, -1, 9, -1, 10, -1, 258, 105, 253, -1, + 259, 101, 258, 105, 253, -1, 236, -1, 264, -1, + 249, -1, 251, -1, 250, -1, 265, -1, 213, -1, + 214, -1, 6, -1, 19, -1, 125, 245, 126, -1, + 70, 257, 133, -1, 260, 110, 260, -1, 260, 111, + 260, -1, 260, 75, 260, -1, 260, 76, 260, -1, + 260, 71, 260, -1, 260, 72, 260, -1, 260, 74, + 260, -1, 260, 73, 260, -1, 260, 88, 260, -1, + 260, 89, 260, -1, 119, 260, -1, 118, 260, -1, + 260, 108, 260, -1, 260, 107, 260, -1, 260, 106, + 260, -1, 260, 97, 260, -1, 260, 96, 260, -1, + 260, 95, 260, -1, 260, 115, 260, -1, 260, 117, + 260, -1, 260, 114, 260, -1, 260, 113, 260, -1, + 260, 116, 260, -1, 260, 68, 260, -1, 260, 69, + 260, -1, 260, 40, 260, -1, 260, 67, 260, -1, + 43, 123, 260, 134, -1, 36, 260, -1, 36, -1, + 123, 255, 134, -1, 113, 260, -1, 260, 125, 260, + 126, -1, 260, 80, 260, -1, 260, 79, 260, -1, + 260, 86, 260, -1, 260, 85, 260, -1, 260, 87, + 260, -1, 260, 78, 260, -1, 260, 77, 260, -1, + 260, 84, 260, -1, 260, 81, 260, -1, 260, 82, + 260, -1, 260, 83, 260, -1, 260, 103, 260, -1, + 260, 104, 260, 105, 260, -1, 260, 92, -1, 260, + 91, -1, 92, 260, -1, 91, 260, -1, 53, 128, + 3, -1, 129, 3, -1, -1, 260, 128, 123, 261, + 260, 134, -1, 3, -1, 4, -1, 3, -1, 116, + -1, 260, 128, 262, 90, 263, -1, 260, 93, 263, + -1, 260, 128, 125, 260, 126, -1, 260, 128, 129, + 263, -1, 260, 93, 129, 263, -1, 260, 128, 129, + 125, 260, 126, -1, 260, 93, 129, 125, 260, 126, + -1, 260, 128, 263, -1, 3, -1, 16, 3, -1, + 16, 3, 103, 3, -1, 16, 3, 103, 5, -1, + 191, 266, -1, 22, 16, 240, -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const yytype_uint16 yyrline[] = { - 0, 1881, 1881, 1883, 1883, 1884, 1885, 1887, 1888, 1889, - 1890, 1891, 1892, 1893, 1894, 1896, 1896, 1897, 1898, 1900, - 1901, 1902, 1903, 1904, 1905, 1906, 1908, 1909, 1911, 1912, - 1915, 1916, 1917, 1918, 1919, 1920, 1921, 1922, 1923, 1924, - 1925, 1926, 1927, 1928, 1931, 1932, 1933, 1934, 1935, 1936, - 1937, 1938, 1942, 1943, 1947, 1954, 1973, 1974, 1976, 1977, - 1979, 1980, 1982, 2042, 2043, 2046, 2046, 2065, 2066, 2067, - 2072, 2076, 2081, 2082, 2084, 2104, 2152, 2152, 2171, 2171, - 2186, 2189, 2192, 2195, 2199, 2200, 2201, 2202, 2203, 2204, - 2206, 2217, 2220, 2220, 2251, 2251, 2276, 2276, 2292, 2293, - 2294, 2295, 2303, 2312, 2312, 2361, 2365, 2376, 2386, 2403, - 2404, 2405, 2407, 2408, 2410, 2410, 2412, 2412, 2435, 2449, - 2465, 2466, 2467, 2468, 2475, 2476, 2477, 2478, 2479, 2480, - 2481, 2482, 2483, 2484, 2488, 2489, 2491, 2492, 2494, 2495, - 2499, 2497, 2505, 2503, 2512, 2513, 2514, 2515, 2516, 2517, - 2518, 2519, 2521, 2527, 2528, 2529, 2530, 2531, 2532, 2535, - 2567, 2567, 2569, 2569, 2571, 2572, 2574, 2666, 2667, 2670, - 2671, 2674, 2675, 2676, 2677, 2678, 2679, 2680, 2695, 2699, - 2705, 2711, 2719, 2724, 2730, 2738, 2746, 2747, 2748, 2751, - 2750, 2767, 2768, 2770, 2769, 2793, 2812, 2826, 2827, 2829, - 2830, 2832, 2833, 2834, 2843, 2844, 2848, 2849, 2851, 2852, - 2853, 2855, 2859, 2860, 2865, 2866, 2903, 2950, 2971, 2993, - 2996, 3003, 3006, 3009, 3012, 3015, 3018, 3023, 3024, 3026, - 3032, 3041, 3042, 3043, 3044, 3045, 3046, 3048, 3053, 3073, - 3083, 3092, 3093, 3094, 3095, 3096, 3097, 3098, 3099, 3100, - 3101, 3102, 3103, 3104, 3105, 3106, 3107, 3108, 3109, 3110, - 3111, 3112, 3113, 3114, 3115, 3116, 3117, 3118, 3119, 3120, - 3121, 3122, 3123, 3124, 3125, 3126, 3127, 3128, 3129, 3130, - 3131, 3132, 3133, 3134, 3135, 3136, 3137, 3139, 3140, 3141, - 3142, 3144, 3159, 3165, 3171, 3177, 3183, 3196, 3254, 3363, - 3370, 3377, 3384, 3408 + 0, 1890, 1890, 1892, 1892, 1893, 1894, 1896, 1897, 1898, + 1899, 1900, 1901, 1902, 1903, 1905, 1905, 1906, 1907, 1909, + 1910, 1911, 1912, 1913, 1914, 1915, 1917, 1918, 1920, 1923, + 1926, 1927, 1928, 1929, 1930, 1931, 1932, 1933, 1934, 1935, + 1936, 1937, 1938, 1939, 1942, 1943, 1944, 1945, 1946, 1947, + 1948, 1949, 1961, 1962, 1966, 1973, 1992, 1993, 1995, 1996, + 1998, 1999, 2001, 2061, 2062, 2065, 2065, 2084, 2085, 2086, + 2091, 2095, 2100, 2101, 2103, 2123, 2171, 2171, 2190, 2190, + 2205, 2208, 2211, 2214, 2218, 2219, 2220, 2221, 2222, 2223, + 2225, 2236, 2239, 2239, 2270, 2270, 2295, 2295, 2311, 2312, + 2313, 2314, 2322, 2331, 2331, 2380, 2384, 2395, 2405, 2422, + 2423, 2424, 2426, 2427, 2429, 2429, 2431, 2431, 2454, 2468, + 2484, 2485, 2486, 2487, 2494, 2495, 2496, 2497, 2498, 2499, + 2500, 2501, 2502, 2503, 2507, 2508, 2510, 2511, 2513, 2514, + 2518, 2516, 2524, 2522, 2531, 2532, 2533, 2534, 2535, 2536, + 2537, 2538, 2540, 2546, 2547, 2548, 2549, 2550, 2551, 2554, + 2622, 2622, 2624, 2624, 2626, 2627, 2629, 2713, 2714, 2723, + 2724, 2727, 2728, 2729, 2730, 2731, 2732, 2733, 2751, 2753, + 2754, 2755, 2757, 2757, 2761, 2761, 2765, 2766, 2769, 2770, + 2772, 2773, 2775, 2776, 2778, 2782, 2785, 2790, 2791, 2792, + 2793, 2795, 2798, 2802, 2805, 2808, 2818, 2822, 2828, 2834, + 2842, 2847, 2853, 2861, 2869, 2870, 2871, 2874, 2873, 2890, + 2891, 2893, 2892, 2916, 2935, 2949, 2950, 2952, 2953, 2955, + 2956, 2957, 2966, 2967, 2971, 2972, 2974, 2975, 2976, 2978, + 2982, 2983, 2988, 2989, 3033, 3083, 3104, 3126, 3129, 3136, + 3139, 3142, 3145, 3148, 3151, 3156, 3157, 3159, 3160, 3161, + 3162, 3163, 3165, 3171, 3180, 3181, 3182, 3183, 3184, 3185, + 3187, 3191, 3203, 3221, 3232, 3242, 3251, 3252, 3253, 3254, + 3255, 3256, 3257, 3258, 3259, 3260, 3261, 3262, 3263, 3264, + 3265, 3266, 3267, 3268, 3269, 3270, 3271, 3272, 3273, 3274, + 3275, 3276, 3277, 3278, 3279, 3280, 3281, 3282, 3283, 3284, + 3285, 3286, 3287, 3288, 3289, 3290, 3291, 3292, 3293, 3294, + 3295, 3296, 3298, 3299, 3300, 3301, 3303, 3318, 3326, 3326, + 3380, 3381, 3382, 3383, 3385, 3403, 3410, 3421, 3428, 3435, + 3445, 3456, 3634, 3670, 3677, 3684, 3691, 3713 }; #endif @@ -2422,9 +2610,9 @@ static const char *const yytname[] = "$end", "error", "$undefined", "T_IDENTIFIER", "T_NAMESPACE", "T_STRING", "T_REGEXP", "T_EMPTY", "T_INT", "T_UINT", "T_FLOAT", "\"for\"", "\"while\"", "\"do\"", "\"switch\"", "\"implements\"", - "\"namespace\"", "\"package\"", "\"protected\"", "\"public\"", - "\"private\"", "\"use\"", "\"internal\"", "\"new\"", "\"native\"", - "\"function\"", "\"finally\"", "\"undefined\"", "\"NaN\"", + "\"namespace\"", "\"package\"", "\"protected\"", "\"arguments\"", + "\"public\"", "\"private\"", "\"use\"", "\"internal\"", "\"new\"", + "\"native\"", "\"function\"", "\"finally\"", "\"undefined\"", "\"NaN\"", "\"continue\"", "\"class\"", "\"const\"", "\"catch\"", "\"case\"", "\"set\"", "\"void\"", "\"throw\"", "\"static\"", "\"with\"", "\"instanceof\"", "\"import\"", "\"return\"", "\"typeof\"", @@ -2438,11 +2626,11 @@ static const char *const yytname[] = "\"-=\"", "\"^=\"", "\">>=\"", "\"<<=\"", "\">>>=\"", "\"||\"", "\"&&\"", "\"::\"", "\"--\"", "\"++\"", "\"..\"", "\"...\"", "\"<<\"", "\">>>\"", "\">>\"", "prec_none", "below_semicolon", "';'", "','", - "below_assignment", "'='", "'?'", "':'", "'|'", "'^'", "'&'", "'<'", - "'>'", "below_minus", "'-'", "'+'", "'/'", "'*'", "'%'", "'~'", "'!'", - "minusminus_prefix", "plusplus_prefix", "below_curly", "'('", "new2", - "'['", "']'", "'{'", "'.'", "'@'", "above_identifier", "below_else", - "above_function", "'}'", "')'", "$accept", "PROGRAM", + "below_assignment", "'='", "'?'", "':'", "'|'", "'^'", "'&'", "below_lt", + "'<'", "'>'", "below_minus", "'-'", "'+'", "'/'", "'*'", "'%'", "'~'", + "'!'", "minusminus_prefix", "plusplus_prefix", "below_curly", "'('", + "new2", "'['", "']'", "'{'", "'.'", "'@'", "above_identifier", + "below_else", "above_function", "'}'", "')'", "$accept", "PROGRAM", "MAYBE_PROGRAM_CODE_LIST", "PROGRAM_CODE_LIST", "PROGRAM_CODE", "MAYBE_INPACKAGE_CODE_LIST", "INPACKAGE_CODE_LIST", "INPACKAGE_CODE", "MAYBECODE", "CODE", "CODE_STATEMENT", "CODEPIECE", "CODEBLOCK", @@ -2459,15 +2647,19 @@ static const char *const yytname[] = "$@11", "MAYBE_CLASS_BODY", "CLASS_BODY", "CLASS_BODY_ITEM", "MAYBE_INTERFACE_BODY", "INTERFACE_BODY", "IDECLARATION", "VARCONST", "SLOT_DECLARATION", "$@12", "SLOT_LIST", "ONE_SLOT", "MAYBECONSTANT", - "CONSTANT", "MAYBE_PARAM_LIST", "PARAM_LIST", "PARAM", "GETSET", - "FUNCTION_DECLARATION", "$@13", "MAYBE_IDENTIFIER", "INNERFUNCTION", - "$@14", "CLASS", "PACKAGEANDCLASS", "CLASS_SPEC", "CLASS_SPEC_LIST", + "CONSTANT", "XML", "OPEN", "CLOSE", "CLOSE2", "XMLEXPR1", "$@13", + "XMLEXPR2", "$@14", "XMLTEXT", "XML2", "XML_ID_OR_EXPR", "XMLNODE", + "MAYBE_XMLATTRIBUTES", "XMLATTRIBUTES", "XMLATTRIBUTE", + "MAYBE_PARAM_LIST", "PARAM_LIST", "PARAM", "GETSET", + "FUNCTION_DECLARATION", "$@15", "MAYBE_IDENTIFIER", "INNERFUNCTION", + "$@16", "CLASS", "PACKAGEANDCLASS", "CLASS_SPEC", "CLASS_SPEC_LIST", "TYPE", "MAYBETYPE", "MAYBE_PARAM_VALUES", "MAYBE_EXPRESSION_LIST", "EXPRESSION_LIST", "EXPRESSION_LIST_AND_COMMA", "XX", "NEW", "FUNCTIONCALL", "DELETE", "RETURN", "NONCOMMAEXPRESSION", "EXPRESSION", - "COMMA_EXPRESSION", "VOIDEXPRESSION", "MAYBE_EXPRPAIR_LIST", - "EXPRPAIR_LIST", "E", "MEMBER", "VAR_READ", "NAMESPACE_ID", - "NAMESPACE_DECLARATION", "USE_NAMESPACE", 0 + "COMMA_EXPRESSION", "VOIDEXPRESSION", "MAYBE_DICT_EXPRPAIR_LIST", + "DICTLH", "DICT_EXPRPAIR_LIST", "E", "$@17", "ID_OR_NS", "SUBNODE", + "MEMBER", "VAR_READ", "NAMESPACE_ID", "NAMESPACE_DECLARATION", + "USE_NAMESPACE", 0 }; #endif @@ -2485,48 +2677,52 @@ static const yytype_uint16 yytoknum[] = 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, - 345, 346, 347, 348, 349, 350, 351, 352, 353, 59, - 44, 354, 61, 63, 58, 124, 94, 38, 60, 62, - 355, 45, 43, 47, 42, 37, 126, 33, 356, 357, - 358, 40, 359, 91, 93, 123, 46, 64, 360, 361, - 362, 125, 41 + 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, + 59, 44, 355, 61, 63, 58, 124, 94, 38, 356, + 60, 62, 357, 45, 43, 47, 42, 37, 126, 33, + 358, 359, 360, 40, 361, 91, 93, 123, 46, 64, + 362, 363, 364, 125, 41 }; # endif /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ -static const yytype_uint8 yyr1[] = +static const yytype_uint16 yyr1[] = { - 0, 133, 134, 135, 135, 136, 136, 137, 137, 137, - 137, 137, 137, 137, 137, 138, 138, 139, 139, 140, - 140, 140, 140, 140, 140, 140, 141, 141, 142, 142, - 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, - 143, 143, 143, 143, 144, 144, 144, 144, 144, 144, - 144, 144, 145, 145, 146, 147, 148, 148, 149, 149, - 150, 150, 151, 152, 152, 154, 153, 155, 155, 155, - 156, 156, 157, 157, 158, 159, 161, 160, 163, 162, - 164, 164, 165, 165, 166, 166, 166, 166, 167, 167, - 168, 169, 171, 170, 173, 172, 175, 174, 176, 176, - 177, 177, 177, 179, 178, 180, 180, 181, 182, 183, - 183, 183, 184, 184, 186, 185, 187, 185, 188, 188, - 189, 189, 190, 190, 191, 191, 191, 191, 191, 191, - 191, 191, 191, 191, 192, 192, 193, 193, 194, 194, - 196, 195, 198, 197, 199, 199, 200, 200, 201, 201, - 201, 201, 201, 202, 202, 203, 203, 204, 204, 204, - 205, 205, 207, 206, 208, 208, 209, 210, 210, 211, - 211, 211, 211, 211, 211, 211, 211, 211, 212, 212, - 212, 212, 213, 213, 214, 214, 215, 215, 215, 217, - 216, 218, 218, 220, 219, 221, 222, 223, 223, 224, - 224, 225, 225, 225, 226, 226, 227, 227, 228, 228, - 228, 229, 230, 229, 231, 232, 233, 233, 234, 235, - 235, 236, 237, 238, 238, 239, 239, 240, 240, 241, - 241, 242, 242, 242, 242, 242, 242, 242, 242, 242, - 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, - 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, - 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, - 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, - 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, - 242, 242, 242, 242, 242, 242, 242, 243, 244, 245, - 245, 245, 246, 247 + 0, 135, 136, 137, 137, 138, 138, 139, 139, 139, + 139, 139, 139, 139, 139, 140, 140, 141, 141, 142, + 142, 142, 142, 142, 142, 142, 143, 143, 144, 144, + 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, + 145, 145, 145, 145, 146, 146, 146, 146, 146, 146, + 146, 146, 147, 147, 148, 149, 150, 150, 151, 151, + 152, 152, 153, 154, 154, 156, 155, 157, 157, 157, + 158, 158, 159, 159, 160, 161, 163, 162, 165, 164, + 166, 166, 167, 167, 168, 168, 168, 168, 169, 169, + 170, 171, 173, 172, 175, 174, 177, 176, 178, 178, + 179, 179, 179, 181, 180, 182, 182, 183, 184, 185, + 185, 185, 186, 186, 188, 187, 189, 187, 190, 190, + 191, 191, 192, 192, 193, 193, 193, 193, 193, 193, + 193, 193, 193, 193, 194, 194, 195, 195, 196, 196, + 198, 197, 200, 199, 201, 201, 202, 202, 203, 203, + 203, 203, 203, 204, 204, 205, 205, 206, 206, 206, + 207, 207, 209, 208, 210, 210, 211, 212, 212, 213, + 213, 213, 213, 213, 213, 213, 213, 213, 214, 215, + 216, 217, 219, 218, 221, 220, 222, 222, 222, 222, + 223, 223, 224, 224, 225, 225, 225, 226, 226, 227, + 227, 228, 228, 228, 228, 228, 229, 229, 229, 229, + 230, 230, 231, 231, 232, 232, 232, 234, 233, 235, + 235, 237, 236, 238, 239, 240, 240, 241, 241, 242, + 242, 242, 243, 243, 244, 244, 245, 245, 245, 246, + 247, 246, 248, 249, 250, 250, 251, 252, 252, 253, + 254, 255, 255, 256, 256, 257, 257, 258, 258, 258, + 258, 258, 259, 259, 260, 260, 260, 260, 260, 260, + 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, + 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, + 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, + 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, + 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, + 260, 260, 260, 260, 260, 260, 260, 260, 261, 260, + 262, 262, 263, 263, 260, 260, 260, 260, 260, 260, + 260, 264, 265, 266, 266, 266, 267, 268 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ @@ -2549,20 +2745,24 @@ static const yytype_uint8 yyr2[] = 0, 9, 0, 8, 0, 1, 1, 2, 1, 4, 1, 1, 1, 0, 1, 1, 2, 1, 2, 8, 1, 1, 0, 4, 1, 3, 3, 0, 2, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, - 2, 4, 3, 1, 4, 2, 1, 1, 0, 0, - 12, 1, 0, 0, 10, 1, 3, 1, 1, 1, - 3, 1, 1, 1, 2, 0, 0, 3, 0, 1, - 1, 1, 2, 2, 0, 4, 4, 4, 2, 1, - 2, 1, 1, 1, 3, 1, 3, 0, 1, 3, - 5, 1, 1, 1, 1, 1, 1, 1, 1, 3, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 0, 0, 4, 0, 4, 0, 2, 2, 2, + 2, 3, 1, 1, 10, 6, 11, 0, 1, 1, + 2, 1, 3, 3, 3, 3, 0, 1, 2, 4, + 3, 1, 4, 2, 1, 1, 0, 0, 12, 1, + 0, 0, 10, 1, 3, 1, 1, 1, 3, 1, + 1, 1, 2, 0, 0, 3, 0, 1, 1, 1, + 2, 2, 0, 4, 4, 4, 2, 1, 2, 1, + 1, 1, 3, 1, 3, 0, 1, 1, 1, 1, + 1, 1, 3, 5, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 2, 2, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 4, 2, 1, 3, 2, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 2, 2, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 4, 2, - 1, 3, 2, 4, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 5, 2, 2, 2, - 2, 3, 2, 4, 5, 3, 5, 3, 1, 2, - 4, 4, 2, 3 + 3, 5, 2, 2, 2, 2, 3, 2, 0, 6, + 1, 1, 1, 1, 5, 3, 5, 4, 4, 6, + 6, 3, 1, 2, 4, 4, 2, 3 }; /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state @@ -2570,844 +2770,930 @@ static const yytype_uint8 yyr2[] = means the default is an error. */ static const yytype_uint16 yydefact[] = { - 120, 298, 133, 172, 238, 169, 170, 171, 0, 0, - 78, 0, 0, 126, 124, 125, 0, 132, 0, 131, - 192, 176, 177, 270, 127, 0, 0, 0, 175, 128, - 130, 129, 0, 0, 174, 173, 0, 0, 227, 0, - 0, 14, 0, 0, 0, 0, 208, 120, 0, 0, - 2, 120, 5, 54, 12, 0, 36, 67, 31, 32, - 33, 34, 35, 38, 120, 37, 7, 30, 0, 121, - 122, 9, 8, 11, 237, 10, 231, 234, 236, 235, - 39, 225, 233, 232, 41, 40, 0, 0, 72, 76, - 120, 92, 109, 111, 110, 116, 113, 0, 0, 298, - 214, 191, 0, 269, 0, 0, 118, 0, 103, 208, - 0, 218, 65, 0, 0, 228, 221, 290, 289, 272, - 252, 251, 0, 223, 0, 209, 210, 211, 82, 0, - 106, 219, 0, 80, 44, 43, 120, 45, 29, 0, - 46, 47, 48, 50, 0, 49, 292, 1, 6, 120, - 298, 0, 68, 0, 0, 69, 53, 108, 0, 188, - 0, 161, 0, 160, 162, 302, 123, 0, 0, 0, + 120, 342, 133, 172, 272, 169, 170, 171, 0, 0, + 78, 0, 0, 126, 273, 124, 125, 0, 132, 0, + 131, 220, 176, 177, 305, 127, 0, 0, 0, 175, + 128, 130, 129, 0, 0, 174, 173, 0, 0, 255, + 0, 0, 14, 179, 0, 0, 0, 0, 236, 120, + 0, 0, 2, 120, 5, 54, 12, 0, 36, 67, + 31, 32, 33, 34, 35, 38, 120, 37, 7, 30, + 0, 121, 122, 9, 8, 11, 270, 271, 0, 178, + 10, 264, 266, 268, 267, 39, 253, 265, 269, 41, + 40, 0, 0, 72, 76, 120, 92, 109, 111, 110, + 116, 113, 0, 0, 342, 242, 219, 0, 304, 0, + 0, 118, 0, 103, 236, 0, 246, 65, 257, 258, + 259, 260, 261, 0, 0, 256, 325, 324, 307, 287, + 286, 0, 251, 0, 237, 238, 239, 249, 82, 0, + 106, 247, 0, 80, 44, 43, 120, 45, 29, 0, + 46, 47, 48, 50, 0, 49, 327, 1, 6, 120, + 342, 0, 68, 0, 0, 69, 53, 108, 0, 216, + 0, 161, 0, 160, 162, 346, 123, 192, 0, 193, + 197, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 323, 322, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 288, 287, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 208, - 0, 0, 55, 73, 0, 0, 0, 120, 114, 0, - 195, 0, 198, 197, 303, 206, 178, 0, 222, 0, - 0, 27, 0, 291, 0, 0, 240, 0, 0, 271, - 239, 212, 213, 83, 205, 59, 60, 105, 220, 58, - 81, 42, 28, 120, 0, 205, 0, 0, 52, 299, - 187, 186, 0, 134, 136, 0, 226, 266, 267, 264, - 265, 245, 246, 248, 247, 243, 244, 280, 279, 275, - 274, 282, 283, 284, 281, 277, 276, 278, 249, 250, - 295, 258, 257, 256, 285, 0, 255, 254, 253, 241, - 242, 262, 261, 259, 263, 260, 0, 0, 297, 0, - 0, 0, 0, 0, 25, 0, 120, 17, 23, 0, - 20, 19, 22, 21, 120, 112, 0, 208, 215, 167, - 0, 0, 179, 183, 107, 119, 196, 268, 0, 26, - 217, 0, 229, 0, 224, 0, 57, 0, 120, 13, - 57, 0, 0, 0, 0, 0, 138, 0, 0, 205, - 163, 164, 0, 216, 273, 0, 0, 293, 120, 0, - 0, 117, 18, 120, 0, 0, 0, 0, 185, 180, - 205, 0, 0, 120, 0, 203, 202, 201, 204, 0, - 62, 61, 51, 0, 120, 300, 301, 178, 135, 0, - 0, 199, 137, 142, 57, 0, 286, 294, 296, 77, - 0, 84, 0, 115, 207, 168, 167, 0, 0, 182, - 0, 0, 98, 102, 100, 104, 63, 230, 56, 0, - 75, 0, 139, 140, 0, 120, 166, 165, 79, 0, - 0, 0, 85, 88, 86, 24, 184, 193, 181, 96, - 0, 99, 101, 120, 66, 120, 205, 120, 200, 0, - 157, 0, 0, 120, 155, 0, 27, 93, 89, 87, - 27, 27, 205, 64, 74, 0, 148, 152, 0, 0, - 0, 120, 146, 150, 151, 158, 188, 143, 156, 27, - 91, 0, 0, 0, 189, 120, 141, 147, 0, 90, - 194, 97, 94, 27, 0, 0, 0, 0, 149, 178, - 27, 190, 0, 0, 205, 95, 159 + 0, 0, 0, 236, 0, 0, 55, 73, 0, 0, + 0, 120, 114, 0, 223, 0, 226, 225, 347, 234, + 206, 0, 250, 0, 0, 27, 0, 326, 0, 275, + 0, 0, 0, 306, 274, 240, 241, 83, 233, 59, + 60, 105, 248, 58, 81, 42, 28, 120, 0, 233, + 0, 0, 52, 343, 215, 214, 0, 134, 136, 0, + 184, 0, 201, 0, 198, 199, 254, 301, 302, 299, + 300, 280, 281, 283, 282, 278, 279, 315, 314, 310, + 309, 317, 318, 319, 316, 312, 311, 313, 284, 285, + 332, 333, 0, 335, 293, 292, 291, 320, 0, 290, + 289, 288, 276, 277, 297, 296, 294, 298, 295, 0, + 0, 332, 331, 328, 0, 0, 0, 341, 0, 0, + 0, 25, 0, 120, 17, 23, 0, 20, 19, 22, + 21, 120, 112, 0, 236, 243, 167, 0, 0, 207, + 211, 107, 119, 224, 303, 0, 26, 245, 0, 262, + 0, 252, 0, 57, 0, 120, 13, 57, 0, 0, + 0, 0, 0, 138, 0, 0, 233, 163, 164, 0, + 0, 0, 180, 181, 186, 200, 0, 338, 0, 244, + 308, 0, 0, 0, 337, 0, 120, 0, 0, 117, + 18, 120, 0, 0, 0, 0, 213, 208, 233, 0, + 0, 120, 0, 231, 230, 229, 232, 0, 62, 61, + 51, 0, 120, 344, 345, 206, 135, 0, 0, 227, + 137, 142, 57, 0, 185, 205, 204, 202, 203, 0, + 0, 0, 321, 0, 336, 0, 334, 77, 0, 84, + 0, 115, 235, 168, 167, 0, 0, 210, 0, 0, + 98, 102, 100, 104, 63, 263, 56, 0, 75, 0, + 139, 140, 0, 120, 166, 165, 195, 188, 179, 189, + 0, 187, 0, 186, 340, 329, 339, 79, 0, 0, + 0, 85, 88, 86, 24, 212, 221, 209, 96, 0, + 99, 101, 120, 66, 120, 233, 120, 228, 0, 157, + 0, 0, 120, 155, 0, 182, 179, 186, 190, 0, + 27, 93, 89, 87, 27, 27, 233, 64, 74, 0, + 148, 152, 0, 0, 0, 120, 146, 150, 151, 158, + 216, 143, 156, 181, 0, 0, 191, 27, 91, 0, + 0, 0, 217, 120, 141, 147, 0, 0, 183, 181, + 90, 222, 97, 94, 27, 0, 0, 194, 0, 0, + 0, 149, 206, 196, 27, 218, 0, 0, 233, 95, + 159 }; /* YYDEFGOTO[NTERM-NUM]. */ static const yytype_int16 yydefgoto[] = { - -1, 49, 50, 51, 52, 315, 316, 317, 338, 339, - 137, 138, 157, 318, 139, 390, 140, 249, 246, 454, - 56, 234, 153, 154, 57, 58, 59, 60, 214, 61, - 90, 141, 142, 441, 442, 443, 444, 62, 216, 422, - 506, 423, 471, 424, 425, 63, 231, 143, 64, 65, - 220, 221, 66, 324, 217, 67, 144, 69, 70, 356, - 358, 400, 320, 457, 321, 435, 480, 481, 482, 462, - 463, 464, 164, 322, 265, 360, 361, 378, 74, 331, - 332, 333, 262, 323, 503, 102, 76, 470, 222, 223, - 387, 402, 388, 346, 328, 124, 125, 126, 225, 77, - 78, 79, 145, 127, 227, 228, 80, 114, 115, 81, - 82, 83, 165, 84, 85 + -1, 51, 52, 53, 54, 342, 343, 344, 365, 366, + 147, 148, 167, 345, 149, 428, 150, 263, 260, 513, + 58, 248, 163, 164, 59, 60, 61, 62, 228, 63, + 95, 151, 152, 500, 501, 502, 503, 64, 230, 470, + 579, 471, 535, 472, 473, 65, 245, 153, 66, 67, + 234, 235, 68, 351, 231, 69, 154, 71, 72, 383, + 385, 438, 347, 516, 348, 483, 544, 545, 546, 521, + 522, 523, 174, 349, 279, 387, 388, 416, 76, 77, + 78, 394, 449, 491, 554, 179, 389, 450, 492, 180, + 79, 283, 284, 285, 358, 359, 360, 276, 350, 574, + 107, 81, 534, 236, 237, 425, 440, 426, 373, 355, + 133, 134, 135, 239, 82, 83, 84, 155, 136, 241, + 242, 85, 123, 124, 125, 86, 401, 336, 313, 87, + 88, 175, 89, 90 }; /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ -#define YYPACT_NINF -406 +#define YYPACT_NINF -474 static const yytype_int16 yypact[] = { - 1661, -65, -406, -406, -406, -406, -406, -406, -10, -85, - -406, -59, 54, -406, -406, -406, 66, -406, 2104, -406, - 101, -406, -406, 2159, -406, -9, 89, -6, -406, -406, - -406, -406, -3, -51, -406, -406, 2104, 7, 2104, 2104, - 2104, -406, 2104, 2104, 2104, 2104, 2104, 629, 120, 130, - -406, 500, -406, -406, -406, -1, -406, 2034, -406, -406, - -406, -406, -406, -406, 1911, -406, -406, -406, 225, 344, - -406, -406, -406, -406, -406, -406, -406, -406, -406, -406, - 31, 2613, -406, -406, -406, -406, 129, 12, -406, -406, - 1911, -406, -406, -406, -406, -406, -406, -81, 89, -406, - -54, -406, 18, 119, 2104, 8, -406, 2104, -406, 2104, - 132, 119, -406, 36, 5, 43, 2613, 119, 119, 595, - 119, 119, -53, 2613, 21, 46, 2104, -406, 144, 145, - 2104, 2104, 145, 177, -406, -406, 758, -406, -406, 77, - -406, -406, -406, -406, 188, -406, -406, -406, -406, 1016, - 140, 209, -406, 115, 148, 31, 117, -406, 217, 14, - 223, -406, 224, -406, -406, -406, -406, 2104, 2104, 2104, - 2104, 2104, 2104, 2104, 2104, 2104, 2104, 2104, 2104, 2104, - 2104, 2104, 2104, 2104, 2104, 2104, 2104, 2104, 2104, 2104, - 2104, -406, -406, 227, 2104, 2104, 2104, 2104, 2104, 2104, - 2104, 2104, 2104, 2104, 2104, 2104, 2104, 2104, 2104, 2104, - 2104, 17, -406, -406, 2104, 219, 2104, 1145, -406, 89, - 108, 109, -406, -406, -406, 116, 15, 104, 139, 64, - 2217, 1786, 114, -406, 2104, 2104, -406, 2104, 2104, -406, - -406, -406, -406, -406, 153, 158, -406, -406, -406, 158, - -406, -406, -406, 1911, 128, 153, 2104, 2104, -406, 160, - -406, -406, 257, 211, 216, 269, 2613, 492, 328, 328, - 328, 2979, 2979, 2979, 2979, 492, 492, 2613, 2613, 2613, - 2613, 2613, 2613, 2613, 2613, 2613, 2613, 2613, 2674, 2735, - -406, 354, 354, 354, 2613, 2430, 2796, 2857, 2918, 492, - 492, 595, 595, 119, 119, 119, 141, 2491, 189, 2104, - 276, 150, 159, 2288, -406, 155, 1274, -406, -406, 162, - -406, -406, -406, -406, 1145, -406, 89, 2104, -406, -19, - 281, 157, 190, -406, -406, -406, 165, -406, 163, 1786, - -406, 161, -406, 191, 2613, 86, 195, 145, 887, -406, - -24, 199, 167, 124, 180, 89, 290, 89, 184, 153, - 210, -406, 2104, -406, -406, 310, 2359, -406, 1911, 2104, - 194, -406, -406, 1145, 192, 183, 32, 86, -406, -406, - 153, 16, 94, 1911, 2104, -406, -406, -406, -406, 2104, - -406, -406, -406, 2104, 1911, -406, -406, 15, -406, 89, - 197, -406, 220, -406, 195, 269, 2613, -406, -406, -406, - 201, 13, 203, -406, -406, -406, 234, 212, 281, -406, - 214, 222, -406, -406, 94, -406, 277, -406, 2613, -37, - -406, 208, 220, -406, 89, 229, -406, -406, -406, 2104, - 240, 215, 13, -406, -406, -406, -406, -406, -406, -406, - 342, -406, -406, 1911, -406, 1911, 153, 1403, -406, 347, - -406, 326, 221, 284, -406, 2552, 1786, -406, -406, -406, - 1786, 1786, 153, -406, -406, 228, -406, -406, 232, 236, - 230, 1532, -406, -406, -406, -406, 14, -406, -406, 1786, - -406, 238, 246, 226, -406, 1403, -406, -406, 351, -406, - -406, -406, -406, 1786, 247, 244, 254, 249, -406, 15, - 1786, -406, 250, 253, 153, -406, -406 + 1747, -27, -474, -474, -474, -474, -474, -474, -10, -46, + -474, -25, 26, -474, -474, -474, -474, 90, -474, 2197, + -474, 106, -474, -474, 412, -474, 11, 133, 23, -474, + -474, -474, -474, 13, -53, -474, -474, 2197, 32, 257, + 2197, 2197, -474, -474, 2197, 2197, 2197, 2197, 2197, 699, + 154, 224, -474, 568, -474, -474, -474, 99, -474, 2126, + -474, -474, -474, -474, -474, -474, 2001, -474, -474, -474, + 361, 70, -474, -474, -474, -474, -474, -474, 65, -474, + -474, -474, -474, -474, -474, 141, 2897, -474, -474, -474, + -474, 242, 125, -474, -474, 2001, -474, -474, -474, -474, + -474, -474, 143, 133, -474, -52, -474, 127, -44, 2197, + 124, -474, 2197, -474, 2197, 256, -44, -474, -474, -474, + -474, -474, -474, 135, 176, 182, -44, -44, 202, -44, + -44, -37, 2835, 159, 186, 2197, -474, 2835, 286, 288, + 2197, 2197, 288, 289, -474, -474, 830, -474, -474, 169, + -474, -474, -474, -474, 287, -474, -474, -474, -474, 1092, + 236, 302, -474, 206, 241, 141, 211, -474, 311, 43, + 312, -474, 320, -474, -474, -474, -474, -474, 2197, -474, + 66, 2197, 2197, 2197, 2197, 2197, 2197, 2197, 2197, 2197, + 2197, 2197, 2197, 2197, 2197, 2197, 2197, 2197, 2197, 2197, + 2197, 2197, 2197, 2197, 2197, -474, -474, 15, 2197, 2197, + 2197, 2197, 2197, 2197, 2197, 2197, 2197, 2197, 2197, 2197, + 2197, 2197, 2197, 2197, 2197, 22, -474, -474, 2197, 317, + 2197, 1223, -474, 133, 196, 203, -474, -474, -474, 209, + 35, 199, 235, 107, 2256, 1874, 204, -474, 2197, -474, + 2197, 257, 2197, -474, -474, -474, -474, -474, 232, 239, + -474, -474, -474, 239, -474, -474, -474, 2001, 215, 232, + 2197, 2197, -474, 246, -474, -474, 347, 300, 303, 353, + 2835, 255, 258, 37, 66, -474, 2835, 383, 560, 560, + 560, 3269, 3269, 3269, 3269, 383, 383, 2835, 2835, 2835, + 2835, 2835, 2835, 2835, 2835, 2835, 2835, 2835, 2959, 3021, + -474, -474, 42, -474, 185, 185, 185, 2835, 2463, 3083, + 3145, 3207, 383, 383, 202, 202, -44, -44, -44, 230, + 2525, 270, -474, -474, 2197, 100, 275, -474, 233, 243, + 2325, -474, 237, 1354, -474, -474, 248, -474, -474, -474, + -474, 1223, -474, 133, 2197, -474, 36, 375, 245, 280, + -474, -474, -474, 254, -474, 253, 1874, -474, 261, -474, + 291, 2835, 252, 299, 288, 961, -474, -18, 304, 269, + 151, 268, 133, 391, 133, 281, 232, 309, -474, 283, + 67, 87, -474, -474, -474, -474, 2197, -474, 2197, -474, + -474, 2197, 2587, 2197, -474, 17, 2001, 2197, 292, -474, + -474, 1223, 294, 290, 2197, 252, -474, -474, 232, 41, + 33, 2001, 2197, -474, -474, -474, -474, 2197, -474, -474, + -474, 2197, 2001, -474, -474, 35, -474, 133, 298, -474, + 328, -474, 299, 353, -474, -474, -474, -474, -474, 319, + 102, 2649, 2835, 2394, -474, 2711, -474, -474, 301, 24, + 306, -474, -474, 2835, 329, 307, 375, -474, 310, 321, + -474, -474, 33, -474, 368, -474, 2835, -30, -474, 308, + 328, -474, 133, 226, -474, -474, -474, -474, 330, -474, + 2197, -474, 333, -474, -474, -474, -474, -474, 2197, 341, + 314, 24, -474, -474, -474, -474, -474, -474, -474, 445, + -474, -474, 2001, -474, 2001, 232, 1485, -474, 446, -474, + 424, 323, 351, -474, 65, 2835, 337, -474, 111, 2773, + 1874, -474, -474, -474, 1874, 1874, 232, -474, -474, 327, + -474, -474, 334, 296, 331, 1616, -474, -474, -474, -474, + 43, -474, -474, -474, 336, 65, 111, 1874, -474, 338, + 339, 326, -474, 1485, -474, -474, 459, 352, -474, -474, + -474, -474, -474, -474, 1874, 340, 343, -474, 359, 354, + 355, -474, 35, -474, 1874, -474, 356, 358, 232, -474, + -474 }; /* YYPGOTO[NTERM-NUM]. */ static const yytype_int16 yypgoto[] = { - -406, -406, 237, -406, 308, -296, -406, 69, -405, -30, - 1, -56, -83, 49, 2, -17, 331, 260, 51, -406, - -406, -406, -406, -406, -406, -406, -406, -406, -406, -406, - -406, -406, -406, -406, -406, -49, -42, -406, -406, -23, - -406, -20, -406, -406, -406, -406, -406, -406, -406, -406, - 9, 76, -406, -406, -406, -406, 0, -406, 336, -406, - -406, -406, 50, -406, 56, -406, -89, -406, -74, -406, - -406, -55, -406, 3, -406, -406, 6, -7, 34, -384, - -406, -308, -73, 4, -406, -406, -406, -406, -406, 386, - -92, 22, 37, -243, -406, -95, -406, -406, -406, -406, - -406, -406, -406, -29, -115, 371, -46, -406, -406, -13, - -406, -406, -406, -406, -406 + -474, -474, 342, -474, 433, -309, -474, 144, -294, -33, + 1, -59, -86, 59, 2, 47, 436, 363, 118, -474, + -474, -474, -474, -474, -474, -474, -474, -474, -474, -474, + -474, -474, -474, -474, -474, 6, 8, -474, -474, 38, + -474, 49, -474, -474, -474, -474, -474, -474, -474, -474, + 10, 40, -474, -474, -474, -474, 0, -474, 434, -474, + -474, -474, 61, -474, 62, -474, -50, -474, -31, -474, + -474, -7, -474, 3, -474, -474, 69, 60, -474, -474, + -474, -474, -464, -474, -474, -163, -474, -447, -474, -473, + -427, -474, -474, 244, -416, -474, -336, -24, 4, -474, + -474, -474, -474, -474, 496, -98, 88, 112, -254, -474, + -100, -474, -474, -474, -474, -474, -474, -474, -125, -128, + 482, -51, -474, 279, -474, -13, -474, -474, -186, -474, + -474, -474, -474, -474 }; /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If positive, shift that token. If negative, reduce the rule which number is the opposite. If zero, do what YYDEFACT says. If YYTABLE_NINF, syntax error. */ -#define YYTABLE_NINF -155 +#define YYTABLE_NINF -331 static const yytype_int16 yytable[] = { - 68, 53, 55, 73, 75, 100, 224, 215, 156, 113, - 103, 155, 350, 431, 232, 247, 248, 136, 329, 329, - 308, 96, 379, 111, 86, 116, 117, 118, 374, 119, - 120, 121, 123, 116, 156, 96, 89, 3, 193, 87, - 5, 6, 7, -70, 218, 219, 439, 238, 260, 54, - 71, 68, 53, 55, 73, 75, 72, 92, 93, 21, - 22, 490, 91, 167, 261, 491, 492, 92, 93, 210, - 109, 94, 211, 419, 440, 110, 28, 412, 389, 239, - 252, 94, 98, 376, 499, 377, 34, 35, 97, 92, - 93, 123, 92, 93, 230, 455, 116, 242, 507, 311, - 54, 71, 105, 94, 101, 513, 94, 72, 330, 418, - 448, 88, 104, 116, 306, 107, 404, 123, 123, 341, - 420, 385, 108, 146, 149, 512, 421, 395, 112, 396, - 147, 167, 212, 213, 229, 233, 236, 417, 309, 226, - 235, 351, 352, 237, 310, 240, 241, 243, 244, 68, - 53, 55, 73, 75, 266, 267, 268, 269, 270, 271, - 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, - 282, 283, 284, 285, 286, 287, 288, 289, 335, 95, - 250, 291, 292, 293, 294, 295, 296, 297, 298, 299, - 300, 301, 302, 303, 304, 305, 116, 307, 54, 71, - 386, 123, 253, 313, 158, 72, 342, -71, 343, 191, - 192, 193, 255, 475, 256, 257, 258, 68, 53, 319, - 259, 123, 116, 348, 116, 344, 263, 264, 325, 493, - 290, 312, 375, 2, -113, 326, 334, 327, 336, 238, - 209, 158, 210, 123, 123, 211, 340, 13, 14, 15, - 159, 17, 158, 19, 410, 160, 161, 345, 347, 349, - 354, 159, 353, 398, 355, 401, 24, 161, 162, 357, - 163, 516, 359, 363, 459, 29, 30, 31, 365, 367, - 369, 163, 368, 252, 329, 409, 371, 373, 2, 380, - 381, -112, 252, 383, 382, 384, 366, 389, 393, 394, - 426, 397, 13, 14, 15, 399, 17, 401, 19, 403, - 405, 430, 156, 407, 116, 414, 68, 53, 319, 411, - 434, 24, 433, 413, 68, 53, 319, 156, 460, 459, - 29, 30, 31, 438, 445, 336, 376, 447, 156, 449, - 456, 453, 458, 450, 466, 472, 467, 429, 2, 406, - 485, 486, 487, 494, 505, 427, 123, 495, 502, 148, - -153, 496, 13, 14, 15, 509, 17, 168, 19, 500, - 473, 116, 474, 68, 53, 319, 428, 501, 508, 510, - 511, 24, 514, 460, 515, 372, 254, 436, 152, 245, - 29, 30, 31, 468, -155, -155, -155, 156, 391, 156, - 469, 451, 176, 177, 452, 166, 504, 497, 488, 446, - 415, 437, 106, 498, 416, -154, 122, 0, 191, 192, - 193, 432, 194, 195, 196, 0, 465, 0, 0, 0, - 0, 0, 0, 0, 0, 461, 202, 203, 0, 204, - 205, 206, 207, 208, 191, 192, 193, 0, 0, 209, - 0, 210, 0, 0, 211, 0, 0, 479, 477, 478, - 483, 484, 0, 461, 0, 204, 205, 206, 207, 208, - 0, 0, 0, 0, 0, 209, 0, 210, 0, 0, - 211, 479, 477, 478, 483, 484, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 479, 477, 478, 483, 484, - -4, 0, 0, 1, 2, 3, 4, 0, 5, 6, - 7, 8, 9, 10, 11, 0, 0, 12, 13, 14, - 15, 16, 17, 18, 19, 0, 0, 21, 22, 0, - 0, -155, 0, 0, 0, 23, 0, 24, 25, 0, - 26, 0, 27, 0, 28, 0, 29, 30, 31, 0, - 0, 32, 33, 0, 34, 35, 0, 0, 0, 0, - 0, 0, 36, 37, 0, 0, -155, -155, 0, 38, + 70, 55, 57, 75, 80, 238, 105, 166, 165, 229, + 256, 108, 261, 262, 246, 377, 146, 282, 310, 479, + 310, 417, 101, 493, 116, 331, 332, 126, 127, 97, + 98, 128, 129, 130, 132, 137, 166, 101, 356, 337, + 92, 207, 412, 99, 356, 310, 528, 205, 206, 207, + -70, 553, 102, 70, 55, 57, 75, 80, 498, 56, + 468, 73, 74, 91, 252, 527, 469, 110, 177, 281, + 114, 181, 445, 224, 2, 115, 225, 94, 274, 223, + 556, 224, 569, 467, 225, 427, 499, 266, 13, 567, + 15, 16, 447, 18, 275, 20, 132, 253, 96, 244, + 338, 137, 460, 310, 514, 578, 103, 487, 25, 106, + 97, 98, 56, 93, 73, 74, 487, 30, 31, 32, + 368, 282, 137, 329, 99, 369, 397, 132, 132, 357, + 507, 311, 442, 311, 109, 466, 97, 98, 311, 414, + 113, 415, 378, 379, 312, 333, 112, 334, 392, 404, + 99, 335, 393, 100, 433, 117, 434, 156, 311, 70, + 55, 57, 75, 80, 465, 280, 586, 396, 286, 287, + 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, + 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, + 308, 309, 178, 178, 178, 314, 315, 316, 317, 318, + 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, + 137, 330, 488, 489, 178, 132, 311, 340, 56, 456, + 73, 74, 489, 362, 157, 403, 159, 446, 448, 490, + 2, 70, 55, 346, 375, 132, 558, 137, 490, 371, + 559, 560, 181, 352, 13, 226, 15, 16, 227, 18, + 240, 20, 243, 363, 413, 97, 98, 132, 132, 247, + 118, 539, 119, 570, 25, 120, 121, 122, 249, 99, + 232, 233, 518, 30, 31, 32, 205, 206, 207, 458, + 580, 250, 561, 251, 436, 254, 439, 255, 423, 257, + 587, 258, 264, 205, 206, 207, 267, 475, 218, 219, + 220, 221, 222, 168, -71, 269, 270, 266, 223, 271, + 224, 272, 168, 225, 273, 277, 266, 220, 221, 222, + 457, 402, 169, 278, -113, 223, 519, 224, 171, 339, + 225, 353, 354, 361, 590, 474, 252, 372, 367, 439, + 374, 137, 173, 70, 55, 346, 478, 166, 376, 380, + 381, 70, 55, 346, 382, 2, 386, 384, 390, -153, + -330, 391, 166, 363, 399, 405, 407, 406, 424, 13, + 409, 15, 16, 166, 18, 411, 20, 168, 356, 418, + 477, 419, -112, 451, 517, 452, 420, 169, 453, 25, + 455, 435, 170, 171, 132, 421, 422, 518, 30, 31, + 32, 463, 427, 432, 431, 172, 437, 173, 441, 137, + 443, 70, 55, 346, 476, 104, 444, 3, 4, 459, + 5, 6, 7, -331, 462, 481, 537, 461, 538, 482, + 486, 14, 414, 512, 506, 497, 19, 508, 21, 504, + 22, 23, 515, 526, 509, 524, 530, 531, 536, 549, + 550, 519, 555, 166, 562, 166, 551, 29, -331, -331, + 573, 563, 576, 577, 564, 34, 582, 35, 36, 568, + 583, 571, 572, 581, 205, 206, 207, 525, 208, 209, + 210, 584, 39, 520, -154, 529, 158, 410, 585, 484, + 588, 589, 429, -331, -331, 162, 218, 219, 220, 221, + 222, 268, 259, 40, 41, 176, 223, 532, 224, 533, + 510, 225, 485, 575, 565, 552, 543, 541, 542, 547, + 548, 511, 520, 111, 505, 480, 566, 464, 395, 131, + 370, 0, 0, 0, 0, 47, 0, 48, 0, 0, + 0, 50, 0, 0, 0, 543, 541, 542, 547, 548, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 191, 192, 193, 0, 194, 195, 196, 0, - 39, 40, 0, 0, 0, 0, 0, 0, 0, 41, - -155, -155, 0, 204, 205, 206, 207, 208, 0, 0, - 0, 42, 0, 209, 0, 210, 43, 44, 211, 0, - 0, 45, 0, 46, 0, 47, 0, 48, 0, 0, + 0, 0, 0, 543, 541, 542, 547, 548, -4, 0, + 0, 1, 2, 3, 4, 0, 5, 6, 7, 8, + 9, 10, 11, 0, 0, 12, 13, 14, 15, 16, + 17, 18, 19, 20, 0, 0, 22, 23, 0, 0, + 182, 0, 0, 0, 24, 0, 25, 26, 0, 27, + 0, 28, 0, 29, 0, 30, 31, 32, 0, 0, + 33, 34, 0, 35, 36, 0, 0, -331, -331, -331, + 0, 37, 38, 0, 0, 190, 191, 0, 39, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 205, 206, 207, 0, 208, 209, 210, 0, 40, + 41, 0, 0, 0, 0, 0, 0, 0, 42, 0, + 216, 217, 0, 218, 219, 220, 221, 222, 43, 0, + 0, 44, 0, 223, 0, 224, 45, 46, 225, 0, + 0, 47, 0, 48, 0, 49, 0, 50, 0, 0, 0, -4, 1, 2, 3, 4, 0, 5, 6, 7, 8, 9, 10, 11, 0, 0, 0, 13, 14, 15, - 16, 17, 18, 19, 20, 0, 21, 22, 128, 0, - 129, 0, 0, 0, 23, 130, 24, 25, 0, 26, - 131, 27, 0, 28, 132, 29, 30, 31, 0, 0, - 32, 33, 0, 34, 35, 191, 192, 193, 0, 0, - 0, 36, 37, 0, 133, 0, 0, 0, 38, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 206, 207, - 208, 0, 0, 0, 0, 0, 209, 0, 210, 39, - 40, 211, 0, 0, 0, 0, 0, 0, 134, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 42, 0, 0, 0, 0, 43, 44, 0, 0, 0, - 45, 0, 46, 0, 47, 0, 48, 0, 0, 0, - 135, 1, 2, 3, 4, 0, 5, 6, 7, 8, - 9, 10, 11, 0, 0, 0, 13, 14, 15, 16, - 17, 18, 19, 20, 0, 21, 22, 128, 0, 129, - 0, 0, 0, 23, 130, 24, 25, 0, 26, 131, - 27, 0, 28, 132, 29, 30, 31, 0, 0, 32, - 33, 0, 34, 35, 0, 0, 0, 0, 0, 0, - 36, 37, 0, 133, 0, 0, 0, 38, 0, 0, + 16, 17, 18, 19, 20, 21, 0, 22, 23, 138, + 0, 139, 0, 0, 0, 24, 140, 25, 26, 0, + 27, 141, 28, 0, 29, 142, 30, 31, 32, 0, + 0, 33, 34, 0, 35, 36, 0, 0, 0, 0, + 0, 0, 37, 38, 0, 143, 0, 0, 0, 39, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 39, 40, - 0, 0, 0, 0, 0, 0, 0, 134, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, - 0, 0, 0, 0, 43, 44, 0, 0, 0, 45, - 0, 46, 0, 47, 0, 48, 0, 0, 0, 251, - 1, 2, 3, 4, 0, 5, 6, 7, 8, 9, - 10, 11, 0, 0, 0, 13, 14, 15, 16, 17, - 18, 19, 20, 0, 21, 22, 128, 0, 129, 0, - 0, 0, 23, 130, 24, 25, 0, 26, 131, 27, - 0, 28, 132, 29, 30, 31, 0, 0, 32, 33, - 0, 34, 35, 0, 0, 0, 0, 0, 0, 36, - 37, 0, 133, 0, 0, 0, 38, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 39, 40, 0, - 0, 0, 0, 0, 0, 0, 134, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, - 0, 0, 0, 43, 44, 0, 0, 0, 45, 0, - 46, 0, 47, 0, 48, 0, 0, 0, 392, 1, - 2, 3, 4, 0, 5, 6, 7, 8, 9, 10, - 11, 0, 0, 12, 13, 14, 15, 16, 17, 18, - 19, 0, 0, 21, 22, 0, 0, 0, 0, 0, - 0, 23, 0, 24, 25, 0, 26, 0, 27, 0, - 28, 0, 29, 30, 31, 0, 0, 32, 33, 0, - 34, 35, 0, 0, 0, 0, 0, 0, 36, 37, - 0, 0, 0, 0, 0, 38, 0, 0, 0, 0, + 40, 41, 0, 0, 0, 0, 0, 0, 0, 144, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 43, + 0, 0, 44, 0, 0, 0, 0, 45, 46, 0, + 0, 0, 47, 0, 48, 0, 49, 0, 50, 0, + 0, 0, 145, 1, 2, 3, 4, 0, 5, 6, + 7, 8, 9, 10, 11, 0, 0, 0, 13, 14, + 15, 16, 17, 18, 19, 20, 21, 0, 22, 23, + 138, 0, 139, 0, 0, 0, 24, 140, 25, 26, + 0, 27, 141, 28, 0, 29, 142, 30, 31, 32, + 0, 0, 33, 34, 0, 35, 36, 0, 0, 0, + 0, 0, 0, 37, 38, 0, 143, 0, 0, 0, + 39, 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, 39, 40, 0, 0, - 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, - 0, 0, 43, 44, 0, 0, 0, 45, 0, 46, - 0, 47, 0, 48, 0, 0, 0, -3, 1, 2, - 3, 4, 0, 5, 6, 7, 8, 9, 10, 11, - 0, 0, 0, 13, 14, 15, 16, 17, 18, 19, - 0, 0, 21, 22, 0, 0, 0, 0, 0, 0, - 23, 0, 24, 25, 0, 26, 0, 27, 0, 28, - 0, 29, 30, 31, 0, 0, 32, 33, 0, 34, - 35, 0, 0, 0, 0, 0, 0, 36, 37, 0, - 0, 0, 0, 0, 38, 0, 0, 0, 0, 0, + 0, 40, 41, 0, 0, 0, 0, 0, 0, 0, + 144, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 43, 0, 0, 44, 0, 0, 0, 0, 45, 46, + 0, 0, 0, 47, 0, 48, 0, 49, 0, 50, + 0, 0, 0, 265, 1, 2, 3, 4, 0, 5, + 6, 7, 8, 9, 10, 11, 0, 0, 0, 13, + 14, 15, 16, 17, 18, 19, 20, 21, 0, 22, + 23, 138, 0, 139, 0, 0, 0, 24, 140, 25, + 26, 0, 27, 141, 28, 0, 29, 142, 30, 31, + 32, 0, 0, 33, 34, 0, 35, 36, 0, 0, + 0, 0, 0, 0, 37, 38, 0, 143, 0, 0, + 0, 39, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 39, 40, 0, 0, 0, - 0, 0, 0, 0, 314, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 42, 0, 0, 0, - 0, 43, 44, 0, 0, 0, 45, 0, 46, 0, - 47, 0, 48, 0, 0, 0, -15, 1, 2, 3, - 4, 0, 5, 6, 7, 8, 9, 10, 11, 0, - 0, 0, 13, 14, 15, 16, 17, 18, 19, 0, - 0, 21, 22, 0, 0, 0, 0, 0, 0, 23, - 0, 24, 25, 0, 26, 0, 27, 0, 28, 0, - 29, 30, 31, 0, 0, 32, 33, 0, 34, 35, - 0, 0, 0, 0, 0, 0, 36, 37, 0, 0, - 0, 0, 0, 38, 0, 0, 0, 0, 0, 0, + 0, 0, 40, 41, 0, 0, 0, 0, 0, 0, + 0, 144, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 43, 0, 0, 44, 0, 0, 0, 0, 45, + 46, 0, 0, 0, 47, 0, 48, 0, 49, 0, + 50, 0, 0, 0, 430, 1, 2, 3, 4, 0, + 5, 6, 7, 8, 9, 10, 11, 0, 0, 12, + 13, 14, 15, 16, 17, 18, 19, 20, 0, 0, + 22, 23, 0, 0, 0, 0, 0, 0, 24, 0, + 25, 26, 0, 27, 0, 28, 0, 29, 0, 30, + 31, 32, 0, 0, 33, 34, 0, 35, 36, 0, + 0, 0, 0, 0, 0, 37, 38, 0, 0, 0, + 0, 0, 39, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 39, 40, 0, 0, 0, 0, - 0, 0, 0, 314, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 42, 0, 0, 0, 0, - 43, 44, 0, 0, 0, 45, 0, 46, 0, 47, - 0, 48, 0, 0, 0, -16, 1, 2, 3, 4, + 0, 0, 0, 40, 41, 0, 0, 0, 0, 0, + 0, 0, 42, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 43, 0, 0, 44, 0, 0, 0, 0, + 45, 46, 0, 0, 0, 47, 0, 48, 0, 49, + 0, 50, 0, 0, 0, -3, 1, 2, 3, 4, 0, 5, 6, 7, 8, 9, 10, 11, 0, 0, - 0, 13, 14, 15, 16, 17, 18, 19, 0, 0, - 21, 22, 0, 0, 0, 0, 0, 0, 23, 0, - 24, 25, 0, 26, 0, 27, 0, 28, 0, 29, - 30, 31, 0, 0, 32, 33, 0, 34, 35, 0, - 0, 0, 0, 0, 0, 36, 37, 0, 0, 0, - 0, 0, 38, 0, 0, 0, 0, 0, 0, 0, + 0, 13, 14, 15, 16, 17, 18, 19, 20, 0, + 0, 22, 23, 0, 0, 0, 0, 0, 0, 24, + 0, 25, 26, 0, 27, 0, 28, 0, 29, 0, + 30, 31, 32, 0, 0, 33, 34, 0, 35, 36, + 0, 0, 0, 0, 0, 0, 37, 38, 0, 0, + 0, 0, 0, 39, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 39, 40, 0, 0, 0, 0, 0, - 0, 0, 476, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 42, 0, 0, 0, 0, 43, - 44, 0, 0, 0, 45, 0, 46, 0, 47, 0, - 48, 0, 0, 0, -144, 1, 2, 3, 4, 0, - 5, 6, 7, 8, 9, 10, 11, 0, 0, 0, - 13, 14, 15, 16, 17, 18, 19, 0, 0, 21, - 22, 0, 0, 0, 0, 0, 0, 23, 0, 24, - 25, 0, 26, 0, 27, 0, 28, 0, 29, 30, - 31, 0, 0, 32, 33, 0, 34, 35, 0, 0, - 0, 0, 0, 0, 36, 37, 0, 0, 0, 0, - 0, 38, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 40, 41, 0, 0, 0, 0, + 0, 0, 0, 341, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 43, 0, 0, 44, 0, 0, 0, + 0, 45, 46, 0, 0, 0, 47, 0, 48, 0, + 49, 0, 50, 0, 0, 0, -15, 1, 2, 3, + 4, 0, 5, 6, 7, 8, 9, 10, 11, 0, + 0, 0, 13, 14, 15, 16, 17, 18, 19, 20, + 0, 0, 22, 23, 0, 0, 0, 0, 0, 0, + 24, 0, 25, 26, 0, 27, 0, 28, 0, 29, + 0, 30, 31, 32, 0, 0, 33, 34, 0, 35, + 36, 0, 0, 0, 0, 0, 0, 37, 38, 0, + 0, 0, 0, 0, 39, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 39, 40, 0, 0, 0, 0, 0, 0, - 0, 476, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 42, 0, 0, 0, 0, 43, 44, - 0, 0, 0, 45, 0, 46, 0, 47, 0, 48, - 0, -3, 0, -145, 1, 2, 3, 4, 0, 5, - 6, 7, 8, 9, 10, 11, 0, 0, 12, 13, - 14, 15, 16, 17, 18, 19, 0, 0, 21, 22, - 0, 0, 0, 0, 0, 0, 23, 0, 24, 25, - 0, 26, 0, 27, 0, 28, 0, 29, 30, 31, - 0, 0, 32, 33, 0, 34, 35, 0, 0, 0, - 0, 0, 0, 36, 37, 0, 0, 0, 0, 0, - 38, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 40, 41, 0, 0, 0, + 0, 0, 0, 0, 341, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 43, 0, 0, 44, 0, 0, + 0, 0, 45, 46, 0, 0, 0, 47, 0, 48, + 0, 49, 0, 50, 0, 0, 0, -16, 1, 2, + 3, 4, 0, 5, 6, 7, 8, 9, 10, 11, + 0, 0, 0, 13, 14, 15, 16, 17, 18, 19, + 20, 0, 0, 22, 23, 0, 0, 0, 0, 0, + 0, 24, 0, 25, 26, 0, 27, 0, 28, 0, + 29, 0, 30, 31, 32, 0, 0, 33, 34, 0, + 35, 36, 0, 0, 0, 0, 0, 0, 37, 38, + 0, 0, 0, 0, 0, 39, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 39, 40, 0, 0, 0, 0, 0, 0, 0, - 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 42, 0, 0, 0, 0, 43, 44, 0, - 0, 0, 45, 0, 46, 0, 47, 0, 48, 1, + 0, 0, 0, 0, 0, 0, 40, 41, 0, 0, + 0, 0, 0, 0, 0, 540, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 43, 0, 0, 44, 0, + 0, 0, 0, 45, 46, 0, 0, 0, 47, 0, + 48, 0, 49, 0, 50, 0, 0, 0, -144, 1, 2, 3, 4, 0, 5, 6, 7, 8, 9, 10, - 11, 0, -120, 0, 13, 14, 15, 16, 17, 18, - 19, 20, 0, 21, 22, 128, 0, 129, 0, 0, - 0, 23, 130, 24, 25, 0, 26, 131, 27, 0, - 28, 132, 29, 30, 31, 0, 0, 32, 33, 0, - 34, 35, 0, 0, 0, 0, 0, 0, 36, 37, - 0, 133, 0, 0, 0, 38, 0, 0, 0, 0, + 11, 0, 0, 0, 13, 14, 15, 16, 17, 18, + 19, 20, 0, 0, 22, 23, 0, 0, 0, 0, + 0, 0, 24, 0, 25, 26, 0, 27, 0, 28, + 0, 29, 0, 30, 31, 32, 0, 0, 33, 34, + 0, 35, 36, 0, 0, 0, 0, 0, 0, 37, + 38, 0, 0, 0, 0, 0, 39, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 40, 41, 0, + 0, 0, 0, 0, 0, 0, 540, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 43, 0, 0, 44, + 0, 0, 0, 0, 45, 46, 0, 0, 0, 47, + 0, 48, 0, 49, 0, 50, 0, -3, 0, -145, + 1, 2, 3, 4, 0, 5, 6, 7, 8, 9, + 10, 11, 0, 0, 12, 13, 14, 15, 16, 17, + 18, 19, 20, 0, 0, 22, 23, 0, 0, 0, + 0, 0, 0, 24, 0, 25, 26, 0, 27, 0, + 28, 0, 29, 0, 30, 31, 32, 0, 0, 33, + 34, 0, 35, 36, 0, 0, 0, 0, 0, 0, + 37, 38, 0, 0, 0, 0, 0, 39, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 39, 40, 0, 0, - 0, 0, 0, 0, 0, 134, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 40, 41, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, - 0, 0, 43, 44, 0, 0, 0, 45, 0, 46, - 0, 47, 0, 48, 1, 2, 3, 4, 0, 5, + 0, 0, 0, 0, 0, 0, 0, 43, 0, 0, + 44, 0, 0, 0, 0, 45, 46, 0, 0, 0, + 47, 0, 48, 0, 49, 0, 50, 1, 2, 3, + 4, 0, 5, 6, 7, 8, 9, 10, 11, 0, + -120, 0, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 0, 22, 23, 138, 0, 139, 0, 0, 0, + 24, 140, 25, 26, 0, 27, 141, 28, 0, 29, + 142, 30, 31, 32, 0, 0, 33, 34, 0, 35, + 36, 0, 0, 0, 0, 0, 0, 37, 38, 0, + 143, 0, 0, 0, 39, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 40, 41, 0, 0, 0, + 0, 0, 0, 0, 144, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 43, 0, 0, 44, 0, 0, + 0, 0, 45, 46, 0, 0, 0, 47, 0, 48, + 0, 49, 0, 50, 1, 2, 3, 4, 0, 5, 6, 7, 8, 9, 10, 11, 0, 0, 0, 13, - 14, 15, 16, 17, 18, 19, 20, 0, 21, 22, - 128, 0, 129, 0, 0, 0, 23, 130, 24, 25, - 0, 26, 131, 27, 0, 28, 132, 29, 30, 31, - 0, 0, 32, 33, 0, 34, 35, 0, 0, 0, - 0, 0, 0, 36, 37, 0, 133, 0, 0, 0, - 38, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 14, 15, 16, 17, 18, 19, 20, 21, 0, 22, + 23, 138, 0, 139, 0, 0, 0, 24, 140, 25, + 26, 0, 27, 141, 28, 0, 29, 142, 30, 31, + 32, 0, 0, 33, 34, 0, 35, 36, 0, 0, + 0, 0, 0, 0, 37, 38, 0, 143, 0, 0, + 0, 39, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 39, 40, 0, 0, 0, 0, 0, 0, 0, - 134, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 42, 0, 0, 0, 0, 43, 44, 0, - 0, 0, 45, 0, 46, 0, 47, 150, 48, 3, - 4, 0, 5, 6, 7, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 18, 0, 20, - 0, 21, 22, 0, 0, 129, 0, 0, 0, 23, - 0, 0, 0, 0, 0, 0, 27, 0, 28, 151, - 0, 0, 0, 0, 0, 0, 33, 0, 34, 35, - 0, 0, 0, 0, 0, 0, 36, 0, 0, 0, - 0, 0, 0, 38, 0, 0, 0, 99, 0, 3, - 4, 0, 5, 6, 7, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 39, 40, 0, 18, 0, 20, - 0, 21, 22, 0, 0, 0, 0, 0, 0, 23, - 0, 0, 0, 0, 0, 42, 27, 0, 28, 0, - 43, 44, 0, 0, 0, 45, 33, 46, 34, 35, - 0, 48, 99, 0, 3, 4, 36, 5, 6, 7, - 0, 0, 0, 38, 0, 0, 0, 0, 0, 0, - 0, 0, 18, 0, 20, 0, 21, 22, 0, 0, - 0, 0, 0, 0, 39, 40, 0, 0, 0, 0, - 0, 0, 0, 28, 0, 0, 0, 0, 0, 0, - 0, 33, 0, 34, 35, 42, 0, 0, 0, 0, - 43, 44, 0, 0, 0, 45, 0, 46, 38, 0, - 0, 48, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 39, - 40, 0, 0, 0, 0, 0, 168, 0, 0, 0, + 0, 0, 40, 41, 0, 0, 0, 0, 0, 0, + 0, 144, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 43, 0, 0, 44, 0, 0, 0, 0, 45, + 46, 0, 0, 0, 47, 0, 48, 0, 49, 160, + 50, 3, 4, 0, 5, 6, 7, 0, 0, 0, + 0, 0, 0, 0, 0, 14, 0, 0, 0, 0, + 19, 0, 21, 0, 22, 23, 0, 0, 139, 0, + 0, 0, 24, 0, 0, 0, 0, 0, 0, 28, + 0, 29, 161, 0, 0, 0, 0, 0, 0, 34, + 0, 35, 36, 0, 0, 0, 0, 0, 0, 37, + 0, 0, 0, 0, 0, 0, 39, 0, 0, 0, + 104, 0, 3, 4, 0, 5, 6, 7, 0, 0, + 0, 0, 0, 0, 0, 0, 14, 40, 41, 0, + 0, 19, 0, 21, 0, 22, 23, 0, 0, 0, + 0, 0, 0, 24, 0, 0, 43, 0, 0, 44, + 28, 0, 29, 0, 45, 46, 0, 0, 0, 47, + 34, 48, 35, 36, 0, 50, 0, 0, 0, 0, + 37, 0, 0, 0, 0, 0, 0, 39, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 40, 41, + 0, 0, 0, 0, 0, 0, 182, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 43, 0, 0, + 44, 0, 0, 0, 0, 45, 46, 0, 0, 0, + 47, 0, 48, 183, 184, 185, 50, 186, 187, 188, + 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, + 199, 200, 201, 202, 203, 204, 0, 205, 206, 207, + 0, 208, 209, 210, 0, 0, 0, 0, 0, 211, + 212, 0, 213, 214, 215, 182, 216, 217, 0, 218, + 219, 220, 221, 222, 0, 0, 0, 0, 0, 223, + 0, 224, 0, 0, 225, 0, 0, 0, 0, 0, + 364, 0, 183, 184, 185, 0, 186, 187, 188, 189, + 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, + 200, 201, 202, 203, 204, 0, 205, 206, 207, 0, + 208, 209, 210, 0, 0, 0, 0, 0, 211, 212, + 0, 213, 214, 215, 182, 216, 217, 0, 218, 219, + 220, 221, 222, 0, 0, 0, 0, 0, 223, 0, + 224, 0, 0, 225, 0, 0, 0, 0, 0, 408, + 0, 183, 184, 185, 0, 186, 187, 188, 189, 190, + 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, + 201, 202, 203, 204, 0, 205, 206, 207, 0, 208, + 209, 210, 0, 0, 0, 0, 0, 211, 212, 0, + 213, 214, 215, 182, 216, 217, 0, 218, 219, 220, + 221, 222, 0, 0, 0, 0, 0, 223, 0, 224, + 0, 0, 225, 0, 0, 0, 0, 0, 495, 0, + 183, 184, 185, 0, 186, 187, 188, 189, 190, 191, + 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, + 202, 203, 204, 0, 205, 206, 207, 0, 208, 209, + 210, 0, 0, 0, 0, 182, 211, 212, 398, 213, + 214, 215, 0, 216, 217, 0, 218, 219, 220, 221, + 222, 0, 0, 0, 0, 0, 223, 0, 224, 0, + 0, 225, 183, 184, 185, 0, 186, 187, 188, 189, + 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, + 200, 201, 202, 203, 204, 0, 205, 206, 207, 0, + 208, 209, 210, 0, 0, 0, 0, 182, 211, 212, + 0, 213, 214, 215, 0, 216, 217, 0, 218, 219, + 220, 221, 222, 0, 0, 0, 0, 0, 223, 0, + 224, 400, 0, 225, 183, 184, 185, 0, 186, 187, + 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, + 198, 199, 200, 201, 202, 203, 204, 0, 205, 206, + 207, 0, 208, 209, 210, 0, 0, 0, 0, 182, + 211, 212, 0, 213, 214, 215, 0, 216, 217, 0, + 218, 219, 220, 221, 222, 0, 0, 0, 0, 0, + 223, 0, 224, 454, 0, 225, 183, 184, 185, 0, + 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, + 196, 197, 198, 199, 200, 201, 202, 203, 204, 0, + 205, 206, 207, 0, 208, 209, 210, 0, 0, 0, + 0, 182, 211, 212, 0, 213, 214, 215, 0, 216, + 217, 0, 218, 219, 220, 221, 222, 0, 0, 0, + 0, 0, 223, 0, 224, 494, 0, 225, 183, 184, + 185, 0, 186, 187, 188, 189, 190, 191, 192, 193, + 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, + 204, 0, 205, 206, 207, 0, 208, 209, 210, 0, + 0, 0, 0, 182, 211, 212, 0, 213, 214, 215, + 0, 216, 217, 0, 218, 219, 220, 221, 222, 0, + 0, 0, 0, 0, 223, 0, 224, 496, 0, 225, + 183, 184, 185, 0, 186, 187, 188, 189, 190, 191, + 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, + 202, 203, 204, 0, 205, 206, 207, 0, 208, 209, + 210, 0, 0, 0, 0, 182, 211, 212, 557, 213, + 214, 215, 0, 216, 217, 0, 218, 219, 220, 221, + 222, 0, 0, 0, 0, 0, 223, 0, 224, 0, + 0, 225, 183, 184, 185, 0, 186, 187, 188, 189, + 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, + 200, 201, 202, 203, 204, 0, 205, 206, 207, 0, + 208, 209, 210, 0, 0, 0, 0, 182, 211, 212, + 0, 213, 214, 215, 0, 216, 217, 0, 218, 219, + 220, 221, 222, 0, 0, 0, 0, 0, 223, 0, + 224, 0, 0, 225, 183, 184, 185, 0, 186, 187, + 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, + 198, 199, 200, 201, 202, 203, 204, 0, 205, 206, + 207, 0, 208, 209, 210, 0, 0, 0, 0, 182, + 211, 212, 0, 213, 214, 215, 0, 0, 217, 0, + 218, 219, 220, 221, 222, 0, 0, 0, 0, 0, + 223, 0, 224, 0, 0, 225, 183, 184, 185, 0, + 186, 187, 188, 189, 190, 191, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 204, 0, + 205, 206, 207, 0, 208, 209, 210, 0, 0, 0, + 0, 182, 0, 0, 0, 213, 214, 215, 0, 216, + 217, 0, 218, 219, 220, 221, 222, 0, 0, 0, + 0, 0, 223, 0, 224, 0, 0, 225, 183, 184, + 185, 0, 186, 187, 188, 189, 190, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 45, 0, 46, 169, 170, 171, 48, 172, 173, 174, - 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, - 185, 186, 187, 188, 189, 190, 0, 191, 192, 193, - 0, 194, 195, 196, 0, 0, 0, 0, 0, 197, - 198, 0, 199, 200, 201, 202, 203, 168, 204, 205, - 206, 207, 208, 0, 0, 0, 0, 0, 209, 0, - 210, 0, 0, 211, 0, 0, 0, 0, 0, 337, - 0, 0, 0, 0, 169, 170, 171, 0, 172, 173, - 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, - 184, 185, 186, 187, 188, 189, 190, 0, 191, 192, - 193, 0, 194, 195, 196, 0, 0, 0, 0, 0, - 197, 198, 0, 199, 200, 201, 202, 203, 168, 204, - 205, 206, 207, 208, 0, 0, 0, 0, 0, 209, - 0, 210, 0, 0, 211, 0, 0, 0, 0, 0, - 370, 0, 0, 0, 0, 169, 170, 171, 0, 172, - 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, - 183, 184, 185, 186, 187, 188, 189, 190, 0, 191, - 192, 193, 0, 194, 195, 196, 0, 0, 0, 0, - 0, 197, 198, 0, 199, 200, 201, 202, 203, 168, - 204, 205, 206, 207, 208, 0, 0, 0, 0, 0, - 209, 0, 210, 0, 0, 211, 0, 0, 0, 0, - 0, 408, 0, 0, 0, 0, 169, 170, 171, 0, - 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, - 182, 183, 184, 185, 186, 187, 188, 189, 190, 0, - 191, 192, 193, 0, 194, 195, 196, 0, 0, 0, - 168, 0, 197, 198, 362, 199, 200, 201, 202, 203, - 0, 204, 205, 206, 207, 208, 0, 0, 0, 0, - 0, 209, 0, 210, 0, 0, 211, 169, 170, 171, - 0, 172, 173, 174, 175, 176, 177, 178, 179, 180, - 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, - 0, 191, 192, 193, 0, 194, 195, 196, 0, 0, - 0, 168, 0, 197, 198, 0, 199, 200, 201, 202, - 203, 0, 204, 205, 206, 207, 208, 0, 0, 0, - 0, 0, 209, 0, 210, 364, 0, 211, 169, 170, - 171, 0, 172, 173, 174, 175, 176, 177, 178, 179, - 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, - 190, 0, 191, 192, 193, 0, 194, 195, 196, 0, - 0, 0, 168, 0, 197, 198, 489, 199, 200, 201, - 202, 203, 0, 204, 205, 206, 207, 208, 0, 0, - 0, 0, 0, 209, 0, 210, 0, 0, 211, 169, - 170, 171, 0, 172, 173, 174, 175, 176, 177, 178, - 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, - 189, 190, 0, 191, 192, 193, 0, 194, 195, 196, - 0, 0, 0, 168, 0, 197, 198, 0, 199, 200, - 201, 202, 203, 0, 204, 205, 206, 207, 208, 0, - 0, 0, 0, 0, 209, 0, 210, 0, 0, 211, - 169, 170, 171, 0, 172, 173, 174, 175, 176, 177, + 0, 0, 205, 206, 207, 0, 208, 209, 210, 0, + 0, 0, 0, 182, 0, 0, 0, 213, 214, 215, + 0, 216, 217, 0, 218, 219, 220, 221, 222, 0, + 0, 0, 0, 0, 223, 0, 224, 0, 0, 225, + 183, 184, 185, 0, 186, 187, 188, 189, 190, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 190, 0, 191, 192, 193, 0, 194, 195, - 196, 0, 0, 0, 168, 0, 0, 0, 0, 199, - 200, 201, 202, 203, 0, 204, 205, 206, 207, 208, - 0, 0, 0, 0, 0, 209, 0, 210, 0, 0, - 211, 169, 170, 171, 0, 172, 173, 174, 175, 176, - 177, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 191, 192, 193, 0, 194, - 195, 196, 0, 0, 0, 168, 0, 0, 0, 0, - 199, 200, 201, 202, 203, 0, 204, 205, 206, 207, - 208, 0, 0, 0, 0, 0, 209, 0, 210, 0, - 0, 211, 169, 170, 171, 0, 172, 173, 174, 175, - 176, 177, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 191, 192, 193, 0, - 194, 195, 196, 0, 0, 0, 168, 0, 0, 0, - 0, 0, 200, 201, 202, 203, 0, 204, 205, 206, - 207, 208, 0, 0, 0, 0, 0, 209, 0, 210, - 0, 0, 211, 169, 170, 171, 0, 172, 173, 174, - 175, 176, 177, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 191, 192, 193, - 0, 194, 195, 196, 0, 0, 0, 168, 0, 0, - 0, 0, 0, 0, 201, 202, 203, 0, 204, 205, - 206, 207, 208, 0, 0, 0, 0, 0, 209, 0, - 210, 0, 0, 211, 169, 170, 171, 0, 172, 173, - 174, 175, 176, 177, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 191, 192, - 193, 0, 194, 195, 196, 0, 0, 0, 168, 0, - 0, 0, 0, 0, 0, -155, 202, 203, 0, 204, - 205, 206, 207, 208, 0, 0, 0, 0, 0, 209, - 0, 210, 0, 0, 211, 169, 170, 171, 0, -155, - -155, -155, -155, 176, 177, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, - 192, 193, 0, 194, 195, 196, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 202, 203, 0, - 204, 205, 206, 207, 208, 0, 0, 0, 0, 0, - 209, 0, 210, 0, 0, 211 + 0, 0, 0, 0, 205, 206, 207, 0, 208, 209, + 210, 0, 0, 0, 0, 182, 0, 0, 0, 0, + 214, 215, 0, 216, 217, 0, 218, 219, 220, 221, + 222, 0, 0, 0, 0, 0, 223, 0, 224, 0, + 0, 225, 183, 184, 185, 0, 186, 187, 188, 189, + 190, 191, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 205, 206, 207, 0, + 208, 209, 210, 0, 0, 0, 0, 182, 0, 0, + 0, 0, 0, 215, 0, 216, 217, 0, 218, 219, + 220, 221, 222, 0, 0, 0, 0, 0, 223, 0, + 224, 0, 0, 225, 183, 184, 185, 0, 186, 187, + 188, 189, 190, 191, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 205, 206, + 207, 0, 208, 209, 210, 0, 0, 0, 0, 182, + 0, 0, 0, 0, 0, -331, 0, 216, 217, 0, + 218, 219, 220, 221, 222, 0, 0, 0, 0, 0, + 223, 0, 224, 0, 0, 225, 183, 184, 185, 0, + -331, -331, -331, -331, 190, 191, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 205, 206, 207, 0, 208, 209, 210, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 216, + 217, 0, 218, 219, 220, 221, 222, 0, 0, 0, + 0, 0, 223, 0, 224, 0, 0, 225 }; static const yytype_int16 yycheck[] = { - 0, 0, 0, 0, 0, 18, 98, 90, 64, 38, - 23, 57, 255, 397, 109, 130, 131, 47, 3, 3, - 3, 12, 330, 36, 89, 38, 39, 40, 324, 42, - 43, 44, 45, 46, 90, 26, 121, 5, 92, 49, - 8, 9, 10, 67, 125, 126, 33, 100, 34, 0, - 0, 51, 51, 51, 51, 51, 0, 3, 4, 27, - 28, 466, 121, 100, 50, 470, 471, 3, 4, 123, - 121, 17, 126, 381, 61, 126, 44, 373, 102, 132, - 136, 17, 16, 102, 489, 104, 54, 55, 12, 3, - 4, 104, 3, 4, 107, 132, 109, 126, 503, 214, - 51, 51, 26, 17, 3, 510, 17, 51, 93, 93, - 418, 121, 121, 126, 209, 121, 359, 130, 131, 234, - 26, 35, 125, 3, 125, 509, 32, 3, 121, 5, - 0, 100, 3, 121, 126, 3, 131, 380, 121, 121, - 104, 256, 257, 100, 127, 124, 100, 3, 3, 149, - 149, 149, 149, 149, 167, 168, 169, 170, 171, 172, - 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, - 183, 184, 185, 186, 187, 188, 189, 190, 114, 125, - 3, 194, 195, 196, 197, 198, 199, 200, 201, 202, - 203, 204, 205, 206, 207, 208, 209, 210, 149, 149, - 114, 214, 125, 216, 16, 149, 235, 67, 237, 90, - 91, 92, 3, 456, 99, 67, 99, 217, 217, 217, - 3, 234, 235, 253, 237, 238, 3, 3, 219, 472, - 3, 12, 327, 4, 126, 126, 132, 121, 229, 100, - 121, 16, 123, 256, 257, 126, 132, 18, 19, 20, - 25, 22, 16, 24, 369, 30, 31, 104, 100, 131, - 3, 25, 102, 355, 53, 357, 37, 31, 43, 53, - 45, 514, 3, 132, 45, 46, 47, 48, 89, 3, - 121, 45, 132, 339, 3, 368, 131, 125, 4, 132, - 100, 126, 348, 132, 131, 104, 309, 102, 99, 132, - 383, 121, 18, 19, 20, 15, 22, 399, 24, 125, - 100, 394, 368, 3, 327, 132, 316, 316, 316, 125, - 100, 37, 125, 131, 324, 324, 324, 383, 99, 45, - 46, 47, 48, 132, 131, 326, 102, 125, 394, 125, - 132, 64, 434, 121, 104, 3, 131, 393, 4, 362, - 3, 25, 131, 125, 3, 384, 369, 125, 132, 51, - 131, 131, 18, 19, 20, 121, 22, 39, 24, 131, - 453, 384, 455, 373, 373, 373, 389, 131, 131, 125, - 131, 37, 132, 99, 131, 316, 149, 404, 57, 129, - 46, 47, 48, 442, 66, 67, 68, 453, 347, 455, - 442, 424, 74, 75, 424, 69, 495, 481, 463, 416, - 376, 405, 26, 486, 377, 131, 45, -1, 90, 91, - 92, 399, 94, 95, 96, -1, 439, -1, -1, -1, - -1, -1, -1, -1, -1, 435, 108, 109, -1, 111, - 112, 113, 114, 115, 90, 91, 92, -1, -1, 121, - -1, 123, -1, -1, 126, -1, -1, 457, 457, 457, - 457, 457, -1, 463, -1, 111, 112, 113, 114, 115, - -1, -1, -1, -1, -1, 121, -1, 123, -1, -1, - 126, 481, 481, 481, 481, 481, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 495, 495, 495, 495, 495, - 0, -1, -1, 3, 4, 5, 6, -1, 8, 9, - 10, 11, 12, 13, 14, -1, -1, 17, 18, 19, - 20, 21, 22, 23, 24, -1, -1, 27, 28, -1, - -1, 39, -1, -1, -1, 35, -1, 37, 38, -1, - 40, -1, 42, -1, 44, -1, 46, 47, 48, -1, - -1, 51, 52, -1, 54, 55, -1, -1, -1, -1, - -1, -1, 62, 63, -1, -1, 74, 75, -1, 69, + 0, 0, 0, 0, 0, 103, 19, 66, 59, 95, + 135, 24, 140, 141, 114, 269, 49, 180, 3, 435, + 3, 357, 12, 450, 37, 3, 4, 40, 41, 3, + 4, 44, 45, 46, 47, 48, 95, 27, 3, 225, + 50, 93, 351, 17, 3, 3, 493, 91, 92, 93, + 68, 524, 12, 53, 53, 53, 53, 53, 34, 0, + 27, 0, 0, 90, 101, 492, 33, 27, 3, 3, + 123, 101, 5, 125, 4, 128, 128, 123, 35, 123, + 527, 125, 555, 419, 128, 103, 62, 146, 18, 553, + 20, 21, 5, 23, 51, 25, 109, 134, 123, 112, + 228, 114, 411, 3, 134, 569, 16, 5, 38, 3, + 3, 4, 53, 123, 53, 53, 5, 47, 48, 49, + 248, 284, 135, 223, 17, 250, 312, 140, 141, 94, + 466, 116, 386, 116, 123, 94, 3, 4, 116, 103, + 127, 105, 270, 271, 129, 123, 123, 125, 111, 335, + 17, 129, 115, 127, 3, 123, 5, 3, 116, 159, + 159, 159, 159, 159, 418, 178, 582, 125, 181, 182, + 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, + 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, + 203, 204, 127, 127, 127, 208, 209, 210, 211, 212, + 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, + 223, 224, 110, 111, 127, 228, 116, 230, 159, 405, + 159, 159, 111, 116, 0, 125, 127, 390, 391, 127, + 4, 231, 231, 231, 267, 248, 530, 250, 127, 252, + 534, 535, 101, 233, 18, 3, 20, 21, 123, 23, + 123, 25, 128, 243, 354, 3, 4, 270, 271, 3, + 3, 515, 5, 557, 38, 8, 9, 10, 133, 17, + 127, 128, 46, 47, 48, 49, 91, 92, 93, 407, + 574, 105, 536, 101, 382, 126, 384, 101, 36, 3, + 584, 3, 3, 91, 92, 93, 127, 422, 113, 114, + 115, 116, 117, 16, 68, 3, 100, 366, 123, 68, + 125, 100, 16, 128, 3, 3, 375, 115, 116, 117, + 406, 334, 26, 3, 128, 123, 100, 125, 32, 12, + 128, 128, 123, 134, 588, 421, 101, 105, 134, 437, + 101, 354, 46, 343, 343, 343, 432, 406, 133, 103, + 3, 351, 351, 351, 54, 4, 3, 54, 103, 133, + 90, 103, 421, 353, 134, 90, 123, 134, 116, 18, + 133, 20, 21, 432, 23, 127, 25, 16, 3, 134, + 431, 101, 128, 396, 482, 398, 133, 26, 401, 38, + 403, 123, 31, 32, 407, 134, 105, 46, 47, 48, + 49, 414, 103, 134, 100, 44, 15, 46, 127, 422, + 101, 411, 411, 411, 427, 3, 133, 5, 6, 127, + 8, 9, 10, 40, 134, 127, 512, 133, 514, 101, + 111, 19, 103, 65, 127, 134, 24, 127, 26, 133, + 28, 29, 134, 110, 123, 115, 105, 133, 3, 3, + 26, 100, 115, 512, 127, 514, 133, 45, 75, 76, + 134, 127, 3, 111, 133, 53, 123, 55, 56, 133, + 111, 133, 133, 133, 91, 92, 93, 490, 95, 96, + 97, 127, 70, 483, 133, 498, 53, 343, 133, 442, + 134, 133, 374, 110, 111, 59, 113, 114, 115, 116, + 117, 159, 139, 91, 92, 71, 123, 501, 125, 501, + 472, 128, 443, 563, 545, 522, 516, 516, 516, 516, + 516, 472, 522, 27, 464, 437, 550, 415, 284, 47, + 251, -1, -1, -1, -1, 123, -1, 125, -1, -1, + -1, 129, -1, -1, -1, 545, 545, 545, 545, 545, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 90, 91, 92, -1, 94, 95, 96, -1, - 90, 91, -1, -1, -1, -1, -1, -1, -1, 99, - 108, 109, -1, 111, 112, 113, 114, 115, -1, -1, - -1, 111, -1, 121, -1, 123, 116, 117, 126, -1, - -1, 121, -1, 123, -1, 125, -1, 127, -1, -1, - -1, 131, 3, 4, 5, 6, -1, 8, 9, 10, - 11, 12, 13, 14, -1, -1, -1, 18, 19, 20, - 21, 22, 23, 24, 25, -1, 27, 28, 29, -1, - 31, -1, -1, -1, 35, 36, 37, 38, -1, 40, - 41, 42, -1, 44, 45, 46, 47, 48, -1, -1, - 51, 52, -1, 54, 55, 90, 91, 92, -1, -1, - -1, 62, 63, -1, 65, -1, -1, -1, 69, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 113, 114, - 115, -1, -1, -1, -1, -1, 121, -1, 123, 90, - 91, 126, -1, -1, -1, -1, -1, -1, 99, -1, + -1, -1, -1, 563, 563, 563, 563, 563, 0, -1, + -1, 3, 4, 5, 6, -1, 8, 9, 10, 11, + 12, 13, 14, -1, -1, 17, 18, 19, 20, 21, + 22, 23, 24, 25, -1, -1, 28, 29, -1, -1, + 40, -1, -1, -1, 36, -1, 38, 39, -1, 41, + -1, 43, -1, 45, -1, 47, 48, 49, -1, -1, + 52, 53, -1, 55, 56, -1, -1, 67, 68, 69, + -1, 63, 64, -1, -1, 75, 76, -1, 70, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 111, -1, -1, -1, -1, 116, 117, -1, -1, -1, - 121, -1, 123, -1, 125, -1, 127, -1, -1, -1, - 131, 3, 4, 5, 6, -1, 8, 9, 10, 11, - 12, 13, 14, -1, -1, -1, 18, 19, 20, 21, - 22, 23, 24, 25, -1, 27, 28, 29, -1, 31, - -1, -1, -1, 35, 36, 37, 38, -1, 40, 41, - 42, -1, 44, 45, 46, 47, 48, -1, -1, 51, - 52, -1, 54, 55, -1, -1, -1, -1, -1, -1, - 62, 63, -1, 65, -1, -1, -1, 69, -1, -1, + -1, 91, 92, 93, -1, 95, 96, 97, -1, 91, + 92, -1, -1, -1, -1, -1, -1, -1, 100, -1, + 110, 111, -1, 113, 114, 115, 116, 117, 110, -1, + -1, 113, -1, 123, -1, 125, 118, 119, 128, -1, + -1, 123, -1, 125, -1, 127, -1, 129, -1, -1, + -1, 133, 3, 4, 5, 6, -1, 8, 9, 10, + 11, 12, 13, 14, -1, -1, -1, 18, 19, 20, + 21, 22, 23, 24, 25, 26, -1, 28, 29, 30, + -1, 32, -1, -1, -1, 36, 37, 38, 39, -1, + 41, 42, 43, -1, 45, 46, 47, 48, 49, -1, + -1, 52, 53, -1, 55, 56, -1, -1, -1, -1, + -1, -1, 63, 64, -1, 66, -1, -1, -1, 70, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 90, 91, - -1, -1, -1, -1, -1, -1, -1, 99, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 111, - -1, -1, -1, -1, 116, 117, -1, -1, -1, 121, - -1, 123, -1, 125, -1, 127, -1, -1, -1, 131, - 3, 4, 5, 6, -1, 8, 9, 10, 11, 12, - 13, 14, -1, -1, -1, 18, 19, 20, 21, 22, - 23, 24, 25, -1, 27, 28, 29, -1, 31, -1, - -1, -1, 35, 36, 37, 38, -1, 40, 41, 42, - -1, 44, 45, 46, 47, 48, -1, -1, 51, 52, - -1, 54, 55, -1, -1, -1, -1, -1, -1, 62, - 63, -1, 65, -1, -1, -1, 69, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 90, 91, -1, - -1, -1, -1, -1, -1, -1, 99, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 111, -1, - -1, -1, -1, 116, 117, -1, -1, -1, 121, -1, - 123, -1, 125, -1, 127, -1, -1, -1, 131, 3, - 4, 5, 6, -1, 8, 9, 10, 11, 12, 13, - 14, -1, -1, 17, 18, 19, 20, 21, 22, 23, - 24, -1, -1, 27, 28, -1, -1, -1, -1, -1, - -1, 35, -1, 37, 38, -1, 40, -1, 42, -1, - 44, -1, 46, 47, 48, -1, -1, 51, 52, -1, - 54, 55, -1, -1, -1, -1, -1, -1, 62, 63, - -1, -1, -1, -1, -1, 69, -1, -1, -1, -1, + 91, 92, -1, -1, -1, -1, -1, -1, -1, 100, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 110, + -1, -1, 113, -1, -1, -1, -1, 118, 119, -1, + -1, -1, 123, -1, 125, -1, 127, -1, 129, -1, + -1, -1, 133, 3, 4, 5, 6, -1, 8, 9, + 10, 11, 12, 13, 14, -1, -1, -1, 18, 19, + 20, 21, 22, 23, 24, 25, 26, -1, 28, 29, + 30, -1, 32, -1, -1, -1, 36, 37, 38, 39, + -1, 41, 42, 43, -1, 45, 46, 47, 48, 49, + -1, -1, 52, 53, -1, 55, 56, -1, -1, -1, + -1, -1, -1, 63, 64, -1, 66, -1, -1, -1, + 70, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 90, 91, -1, -1, - -1, -1, -1, -1, -1, 99, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 111, -1, -1, - -1, -1, 116, 117, -1, -1, -1, 121, -1, 123, - -1, 125, -1, 127, -1, -1, -1, 131, 3, 4, - 5, 6, -1, 8, 9, 10, 11, 12, 13, 14, - -1, -1, -1, 18, 19, 20, 21, 22, 23, 24, - -1, -1, 27, 28, -1, -1, -1, -1, -1, -1, - 35, -1, 37, 38, -1, 40, -1, 42, -1, 44, - -1, 46, 47, 48, -1, -1, 51, 52, -1, 54, - 55, -1, -1, -1, -1, -1, -1, 62, 63, -1, - -1, -1, -1, -1, 69, -1, -1, -1, -1, -1, + -1, 91, 92, -1, -1, -1, -1, -1, -1, -1, + 100, -1, -1, -1, -1, -1, -1, -1, -1, -1, + 110, -1, -1, 113, -1, -1, -1, -1, 118, 119, + -1, -1, -1, 123, -1, 125, -1, 127, -1, 129, + -1, -1, -1, 133, 3, 4, 5, 6, -1, 8, + 9, 10, 11, 12, 13, 14, -1, -1, -1, 18, + 19, 20, 21, 22, 23, 24, 25, 26, -1, 28, + 29, 30, -1, 32, -1, -1, -1, 36, 37, 38, + 39, -1, 41, 42, 43, -1, 45, 46, 47, 48, + 49, -1, -1, 52, 53, -1, 55, 56, -1, -1, + -1, -1, -1, -1, 63, 64, -1, 66, -1, -1, + -1, 70, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 90, 91, -1, -1, -1, - -1, -1, -1, -1, 99, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 111, -1, -1, -1, - -1, 116, 117, -1, -1, -1, 121, -1, 123, -1, - 125, -1, 127, -1, -1, -1, 131, 3, 4, 5, - 6, -1, 8, 9, 10, 11, 12, 13, 14, -1, - -1, -1, 18, 19, 20, 21, 22, 23, 24, -1, - -1, 27, 28, -1, -1, -1, -1, -1, -1, 35, - -1, 37, 38, -1, 40, -1, 42, -1, 44, -1, - 46, 47, 48, -1, -1, 51, 52, -1, 54, 55, - -1, -1, -1, -1, -1, -1, 62, 63, -1, -1, - -1, -1, -1, 69, -1, -1, -1, -1, -1, -1, + -1, -1, 91, 92, -1, -1, -1, -1, -1, -1, + -1, 100, -1, -1, -1, -1, -1, -1, -1, -1, + -1, 110, -1, -1, 113, -1, -1, -1, -1, 118, + 119, -1, -1, -1, 123, -1, 125, -1, 127, -1, + 129, -1, -1, -1, 133, 3, 4, 5, 6, -1, + 8, 9, 10, 11, 12, 13, 14, -1, -1, 17, + 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, + 28, 29, -1, -1, -1, -1, -1, -1, 36, -1, + 38, 39, -1, 41, -1, 43, -1, 45, -1, 47, + 48, 49, -1, -1, 52, 53, -1, 55, 56, -1, + -1, -1, -1, -1, -1, 63, 64, -1, -1, -1, + -1, -1, 70, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 90, 91, -1, -1, -1, -1, - -1, -1, -1, 99, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 111, -1, -1, -1, -1, - 116, 117, -1, -1, -1, 121, -1, 123, -1, 125, - -1, 127, -1, -1, -1, 131, 3, 4, 5, 6, + -1, -1, -1, 91, 92, -1, -1, -1, -1, -1, + -1, -1, 100, -1, -1, -1, -1, -1, -1, -1, + -1, -1, 110, -1, -1, 113, -1, -1, -1, -1, + 118, 119, -1, -1, -1, 123, -1, 125, -1, 127, + -1, 129, -1, -1, -1, 133, 3, 4, 5, 6, -1, 8, 9, 10, 11, 12, 13, 14, -1, -1, - -1, 18, 19, 20, 21, 22, 23, 24, -1, -1, - 27, 28, -1, -1, -1, -1, -1, -1, 35, -1, - 37, 38, -1, 40, -1, 42, -1, 44, -1, 46, - 47, 48, -1, -1, 51, 52, -1, 54, 55, -1, - -1, -1, -1, -1, -1, 62, 63, -1, -1, -1, - -1, -1, 69, -1, -1, -1, -1, -1, -1, -1, + -1, 18, 19, 20, 21, 22, 23, 24, 25, -1, + -1, 28, 29, -1, -1, -1, -1, -1, -1, 36, + -1, 38, 39, -1, 41, -1, 43, -1, 45, -1, + 47, 48, 49, -1, -1, 52, 53, -1, 55, 56, + -1, -1, -1, -1, -1, -1, 63, 64, -1, -1, + -1, -1, -1, 70, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 90, 91, -1, -1, -1, -1, -1, - -1, -1, 99, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, -1, -1, -1, -1, 116, - 117, -1, -1, -1, 121, -1, 123, -1, 125, -1, - 127, -1, -1, -1, 131, 3, 4, 5, 6, -1, - 8, 9, 10, 11, 12, 13, 14, -1, -1, -1, - 18, 19, 20, 21, 22, 23, 24, -1, -1, 27, - 28, -1, -1, -1, -1, -1, -1, 35, -1, 37, - 38, -1, 40, -1, 42, -1, 44, -1, 46, 47, - 48, -1, -1, 51, 52, -1, 54, 55, -1, -1, - -1, -1, -1, -1, 62, 63, -1, -1, -1, -1, - -1, 69, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, 91, 92, -1, -1, -1, -1, + -1, -1, -1, 100, -1, -1, -1, -1, -1, -1, + -1, -1, -1, 110, -1, -1, 113, -1, -1, -1, + -1, 118, 119, -1, -1, -1, 123, -1, 125, -1, + 127, -1, 129, -1, -1, -1, 133, 3, 4, 5, + 6, -1, 8, 9, 10, 11, 12, 13, 14, -1, + -1, -1, 18, 19, 20, 21, 22, 23, 24, 25, + -1, -1, 28, 29, -1, -1, -1, -1, -1, -1, + 36, -1, 38, 39, -1, 41, -1, 43, -1, 45, + -1, 47, 48, 49, -1, -1, 52, 53, -1, 55, + 56, -1, -1, -1, -1, -1, -1, 63, 64, -1, + -1, -1, -1, -1, 70, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 90, 91, -1, -1, -1, -1, -1, -1, - -1, 99, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 111, -1, -1, -1, -1, 116, 117, - -1, -1, -1, 121, -1, 123, -1, 125, -1, 127, - -1, 0, -1, 131, 3, 4, 5, 6, -1, 8, - 9, 10, 11, 12, 13, 14, -1, -1, 17, 18, - 19, 20, 21, 22, 23, 24, -1, -1, 27, 28, - -1, -1, -1, -1, -1, -1, 35, -1, 37, 38, - -1, 40, -1, 42, -1, 44, -1, 46, 47, 48, - -1, -1, 51, 52, -1, 54, 55, -1, -1, -1, - -1, -1, -1, 62, 63, -1, -1, -1, -1, -1, - 69, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, 91, 92, -1, -1, -1, + -1, -1, -1, -1, 100, -1, -1, -1, -1, -1, + -1, -1, -1, -1, 110, -1, -1, 113, -1, -1, + -1, -1, 118, 119, -1, -1, -1, 123, -1, 125, + -1, 127, -1, 129, -1, -1, -1, 133, 3, 4, + 5, 6, -1, 8, 9, 10, 11, 12, 13, 14, + -1, -1, -1, 18, 19, 20, 21, 22, 23, 24, + 25, -1, -1, 28, 29, -1, -1, -1, -1, -1, + -1, 36, -1, 38, 39, -1, 41, -1, 43, -1, + 45, -1, 47, 48, 49, -1, -1, 52, 53, -1, + 55, 56, -1, -1, -1, -1, -1, -1, 63, 64, + -1, -1, -1, -1, -1, 70, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 90, 91, -1, -1, -1, -1, -1, -1, -1, - 99, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 111, -1, -1, -1, -1, 116, 117, -1, - -1, -1, 121, -1, 123, -1, 125, -1, 127, 3, + -1, -1, -1, -1, -1, -1, 91, 92, -1, -1, + -1, -1, -1, -1, -1, 100, -1, -1, -1, -1, + -1, -1, -1, -1, -1, 110, -1, -1, 113, -1, + -1, -1, -1, 118, 119, -1, -1, -1, 123, -1, + 125, -1, 127, -1, 129, -1, -1, -1, 133, 3, 4, 5, 6, -1, 8, 9, 10, 11, 12, 13, - 14, -1, 16, -1, 18, 19, 20, 21, 22, 23, - 24, 25, -1, 27, 28, 29, -1, 31, -1, -1, - -1, 35, 36, 37, 38, -1, 40, 41, 42, -1, - 44, 45, 46, 47, 48, -1, -1, 51, 52, -1, - 54, 55, -1, -1, -1, -1, -1, -1, 62, 63, - -1, 65, -1, -1, -1, 69, -1, -1, -1, -1, + 14, -1, -1, -1, 18, 19, 20, 21, 22, 23, + 24, 25, -1, -1, 28, 29, -1, -1, -1, -1, + -1, -1, 36, -1, 38, 39, -1, 41, -1, 43, + -1, 45, -1, 47, 48, 49, -1, -1, 52, 53, + -1, 55, 56, -1, -1, -1, -1, -1, -1, 63, + 64, -1, -1, -1, -1, -1, 70, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 90, 91, -1, -1, - -1, -1, -1, -1, -1, 99, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 111, -1, -1, - -1, -1, 116, 117, -1, -1, -1, 121, -1, 123, - -1, 125, -1, 127, 3, 4, 5, 6, -1, 8, - 9, 10, 11, 12, 13, 14, -1, -1, -1, 18, - 19, 20, 21, 22, 23, 24, 25, -1, 27, 28, - 29, -1, 31, -1, -1, -1, 35, 36, 37, 38, - -1, 40, 41, 42, -1, 44, 45, 46, 47, 48, - -1, -1, 51, 52, -1, 54, 55, -1, -1, -1, - -1, -1, -1, 62, 63, -1, 65, -1, -1, -1, - 69, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, 91, 92, -1, + -1, -1, -1, -1, -1, -1, 100, -1, -1, -1, + -1, -1, -1, -1, -1, -1, 110, -1, -1, 113, + -1, -1, -1, -1, 118, 119, -1, -1, -1, 123, + -1, 125, -1, 127, -1, 129, -1, 0, -1, 133, + 3, 4, 5, 6, -1, 8, 9, 10, 11, 12, + 13, 14, -1, -1, 17, 18, 19, 20, 21, 22, + 23, 24, 25, -1, -1, 28, 29, -1, -1, -1, + -1, -1, -1, 36, -1, 38, 39, -1, 41, -1, + 43, -1, 45, -1, 47, 48, 49, -1, -1, 52, + 53, -1, 55, 56, -1, -1, -1, -1, -1, -1, + 63, 64, -1, -1, -1, -1, -1, 70, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 90, 91, -1, -1, -1, -1, -1, -1, -1, - 99, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 111, -1, -1, -1, -1, 116, 117, -1, - -1, -1, 121, -1, 123, -1, 125, 3, 127, 5, - 6, -1, 8, 9, 10, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 23, -1, 25, - -1, 27, 28, -1, -1, 31, -1, -1, -1, 35, - -1, -1, -1, -1, -1, -1, 42, -1, 44, 45, - -1, -1, -1, -1, -1, -1, 52, -1, 54, 55, - -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, - -1, -1, -1, 69, -1, -1, -1, 3, -1, 5, - 6, -1, 8, 9, 10, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 90, 91, -1, 23, -1, 25, - -1, 27, 28, -1, -1, -1, -1, -1, -1, 35, - -1, -1, -1, -1, -1, 111, 42, -1, 44, -1, - 116, 117, -1, -1, -1, 121, 52, 123, 54, 55, - -1, 127, 3, -1, 5, 6, 62, 8, 9, 10, - -1, -1, -1, 69, -1, -1, -1, -1, -1, -1, - -1, -1, 23, -1, 25, -1, 27, 28, -1, -1, - -1, -1, -1, -1, 90, 91, -1, -1, -1, -1, - -1, -1, -1, 44, -1, -1, -1, -1, -1, -1, - -1, 52, -1, 54, 55, 111, -1, -1, -1, -1, - 116, 117, -1, -1, -1, 121, -1, 123, 69, -1, - -1, 127, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 90, - 91, -1, -1, -1, -1, -1, 39, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, 91, 92, + -1, -1, -1, -1, -1, -1, -1, 100, -1, -1, + -1, -1, -1, -1, -1, -1, -1, 110, -1, -1, + 113, -1, -1, -1, -1, 118, 119, -1, -1, -1, + 123, -1, 125, -1, 127, -1, 129, 3, 4, 5, + 6, -1, 8, 9, 10, 11, 12, 13, 14, -1, + 16, -1, 18, 19, 20, 21, 22, 23, 24, 25, + 26, -1, 28, 29, 30, -1, 32, -1, -1, -1, + 36, 37, 38, 39, -1, 41, 42, 43, -1, 45, + 46, 47, 48, 49, -1, -1, 52, 53, -1, 55, + 56, -1, -1, -1, -1, -1, -1, 63, 64, -1, + 66, -1, -1, -1, 70, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, 91, 92, -1, -1, -1, + -1, -1, -1, -1, 100, -1, -1, -1, -1, -1, + -1, -1, -1, -1, 110, -1, -1, 113, -1, -1, + -1, -1, 118, 119, -1, -1, -1, 123, -1, 125, + -1, 127, -1, 129, 3, 4, 5, 6, -1, 8, + 9, 10, 11, 12, 13, 14, -1, -1, -1, 18, + 19, 20, 21, 22, 23, 24, 25, 26, -1, 28, + 29, 30, -1, 32, -1, -1, -1, 36, 37, 38, + 39, -1, 41, 42, 43, -1, 45, 46, 47, 48, + 49, -1, -1, 52, 53, -1, 55, 56, -1, -1, + -1, -1, -1, -1, 63, 64, -1, 66, -1, -1, + -1, 70, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, 91, 92, -1, -1, -1, -1, -1, -1, + -1, 100, -1, -1, -1, -1, -1, -1, -1, -1, + -1, 110, -1, -1, 113, -1, -1, -1, -1, 118, + 119, -1, -1, -1, 123, -1, 125, -1, 127, 3, + 129, 5, 6, -1, 8, 9, 10, -1, -1, -1, + -1, -1, -1, -1, -1, 19, -1, -1, -1, -1, + 24, -1, 26, -1, 28, 29, -1, -1, 32, -1, + -1, -1, 36, -1, -1, -1, -1, -1, -1, 43, + -1, 45, 46, -1, -1, -1, -1, -1, -1, 53, + -1, 55, 56, -1, -1, -1, -1, -1, -1, 63, + -1, -1, -1, -1, -1, -1, 70, -1, -1, -1, + 3, -1, 5, 6, -1, 8, 9, 10, -1, -1, + -1, -1, -1, -1, -1, -1, 19, 91, 92, -1, + -1, 24, -1, 26, -1, 28, 29, -1, -1, -1, + -1, -1, -1, 36, -1, -1, 110, -1, -1, 113, + 43, -1, 45, -1, 118, 119, -1, -1, -1, 123, + 53, 125, 55, 56, -1, 129, -1, -1, -1, -1, + 63, -1, -1, -1, -1, -1, -1, 70, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 121, -1, 123, 66, 67, 68, 127, 70, 71, 72, + -1, -1, -1, -1, -1, -1, -1, -1, 91, 92, + -1, -1, -1, -1, -1, -1, 40, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, 110, -1, -1, + 113, -1, -1, -1, -1, 118, 119, -1, -1, -1, + 123, -1, 125, 67, 68, 69, 129, 71, 72, 73, + 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, + 84, 85, 86, 87, 88, 89, -1, 91, 92, 93, + -1, 95, 96, 97, -1, -1, -1, -1, -1, 103, + 104, -1, 106, 107, 108, 40, 110, 111, -1, 113, + 114, 115, 116, 117, -1, -1, -1, -1, -1, 123, + -1, 125, -1, -1, 128, -1, -1, -1, -1, -1, + 134, -1, 67, 68, 69, -1, 71, 72, 73, 74, + 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, + 85, 86, 87, 88, 89, -1, 91, 92, 93, -1, + 95, 96, 97, -1, -1, -1, -1, -1, 103, 104, + -1, 106, 107, 108, 40, 110, 111, -1, 113, 114, + 115, 116, 117, -1, -1, -1, -1, -1, 123, -1, + 125, -1, -1, 128, -1, -1, -1, -1, -1, 134, + -1, 67, 68, 69, -1, 71, 72, 73, 74, 75, + 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, + 86, 87, 88, 89, -1, 91, 92, 93, -1, 95, + 96, 97, -1, -1, -1, -1, -1, 103, 104, -1, + 106, 107, 108, 40, 110, 111, -1, 113, 114, 115, + 116, 117, -1, -1, -1, -1, -1, 123, -1, 125, + -1, -1, 128, -1, -1, -1, -1, -1, 134, -1, + 67, 68, 69, -1, 71, 72, 73, 74, 75, 76, + 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, + 87, 88, 89, -1, 91, 92, 93, -1, 95, 96, + 97, -1, -1, -1, -1, 40, 103, 104, 105, 106, + 107, 108, -1, 110, 111, -1, 113, 114, 115, 116, + 117, -1, -1, -1, -1, -1, 123, -1, 125, -1, + -1, 128, 67, 68, 69, -1, 71, 72, 73, 74, + 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, + 85, 86, 87, 88, 89, -1, 91, 92, 93, -1, + 95, 96, 97, -1, -1, -1, -1, 40, 103, 104, + -1, 106, 107, 108, -1, 110, 111, -1, 113, 114, + 115, 116, 117, -1, -1, -1, -1, -1, 123, -1, + 125, 126, -1, 128, 67, 68, 69, -1, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, - 83, 84, 85, 86, 87, 88, -1, 90, 91, 92, - -1, 94, 95, 96, -1, -1, -1, -1, -1, 102, - 103, -1, 105, 106, 107, 108, 109, 39, 111, 112, - 113, 114, 115, -1, -1, -1, -1, -1, 121, -1, - 123, -1, -1, 126, -1, -1, -1, -1, -1, 132, - -1, -1, -1, -1, 66, 67, 68, -1, 70, 71, - 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, - 82, 83, 84, 85, 86, 87, 88, -1, 90, 91, - 92, -1, 94, 95, 96, -1, -1, -1, -1, -1, - 102, 103, -1, 105, 106, 107, 108, 109, 39, 111, - 112, 113, 114, 115, -1, -1, -1, -1, -1, 121, - -1, 123, -1, -1, 126, -1, -1, -1, -1, -1, - 132, -1, -1, -1, -1, 66, 67, 68, -1, 70, + 83, 84, 85, 86, 87, 88, 89, -1, 91, 92, + 93, -1, 95, 96, 97, -1, -1, -1, -1, 40, + 103, 104, -1, 106, 107, 108, -1, 110, 111, -1, + 113, 114, 115, 116, 117, -1, -1, -1, -1, -1, + 123, -1, 125, 126, -1, 128, 67, 68, 69, -1, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, - 81, 82, 83, 84, 85, 86, 87, 88, -1, 90, - 91, 92, -1, 94, 95, 96, -1, -1, -1, -1, - -1, 102, 103, -1, 105, 106, 107, 108, 109, 39, - 111, 112, 113, 114, 115, -1, -1, -1, -1, -1, - 121, -1, 123, -1, -1, 126, -1, -1, -1, -1, - -1, 132, -1, -1, -1, -1, 66, 67, 68, -1, - 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, - 80, 81, 82, 83, 84, 85, 86, 87, 88, -1, - 90, 91, 92, -1, 94, 95, 96, -1, -1, -1, - 39, -1, 102, 103, 104, 105, 106, 107, 108, 109, - -1, 111, 112, 113, 114, 115, -1, -1, -1, -1, - -1, 121, -1, 123, -1, -1, 126, 66, 67, 68, - -1, 70, 71, 72, 73, 74, 75, 76, 77, 78, + 81, 82, 83, 84, 85, 86, 87, 88, 89, -1, + 91, 92, 93, -1, 95, 96, 97, -1, -1, -1, + -1, 40, 103, 104, -1, 106, 107, 108, -1, 110, + 111, -1, 113, 114, 115, 116, 117, -1, -1, -1, + -1, -1, 123, -1, 125, 126, -1, 128, 67, 68, + 69, -1, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, - -1, 90, 91, 92, -1, 94, 95, 96, -1, -1, - -1, 39, -1, 102, 103, -1, 105, 106, 107, 108, - 109, -1, 111, 112, 113, 114, 115, -1, -1, -1, - -1, -1, 121, -1, 123, 124, -1, 126, 66, 67, - 68, -1, 70, 71, 72, 73, 74, 75, 76, 77, - 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, - 88, -1, 90, 91, 92, -1, 94, 95, 96, -1, - -1, -1, 39, -1, 102, 103, 104, 105, 106, 107, - 108, 109, -1, 111, 112, 113, 114, 115, -1, -1, - -1, -1, -1, 121, -1, 123, -1, -1, 126, 66, - 67, 68, -1, 70, 71, 72, 73, 74, 75, 76, + 89, -1, 91, 92, 93, -1, 95, 96, 97, -1, + -1, -1, -1, 40, 103, 104, -1, 106, 107, 108, + -1, 110, 111, -1, 113, 114, 115, 116, 117, -1, + -1, -1, -1, -1, 123, -1, 125, 126, -1, 128, + 67, 68, 69, -1, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, - 87, 88, -1, 90, 91, 92, -1, 94, 95, 96, - -1, -1, -1, 39, -1, 102, 103, -1, 105, 106, - 107, 108, 109, -1, 111, 112, 113, 114, 115, -1, - -1, -1, -1, -1, 121, -1, 123, -1, -1, 126, - 66, 67, 68, -1, 70, 71, 72, 73, 74, 75, + 87, 88, 89, -1, 91, 92, 93, -1, 95, 96, + 97, -1, -1, -1, -1, 40, 103, 104, 105, 106, + 107, 108, -1, 110, 111, -1, 113, 114, 115, 116, + 117, -1, -1, -1, -1, -1, 123, -1, 125, -1, + -1, 128, 67, 68, 69, -1, 71, 72, 73, 74, + 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, + 85, 86, 87, 88, 89, -1, 91, 92, 93, -1, + 95, 96, 97, -1, -1, -1, -1, 40, 103, 104, + -1, 106, 107, 108, -1, 110, 111, -1, 113, 114, + 115, 116, 117, -1, -1, -1, -1, -1, 123, -1, + 125, -1, -1, 128, 67, 68, 69, -1, 71, 72, + 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, + 83, 84, 85, 86, 87, 88, 89, -1, 91, 92, + 93, -1, 95, 96, 97, -1, -1, -1, -1, 40, + 103, 104, -1, 106, 107, 108, -1, -1, 111, -1, + 113, 114, 115, 116, 117, -1, -1, -1, -1, -1, + 123, -1, 125, -1, -1, 128, 67, 68, 69, -1, + 71, 72, 73, 74, 75, 76, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, 89, -1, + 91, 92, 93, -1, 95, 96, 97, -1, -1, -1, + -1, 40, -1, -1, -1, 106, 107, 108, -1, 110, + 111, -1, 113, 114, 115, 116, 117, -1, -1, -1, + -1, -1, 123, -1, 125, -1, -1, 128, 67, 68, + 69, -1, 71, 72, 73, 74, 75, 76, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 88, -1, 90, 91, 92, -1, 94, 95, - 96, -1, -1, -1, 39, -1, -1, -1, -1, 105, - 106, 107, 108, 109, -1, 111, 112, 113, 114, 115, - -1, -1, -1, -1, -1, 121, -1, 123, -1, -1, - 126, 66, 67, 68, -1, 70, 71, 72, 73, 74, - 75, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 90, 91, 92, -1, 94, - 95, 96, -1, -1, -1, 39, -1, -1, -1, -1, - 105, 106, 107, 108, 109, -1, 111, 112, 113, 114, - 115, -1, -1, -1, -1, -1, 121, -1, 123, -1, - -1, 126, 66, 67, 68, -1, 70, 71, 72, 73, - 74, 75, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 90, 91, 92, -1, - 94, 95, 96, -1, -1, -1, 39, -1, -1, -1, - -1, -1, 106, 107, 108, 109, -1, 111, 112, 113, - 114, 115, -1, -1, -1, -1, -1, 121, -1, 123, - -1, -1, 126, 66, 67, 68, -1, 70, 71, 72, - 73, 74, 75, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 90, 91, 92, - -1, 94, 95, 96, -1, -1, -1, 39, -1, -1, - -1, -1, -1, -1, 107, 108, 109, -1, 111, 112, - 113, 114, 115, -1, -1, -1, -1, -1, 121, -1, - 123, -1, -1, 126, 66, 67, 68, -1, 70, 71, - 72, 73, 74, 75, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 90, 91, - 92, -1, 94, 95, 96, -1, -1, -1, 39, -1, - -1, -1, -1, -1, -1, 107, 108, 109, -1, 111, - 112, 113, 114, 115, -1, -1, -1, -1, -1, 121, - -1, 123, -1, -1, 126, 66, 67, 68, -1, 70, - 71, 72, 73, 74, 75, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 90, - 91, 92, -1, 94, 95, 96, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 108, 109, -1, - 111, 112, 113, 114, 115, -1, -1, -1, -1, -1, - 121, -1, 123, -1, -1, 126 + -1, -1, 91, 92, 93, -1, 95, 96, 97, -1, + -1, -1, -1, 40, -1, -1, -1, 106, 107, 108, + -1, 110, 111, -1, 113, 114, 115, 116, 117, -1, + -1, -1, -1, -1, 123, -1, 125, -1, -1, 128, + 67, 68, 69, -1, 71, 72, 73, 74, 75, 76, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, 91, 92, 93, -1, 95, 96, + 97, -1, -1, -1, -1, 40, -1, -1, -1, -1, + 107, 108, -1, 110, 111, -1, 113, 114, 115, 116, + 117, -1, -1, -1, -1, -1, 123, -1, 125, -1, + -1, 128, 67, 68, 69, -1, 71, 72, 73, 74, + 75, 76, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, 91, 92, 93, -1, + 95, 96, 97, -1, -1, -1, -1, 40, -1, -1, + -1, -1, -1, 108, -1, 110, 111, -1, 113, 114, + 115, 116, 117, -1, -1, -1, -1, -1, 123, -1, + 125, -1, -1, 128, 67, 68, 69, -1, 71, 72, + 73, 74, 75, 76, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, 91, 92, + 93, -1, 95, 96, 97, -1, -1, -1, -1, 40, + -1, -1, -1, -1, -1, 108, -1, 110, 111, -1, + 113, 114, 115, 116, 117, -1, -1, -1, -1, -1, + 123, -1, 125, -1, -1, 128, 67, 68, 69, -1, + 71, 72, 73, 74, 75, 76, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + 91, 92, 93, -1, 95, 96, 97, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 110, + 111, -1, 113, 114, 115, 116, 117, -1, -1, -1, + -1, -1, 123, -1, 125, -1, -1, 128 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ -static const yytype_uint8 yystos[] = +static const yytype_uint16 yystos[] = { 0, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 17, 18, 19, 20, 21, 22, 23, 24, - 25, 27, 28, 35, 37, 38, 40, 42, 44, 46, - 47, 48, 51, 52, 54, 55, 62, 63, 69, 90, - 91, 99, 111, 116, 117, 121, 123, 125, 127, 134, - 135, 136, 137, 143, 146, 147, 153, 157, 158, 159, - 160, 162, 170, 178, 181, 182, 185, 188, 189, 190, - 191, 195, 197, 206, 211, 216, 219, 232, 233, 234, - 239, 242, 243, 244, 246, 247, 89, 49, 121, 121, - 163, 121, 3, 4, 17, 125, 183, 184, 16, 3, - 242, 3, 218, 242, 121, 184, 222, 121, 125, 121, - 126, 242, 121, 236, 240, 241, 242, 242, 242, 242, - 242, 242, 238, 242, 228, 229, 230, 236, 29, 31, - 36, 41, 45, 65, 99, 131, 142, 143, 144, 147, - 149, 164, 165, 180, 189, 235, 3, 0, 137, 125, - 3, 45, 149, 155, 156, 239, 144, 145, 16, 25, - 30, 31, 43, 45, 205, 245, 191, 100, 39, 66, - 67, 68, 70, 71, 72, 73, 74, 75, 76, 77, - 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, - 88, 90, 91, 92, 94, 95, 96, 102, 103, 105, - 106, 107, 108, 109, 111, 112, 113, 114, 115, 121, - 123, 126, 3, 121, 161, 145, 171, 187, 125, 126, - 183, 184, 221, 222, 223, 231, 121, 237, 238, 126, - 242, 179, 228, 3, 154, 104, 131, 100, 100, 132, - 124, 100, 236, 3, 3, 150, 151, 237, 237, 150, - 3, 131, 144, 125, 135, 3, 99, 67, 99, 3, - 34, 50, 215, 3, 3, 207, 242, 242, 242, 242, - 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, - 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, - 3, 242, 242, 242, 242, 242, 242, 242, 242, 242, - 242, 242, 242, 242, 242, 242, 228, 242, 3, 121, - 127, 237, 12, 242, 99, 138, 139, 140, 146, 147, - 195, 197, 206, 216, 186, 183, 126, 121, 227, 3, - 93, 212, 213, 214, 132, 114, 183, 132, 141, 142, - 132, 237, 236, 236, 242, 104, 226, 100, 142, 131, - 226, 237, 237, 102, 3, 53, 192, 53, 193, 3, - 208, 209, 104, 132, 124, 89, 242, 3, 132, 121, - 132, 131, 140, 125, 138, 228, 102, 104, 210, 214, - 132, 100, 131, 132, 104, 35, 114, 223, 225, 102, - 148, 151, 131, 99, 132, 3, 5, 121, 223, 15, - 194, 223, 224, 125, 226, 100, 242, 3, 132, 145, - 237, 125, 138, 131, 132, 211, 225, 226, 93, 214, - 26, 32, 172, 174, 176, 177, 145, 236, 242, 239, - 145, 212, 224, 125, 100, 198, 148, 209, 132, 33, - 61, 166, 167, 168, 169, 131, 210, 125, 214, 125, - 121, 172, 174, 64, 152, 132, 132, 196, 223, 45, - 99, 189, 202, 203, 204, 242, 104, 131, 168, 169, - 220, 175, 3, 145, 145, 226, 99, 143, 147, 189, - 199, 200, 201, 206, 216, 3, 25, 131, 204, 104, - 141, 141, 141, 226, 125, 125, 131, 201, 215, 141, - 131, 131, 132, 217, 199, 3, 173, 141, 131, 121, - 125, 131, 212, 141, 132, 131, 226 + 25, 26, 28, 29, 36, 38, 39, 41, 43, 45, + 47, 48, 49, 52, 53, 55, 56, 63, 64, 70, + 91, 92, 100, 110, 113, 118, 119, 123, 125, 127, + 129, 136, 137, 138, 139, 145, 148, 149, 155, 159, + 160, 161, 162, 164, 172, 180, 183, 184, 187, 190, + 191, 192, 193, 197, 199, 208, 213, 214, 215, 225, + 233, 236, 249, 250, 251, 256, 260, 264, 265, 267, + 268, 90, 50, 123, 123, 165, 123, 3, 4, 17, + 127, 185, 186, 16, 3, 260, 3, 235, 260, 123, + 186, 239, 123, 127, 123, 128, 260, 123, 3, 5, + 8, 9, 10, 257, 258, 259, 260, 260, 260, 260, + 260, 255, 260, 245, 246, 247, 253, 260, 30, 32, + 37, 42, 46, 66, 100, 133, 144, 145, 146, 149, + 151, 166, 167, 182, 191, 252, 3, 0, 139, 127, + 3, 46, 151, 157, 158, 256, 146, 147, 16, 26, + 31, 32, 44, 46, 207, 266, 193, 3, 127, 220, + 224, 101, 40, 67, 68, 69, 71, 72, 73, 74, + 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, + 85, 86, 87, 88, 89, 91, 92, 93, 95, 96, + 97, 103, 104, 106, 107, 108, 110, 111, 113, 114, + 115, 116, 117, 123, 125, 128, 3, 123, 163, 147, + 173, 189, 127, 128, 185, 186, 238, 239, 240, 248, + 123, 254, 255, 128, 260, 181, 245, 3, 156, 133, + 105, 101, 101, 134, 126, 101, 253, 3, 3, 152, + 153, 254, 254, 152, 3, 133, 146, 127, 137, 3, + 100, 68, 100, 3, 35, 51, 232, 3, 3, 209, + 260, 3, 220, 226, 227, 228, 260, 260, 260, 260, + 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, + 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, + 3, 116, 129, 263, 260, 260, 260, 260, 260, 260, + 260, 260, 260, 260, 260, 260, 260, 260, 260, 245, + 260, 3, 4, 123, 125, 129, 262, 263, 254, 12, + 260, 100, 140, 141, 142, 148, 149, 197, 199, 208, + 233, 188, 185, 128, 123, 244, 3, 94, 229, 230, + 231, 134, 116, 185, 134, 143, 144, 134, 254, 253, + 258, 260, 105, 243, 101, 144, 133, 243, 254, 254, + 103, 3, 54, 194, 54, 195, 3, 210, 211, 221, + 103, 103, 111, 115, 216, 228, 125, 263, 105, 134, + 126, 261, 260, 125, 263, 90, 134, 123, 134, 133, + 142, 127, 140, 245, 103, 105, 212, 231, 134, 101, + 133, 134, 105, 36, 116, 240, 242, 103, 150, 153, + 133, 100, 134, 3, 5, 123, 240, 15, 196, 240, + 241, 127, 243, 101, 133, 5, 220, 5, 220, 217, + 222, 260, 260, 260, 126, 260, 263, 147, 254, 127, + 140, 133, 134, 260, 242, 243, 94, 231, 27, 33, + 174, 176, 178, 179, 147, 253, 260, 256, 147, 229, + 241, 127, 101, 200, 150, 211, 111, 5, 110, 111, + 127, 218, 223, 225, 126, 134, 126, 134, 34, 62, + 168, 169, 170, 171, 133, 212, 127, 231, 127, 123, + 174, 176, 65, 154, 134, 134, 198, 240, 46, 100, + 191, 204, 205, 206, 115, 260, 110, 225, 222, 260, + 105, 133, 170, 171, 237, 177, 3, 147, 147, 243, + 100, 145, 149, 191, 201, 202, 203, 208, 233, 3, + 26, 133, 206, 224, 219, 115, 222, 105, 143, 143, + 143, 243, 127, 127, 133, 203, 232, 217, 133, 224, + 143, 133, 133, 134, 234, 201, 3, 111, 217, 175, + 143, 133, 123, 111, 127, 133, 229, 143, 134, 133, + 243 }; #define yyerrok (yyerrstatus = 0) @@ -4223,7 +4509,7 @@ yyreduce: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 1893 "parser.y" +#line 1902 "parser.y" {PASS_ALWAYS as3_pass=(yyvsp[(1) - (4)].number_int);} } break; @@ -4234,7 +4520,7 @@ yyreduce: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 1905 "parser.y" +#line 1914 "parser.y" {PASS_ALWAYS as3_pass=(yyvsp[(1) - (4)].number_int);} } break; @@ -4245,7 +4531,7 @@ yyreduce: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 1908 "parser.y" +#line 1917 "parser.y" {(yyval.code)=(yyvsp[(1) - (1)].code);} } break; @@ -4256,7 +4542,7 @@ yyreduce: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 1909 "parser.y" +#line 1918 "parser.y" {(yyval.code)=code_new();} } break; @@ -4267,8 +4553,10 @@ yyreduce: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 1911 "parser.y" - {(yyval.code)=code_append((yyvsp[(1) - (2)].code),(yyvsp[(2) - (2)].code));} +#line 1920 "parser.y" + { + (yyval.code)=code_append((yyvsp[(1) - (2)].code),(yyvsp[(2) - (2)].code)); +} } break; @@ -4278,7 +4566,7 @@ yyreduce: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 1912 "parser.y" +#line 1923 "parser.y" {(yyval.code)=(yyvsp[(1) - (1)].code);} } break; @@ -4289,7 +4577,7 @@ yyreduce: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 1927 "parser.y" +#line 1938 "parser.y" {(yyval.code)=(yyvsp[(2) - (3)].code);} } break; @@ -4300,7 +4588,7 @@ yyreduce: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 1928 "parser.y" +#line 1939 "parser.y" {(yyval.code)=0;} } break; @@ -4311,7 +4599,7 @@ yyreduce: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 1931 "parser.y" +#line 1942 "parser.y" {(yyval.code)=0;} } break; @@ -4322,8 +4610,16 @@ yyreduce: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 1938 "parser.y" - {PASS_ALWAYS as3_pass=(yyvsp[(1) - (4)].number_int);} +#line 1949 "parser.y" + { + PASS_ALWAYS + if(as3_pass) { + (yyval.code) = (yyvsp[(3) - (4)].code); + } else { + (yyval.code) = 0; + } + as3_pass=(yyvsp[(1) - (4)].number_int); +} } break; @@ -4333,7 +4629,7 @@ yyreduce: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 1942 "parser.y" +#line 1961 "parser.y" {(yyval.code)=(yyvsp[(1) - (2)].code);} } break; @@ -4344,7 +4640,7 @@ yyreduce: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 1943 "parser.y" +#line 1962 "parser.y" {(yyval.code)=(yyvsp[(1) - (1)].code);} } break; @@ -4355,7 +4651,7 @@ yyreduce: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 1947 "parser.y" +#line 1966 "parser.y" { code_t**cc = &global->init->method->body->code; *cc = code_append(*cc, (yyvsp[(1) - (1)].code)); @@ -4369,7 +4665,7 @@ yyreduce: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 1954 "parser.y" +#line 1973 "parser.y" { PASS12 (yyval.number_int)=as3_pass; @@ -4388,7 +4684,7 @@ yyreduce: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 1973 "parser.y" +#line 1992 "parser.y" {(yyval.node)=(yyvsp[(2) - (2)].node);} } break; @@ -4399,7 +4695,7 @@ yyreduce: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 1974 "parser.y" +#line 1993 "parser.y" {(yyval.node)=mkdummynode();} } break; @@ -4410,7 +4706,7 @@ yyreduce: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 1976 "parser.y" +#line 1995 "parser.y" {(yyval.code)=(yyvsp[(2) - (2)].code);} } break; @@ -4421,7 +4717,7 @@ yyreduce: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 1977 "parser.y" +#line 1996 "parser.y" {(yyval.code)=(yyvsp[(2) - (2)].code);} } break; @@ -4432,7 +4728,7 @@ yyreduce: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 1979 "parser.y" +#line 1998 "parser.y" {(yyval.code) = (yyvsp[(1) - (1)].code);} } break; @@ -4443,7 +4739,7 @@ yyreduce: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 1980 "parser.y" +#line 1999 "parser.y" {(yyval.code) = code_append((yyvsp[(1) - (3)].code), (yyvsp[(3) - (3)].code));} } break; @@ -4454,7 +4750,7 @@ yyreduce: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 1983 "parser.y" +#line 2002 "parser.y" { PASS12 if(variable_exists((yyvsp[(1) - (3)].id))) @@ -4520,7 +4816,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2042 "parser.y" +#line 2061 "parser.y" {(yyval.code) = code_new();} } break; @@ -4531,7 +4827,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2043 "parser.y" +#line 2062 "parser.y" {(yyval.code)=(yyvsp[(2) - (2)].code);} } break; @@ -4542,7 +4838,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2046 "parser.y" +#line 2065 "parser.y" {PASS12 new_state();} } break; @@ -4553,7 +4849,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2046 "parser.y" +#line 2065 "parser.y" { (yyval.code) = code_new(); @@ -4581,7 +4877,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2065 "parser.y" +#line 2084 "parser.y" {(yyval.code)=code_new();} } break; @@ -4592,7 +4888,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2072 "parser.y" +#line 2091 "parser.y" { PASS1 (yyval.id)=(yyvsp[(2) - (3)].id);new_variable((yyvsp[(2) - (3)].id),0,1,0); PASS2 (yyval.id)=(yyvsp[(2) - (3)].id);new_variable((yyvsp[(2) - (3)].id),(yyvsp[(3) - (3)].classinfo),1,0); @@ -4606,7 +4902,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2076 "parser.y" +#line 2095 "parser.y" { PASS12 (yyval.id)=(yyvsp[(1) - (1)].id); @@ -4620,7 +4916,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2081 "parser.y" +#line 2100 "parser.y" {PASS12 new_state();(yyval.for_start).name=(yyvsp[(1) - (2)].id);(yyval.for_start).each=0;} } break; @@ -4631,7 +4927,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2082 "parser.y" +#line 2101 "parser.y" {PASS12 new_state();(yyval.for_start).name=(yyvsp[(1) - (3)].id);(yyval.for_start).each=1;} } break; @@ -4642,7 +4938,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2084 "parser.y" +#line 2103 "parser.y" { if((yyvsp[(1) - (8)].for_start).each) syntaxerror("invalid syntax: ; not allowed in for each statement"); (yyval.code) = code_new(); @@ -4671,7 +4967,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2104 "parser.y" +#line 2123 "parser.y" { variable_t*var = find_variable(state, (yyvsp[(2) - (6)].id)); if(!var) { @@ -4728,7 +5024,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2152 "parser.y" +#line 2171 "parser.y" {PASS12 new_state();} } break; @@ -4739,7 +5035,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2152 "parser.y" +#line 2171 "parser.y" { (yyval.code) = code_new(); @@ -4767,7 +5063,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2171 "parser.y" +#line 2190 "parser.y" {PASS12 new_state();} } break; @@ -4778,7 +5074,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2171 "parser.y" +#line 2190 "parser.y" { (yyval.code) = code_new(); code_t*loopstart = (yyval.code) = abc_label((yyval.code)); @@ -4802,7 +5098,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2186 "parser.y" +#line 2205 "parser.y" { (yyval.code) = abc___break__(0, ""); } @@ -4815,7 +5111,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2189 "parser.y" +#line 2208 "parser.y" { (yyval.code) = abc___break__(0, (yyvsp[(2) - (2)].id)); } @@ -4828,7 +5124,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2192 "parser.y" +#line 2211 "parser.y" { (yyval.code) = abc___continue__(0, ""); } @@ -4841,7 +5137,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2195 "parser.y" +#line 2214 "parser.y" { (yyval.code) = abc___continue__(0, (yyvsp[(2) - (2)].id)); } @@ -4854,7 +5150,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2199 "parser.y" +#line 2218 "parser.y" {(yyval.code)=0;} } break; @@ -4865,7 +5161,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2200 "parser.y" +#line 2219 "parser.y" {(yyval.code)=(yyvsp[(1) - (1)].code);} } break; @@ -4876,7 +5172,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2201 "parser.y" +#line 2220 "parser.y" {(yyval.code)=(yyvsp[(1) - (1)].code);} } break; @@ -4887,7 +5183,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2202 "parser.y" +#line 2221 "parser.y" {(yyval.code)=code_append((yyvsp[(1) - (2)].code),(yyvsp[(2) - (2)].code));} } break; @@ -4898,7 +5194,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2203 "parser.y" +#line 2222 "parser.y" {(yyval.code)=(yyvsp[(1) - (1)].code);} } break; @@ -4909,7 +5205,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2204 "parser.y" +#line 2223 "parser.y" {(yyval.code)=code_append((yyval.code),(yyvsp[(2) - (2)].code));} } break; @@ -4920,7 +5216,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2206 "parser.y" +#line 2225 "parser.y" { (yyval.code) = abc_getlocal(0, state->switch_var); (yyval.code) = code_append((yyval.code), node_read((yyvsp[(2) - (4)].node)).c); @@ -4941,7 +5237,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2217 "parser.y" +#line 2236 "parser.y" { (yyval.code) = (yyvsp[(3) - (3)].code); } @@ -4954,7 +5250,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2220 "parser.y" +#line 2239 "parser.y" {PASS12 new_state();state->switch_var=alloc_local();} } break; @@ -4965,7 +5261,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2220 "parser.y" +#line 2239 "parser.y" { (yyval.code) = node_read((yyvsp[(4) - (8)].node)).c; (yyval.code) = abc_setlocal((yyval.code), state->switch_var); @@ -5003,7 +5299,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2251 "parser.y" +#line 2270 "parser.y" {PASS12 new_state(); state->exception_name=(yyvsp[(3) - (5)].id); PASS1 new_variable((yyvsp[(3) - (5)].id), 0, 0, 0); @@ -5018,7 +5314,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2256 "parser.y" +#line 2275 "parser.y" { namespace_t name_ns = {ACCESS_PACKAGE, ""}; multiname_t name = {QNAME, &name_ns, 0, (yyvsp[(3) - (9)].id)}; @@ -5048,7 +5344,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2276 "parser.y" +#line 2295 "parser.y" {PASS12 new_state();state->exception_name=0;} } break; @@ -5059,7 +5355,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2276 "parser.y" +#line 2295 "parser.y" { (yyvsp[(4) - (5)].code) = var_block((yyvsp[(4) - (5)].code)); if(!(yyvsp[(4) - (5)].code)) { @@ -5084,7 +5380,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2292 "parser.y" +#line 2311 "parser.y" {(yyval.catch_list).l=list_new();(yyval.catch_list).finally=0;list_append((yyval.catch_list).l,(yyvsp[(1) - (1)].exception));} } break; @@ -5095,7 +5391,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2293 "parser.y" +#line 2312 "parser.y" {(yyval.catch_list)=(yyvsp[(1) - (2)].catch_list);list_append((yyval.catch_list).l,(yyvsp[(2) - (2)].exception));} } break; @@ -5106,7 +5402,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2294 "parser.y" +#line 2313 "parser.y" {(yyval.catch_list)=(yyvsp[(1) - (1)].catch_list);} } break; @@ -5117,7 +5413,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2295 "parser.y" +#line 2314 "parser.y" { (yyval.catch_list) = (yyvsp[(1) - (2)].catch_list); (yyval.catch_list).finally = 0; @@ -5135,7 +5431,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2303 "parser.y" +#line 2322 "parser.y" { (yyval.catch_list).l=list_new(); (yyval.catch_list).finally = 0; @@ -5153,7 +5449,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2312 "parser.y" +#line 2331 "parser.y" {PASS12 new_state(); state->method->has_exceptions=1; state->method->late_binding=1;//for invariant scope_code @@ -5167,7 +5463,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2315 "parser.y" +#line 2334 "parser.y" { code_t*out = abc_nop(0); @@ -5220,7 +5516,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2361 "parser.y" +#line 2380 "parser.y" { (yyval.code)=(yyvsp[(2) - (2)].value).c; (yyval.code)=abc_throw((yyval.code)); @@ -5234,7 +5530,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2365 "parser.y" +#line 2384 "parser.y" { if(!state->exception_name) syntaxerror("re-throw only possible within a catch block"); @@ -5252,7 +5548,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2376 "parser.y" +#line 2395 "parser.y" { new_state(); if(state->method->has_exceptions) { @@ -5272,7 +5568,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2386 "parser.y" +#line 2405 "parser.y" { /* remove getlocal;pushwith from scope code again */ state->method->scope_code = code_cutlast(code_cutlast(state->method->scope_code)); @@ -5296,7 +5592,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2404 "parser.y" +#line 2423 "parser.y" {PASS12 (yyval.id)="package";} } break; @@ -5307,7 +5603,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2405 "parser.y" +#line 2424 "parser.y" {PASS12 (yyval.id)=(yyvsp[(1) - (1)].id);} } break; @@ -5318,7 +5614,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2407 "parser.y" +#line 2426 "parser.y" {PASS12 (yyval.id) = concat3((yyvsp[(1) - (3)].id),".",(yyvsp[(3) - (3)].id));free((yyvsp[(1) - (3)].id));(yyvsp[(1) - (3)].id)=0;} } break; @@ -5329,7 +5625,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2408 "parser.y" +#line 2427 "parser.y" {PASS12 (yyval.id)=strdup((yyvsp[(1) - (1)].id));} } break; @@ -5340,7 +5636,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2410 "parser.y" +#line 2429 "parser.y" {PASS12 startpackage((yyvsp[(2) - (3)].id));free((yyvsp[(2) - (3)].id));(yyvsp[(2) - (3)].id)=0;} } break; @@ -5351,7 +5647,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2411 "parser.y" +#line 2430 "parser.y" {PASS12 endpackage();(yyval.code)=0;} } break; @@ -5362,7 +5658,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2412 "parser.y" +#line 2431 "parser.y" {PASS12 startpackage("");} } break; @@ -5373,7 +5669,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2413 "parser.y" +#line 2432 "parser.y" {PASS12 endpackage();(yyval.code)=0;} } break; @@ -5384,7 +5680,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2435 "parser.y" +#line 2454 "parser.y" { PASS12 slotinfo_t*s = registry_find((yyvsp[(2) - (2)].classinfo)->package, (yyvsp[(2) - (2)].classinfo)->name); @@ -5408,7 +5704,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2449 "parser.y" +#line 2468 "parser.y" { PASS12 if(strncmp("flash.", (yyvsp[(2) - (4)].id), 6) && as3_pass==1) { @@ -5431,7 +5727,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2465 "parser.y" +#line 2484 "parser.y" {PASS12 (yyval.flags).flags=0;(yyval.flags).ns=0;} } break; @@ -5442,7 +5738,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2466 "parser.y" +#line 2485 "parser.y" {PASS12 (yyval.flags)=(yyvsp[(1) - (1)].flags);} } break; @@ -5453,7 +5749,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2467 "parser.y" +#line 2486 "parser.y" {PASS12 (yyval.flags)=(yyvsp[(1) - (1)].flags);} } break; @@ -5464,7 +5760,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2468 "parser.y" +#line 2487 "parser.y" { PASS12 (yyval.flags).flags=(yyvsp[(1) - (2)].flags).flags|(yyvsp[(2) - (2)].flags).flags; @@ -5481,7 +5777,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2475 "parser.y" +#line 2494 "parser.y" {PASS12 (yyval.flags).flags=FLAG_PUBLIC;(yyval.flags).ns=0;} } break; @@ -5492,7 +5788,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2476 "parser.y" +#line 2495 "parser.y" {PASS12 (yyval.flags).flags=FLAG_PRIVATE;(yyval.flags).ns=0;} } break; @@ -5503,7 +5799,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2477 "parser.y" +#line 2496 "parser.y" {PASS12 (yyval.flags).flags=FLAG_PROTECTED;(yyval.flags).ns=0;} } break; @@ -5514,7 +5810,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2478 "parser.y" +#line 2497 "parser.y" {PASS12 (yyval.flags).flags=FLAG_STATIC;(yyval.flags).ns=0;} } break; @@ -5525,7 +5821,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2479 "parser.y" +#line 2498 "parser.y" {PASS12 (yyval.flags).flags=FLAG_DYNAMIC;(yyval.flags).ns=0;} } break; @@ -5536,7 +5832,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2480 "parser.y" +#line 2499 "parser.y" {PASS12 (yyval.flags).flags=FLAG_FINAL;(yyval.flags).ns=0;} } break; @@ -5547,7 +5843,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2481 "parser.y" +#line 2500 "parser.y" {PASS12 (yyval.flags).flags=FLAG_OVERRIDE;(yyval.flags).ns=0;} } break; @@ -5558,7 +5854,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2482 "parser.y" +#line 2501 "parser.y" {PASS12 (yyval.flags).flags=FLAG_NATIVE;(yyval.flags).ns=0;} } break; @@ -5569,7 +5865,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2483 "parser.y" +#line 2502 "parser.y" {PASS12 (yyval.flags).flags=FLAG_PACKAGEINTERNAL;(yyval.flags).ns=0;} } break; @@ -5580,7 +5876,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2484 "parser.y" +#line 2503 "parser.y" {PASS12 (yyval.flags).flags=FLAG_NAMESPACE; (yyval.flags).ns=(yyvsp[(1) - (1)].id); } @@ -5593,7 +5889,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2488 "parser.y" +#line 2507 "parser.y" {PASS12 (yyval.classinfo)=0;} } break; @@ -5604,7 +5900,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2489 "parser.y" +#line 2508 "parser.y" {PASS12 (yyval.classinfo)=(yyvsp[(2) - (2)].classinfo);} } break; @@ -5615,7 +5911,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2491 "parser.y" +#line 2510 "parser.y" {PASS12 (yyval.classinfo_list)=list_new();} } break; @@ -5626,7 +5922,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2492 "parser.y" +#line 2511 "parser.y" {PASS12 (yyval.classinfo_list)=(yyvsp[(2) - (2)].classinfo_list);} } break; @@ -5637,7 +5933,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2494 "parser.y" +#line 2513 "parser.y" {PASS12 (yyval.classinfo_list)=list_new();} } break; @@ -5648,7 +5944,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2495 "parser.y" +#line 2514 "parser.y" {PASS12 (yyval.classinfo_list)=(yyvsp[(2) - (2)].classinfo_list);} } break; @@ -5659,7 +5955,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2499 "parser.y" +#line 2518 "parser.y" {PASS12 startclass(&(yyvsp[(1) - (6)].flags),(yyvsp[(3) - (6)].id),(yyvsp[(4) - (6)].classinfo),(yyvsp[(5) - (6)].classinfo_list));} } break; @@ -5670,7 +5966,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2501 "parser.y" +#line 2520 "parser.y" {PASS12 endclass();(yyval.code)=0;} } break; @@ -5681,7 +5977,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2505 "parser.y" +#line 2524 "parser.y" {PASS12 (yyvsp[(1) - (5)].flags).flags|=FLAG_INTERFACE; startclass(&(yyvsp[(1) - (5)].flags),(yyvsp[(3) - (5)].id),0,(yyvsp[(4) - (5)].classinfo_list));} } @@ -5693,7 +5989,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2508 "parser.y" +#line 2527 "parser.y" {PASS12 endclass();(yyval.code)=0;} } break; @@ -5704,7 +6000,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2517 "parser.y" +#line 2536 "parser.y" {PASS_ALWAYS as3_pass=(yyvsp[(1) - (4)].number_int);} } break; @@ -5715,7 +6011,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2521 "parser.y" +#line 2540 "parser.y" { code_t*c = state->cls->static_init->header; c = code_append(c, (yyvsp[(1) - (1)].code)); @@ -5730,7 +6026,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2532 "parser.y" +#line 2551 "parser.y" { syntaxerror("variable declarations not allowed in interfaces"); } @@ -5743,7 +6039,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2535 "parser.y" +#line 2554 "parser.y" { PASS12 (yyvsp[(1) - (8)].flags).flags |= FLAG_PUBLIC; @@ -5763,7 +6059,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2569 "parser.y" +#line 2624 "parser.y" {PASS12 setslotstate(&(yyvsp[(1) - (2)].flags),(yyvsp[(2) - (2)].token));} } break; @@ -5774,7 +6070,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2569 "parser.y" +#line 2624 "parser.y" {PASS12 (yyval.code)=(yyvsp[(4) - (4)].code);setslotstate(0, 0);} } break; @@ -5785,7 +6081,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2571 "parser.y" +#line 2626 "parser.y" {PASS12 (yyval.code)=0;} } break; @@ -5796,7 +6092,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2572 "parser.y" +#line 2627 "parser.y" {PASS12 (yyval.code)=0;} } break; @@ -5807,7 +6103,7 @@ PASS2 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2575 "parser.y" +#line 2630 "parser.y" { PASS12 int flags = slotstate_flags->flags; @@ -5842,40 +6138,27 @@ PASS12 if(as3_pass == 2) { varinfo_t*info = dict_lookup(global->token2info, (void*)(ptroff_t)as3_tokencount); - /* slot name */ - multiname_t mname = {QNAME, &ns, 0, (yyvsp[(1) - (3)].id)}; - - trait_list_t**traits; + multiname_t mname; code_t**code; - if(!state->cls) { - // global variable - ns.name = state->package; - traits = &global->init->traits; - code = &global->init->method->body->code; - } else if(flags&FLAG_STATIC) { - // static variable - traits = &state->cls->abc->static_traits; - code = &state->cls->static_init->header; - } else { - // instance variable - traits = &state->cls->abc->traits; - code = &state->cls->init->header; - } - - trait_t*t=0; + trait_t*t = add_abc_slot(slotstate_flags, (yyvsp[(1) - (3)].id), &mname, &code); + if((yyvsp[(2) - (3)].classinfo)) { MULTINAME(m, (yyvsp[(2) - (3)].classinfo)); - t = trait_new_member(traits, multiname_clone(&m), multiname_clone(&mname), 0); - } else { - t = trait_new_member(traits, 0, multiname_clone(&mname), 0); + t->type_name = multiname_clone(&m); } info->slot = t->slot_id; + + /* workaround for "VerifyError: Error #1053: Illegal override of ::test2 in C1" + FIXME: is there a way to use slots and still don't have conflicting overrides? + */ + info->slot = t->slot_id = 0; constant_t cval = (yyvsp[(3) - (3)].node)->type->eval((yyvsp[(3) - (3)].node)); if(cval.type!=CONSTANT_UNKNOWN) { /* compile time constant */ t->value = malloc(sizeof(constant_t)); memcpy(t->value, &cval, sizeof(constant_t)); + info->value = constant_clone(t->value); } else { typedcode_t v = node_read((yyvsp[(3) - (3)].node)); /* initalization code (if needed) */ @@ -5884,13 +6167,18 @@ PASS12 c = abc_getlocal_0(c); c = code_append(c, v.c); c = converttype(c, v.t, (yyvsp[(2) - (3)].classinfo)); - c = abc_setslot(c, t->slot_id); + if(!t->slot_id) { + c = abc_initproperty2(c, &mname); + } else { + c = abc_setslot(c, t->slot_id); + } } *code = code_append(*code, c); } if(slotstate_varconst==KW_CONST) { t->kind= TRAIT_CONST; + info->flags |= FLAG_CONST; } } @@ -5905,7 +6193,7 @@ PASS12 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2666 "parser.y" +#line 2713 "parser.y" {(yyval.constant)=0;} } break; @@ -5916,8 +6204,14 @@ PASS12 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2667 "parser.y" - {(yyval.constant)=(yyvsp[(2) - (2)].constant);} +#line 2714 "parser.y" + { + (yyval.constant) = malloc(sizeof(constant_t)); + *(yyval.constant) = node_eval((yyvsp[(2) - (2)].node)); + if((yyval.constant)->type == CONSTANT_UNKNOWN) { + syntaxerror("can't evaluate default parameter value (needs to be a compile-time constant)"); + } +} } break; @@ -5927,7 +6221,7 @@ PASS12 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2670 "parser.y" +#line 2723 "parser.y" {(yyval.constant) = constant_new_int((yyvsp[(1) - (1)].number_int));} } break; @@ -5938,7 +6232,7 @@ PASS12 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2671 "parser.y" +#line 2724 "parser.y" { (yyval.constant) = constant_new_uint((yyvsp[(1) - (1)].number_uint)); } @@ -5951,7 +6245,7 @@ PASS12 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2674 "parser.y" +#line 2727 "parser.y" {(yyval.constant) = constant_new_float((yyvsp[(1) - (1)].number_float));} } break; @@ -5962,7 +6256,7 @@ PASS12 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2675 "parser.y" +#line 2728 "parser.y" {(yyval.constant) = constant_new_string2((yyvsp[(1) - (1)].str).str,(yyvsp[(1) - (1)].str).len);free((char*)(yyvsp[(1) - (1)].str).str);} } break; @@ -5973,7 +6267,7 @@ PASS12 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2676 "parser.y" +#line 2729 "parser.y" {(yyval.constant) = constant_new_true((yyvsp[(1) - (1)].token));} } break; @@ -5984,7 +6278,7 @@ PASS12 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2677 "parser.y" +#line 2730 "parser.y" {(yyval.constant) = constant_new_false((yyvsp[(1) - (1)].token));} } break; @@ -5995,7 +6289,7 @@ PASS12 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2678 "parser.y" +#line 2731 "parser.y" {(yyval.constant) = constant_new_null((yyvsp[(1) - (1)].token));} } break; @@ -6006,7 +6300,7 @@ PASS12 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2679 "parser.y" +#line 2732 "parser.y" {(yyval.constant) = constant_new_undefined((yyvsp[(1) - (1)].token));} } break; @@ -6017,48 +6311,375 @@ PASS12 if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2680 "parser.y" +#line 2733 "parser.y" {(yyval.constant) = constant_new_float(__builtin_nan(""));} } break; - case 178: + case 179: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2695 "parser.y" - { - PASS12 - memset(&(yyval.params),0,sizeof((yyval.params))); -} +#line 2753 "parser.y" + {PASS_ALWAYS if(!xml_level++) tokenizer_begin_xml();} } break; - case 179: + case 180: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2699 "parser.y" - { - PASS12 - (yyval.params)=(yyvsp[(1) - (1)].params); -} +#line 2754 "parser.y" + {PASS_ALWAYS tokenizer_begin_xmltext();} } break; - case 180: + case 181: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2705 "parser.y" - { - PASS12 +#line 2755 "parser.y" + {PASS_ALWAYS if(!--xml_level) tokenizer_end_xml(); else tokenizer_begin_xmltext();} + } + break; + + + + case 182: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 2757 "parser.y" + {PASS_ALWAYS tokenizer_begin_xmltext();} + } + break; + + + + case 183: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 2757 "parser.y" + { + (yyval.id)=strdup("{...}"); + as3_warning("xml string substitution not yet supported"); +} + } + break; + + + + case 184: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 2761 "parser.y" + {PASS_ALWAYS tokenizer_begin_xml();} + } + break; + + + + case 185: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 2761 "parser.y" + { + (yyval.id)=strdup("{...}"); + as3_warning("xml string substitution not yet supported"); +} + } + break; + + + + case 186: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 2765 "parser.y" + {(yyval.id)="";} + } + break; + + + + case 187: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 2766 "parser.y" + { + (yyval.id) = concat2((yyvsp[(1) - (2)].id), "{...}"); +} + } + break; + + + + case 188: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 2769 "parser.y" + {(yyval.id)=concat2((yyvsp[(1) - (2)].id), string_cstr(&(yyvsp[(2) - (2)].str)));} + } + break; + + + + case 189: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 2770 "parser.y" + {(yyval.id)=concat2((yyvsp[(1) - (2)].id), ">");} + } + break; + + + + case 190: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 2772 "parser.y" + {(yyval.id)=concat2((yyvsp[(1) - (2)].id),(yyvsp[(2) - (2)].id));} + } + break; + + + + case 191: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 2773 "parser.y" + {(yyval.id)=concat3((yyvsp[(1) - (3)].id),(yyvsp[(2) - (3)].id),(yyvsp[(3) - (3)].id));free((yyvsp[(1) - (3)].id));free((yyvsp[(2) - (3)].id));free((yyvsp[(3) - (3)].id));} + } + break; + + + + case 192: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 2775 "parser.y" + {(yyval.id)=(yyvsp[(1) - (1)].id);} + } + break; + + + + case 193: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 2776 "parser.y" + {(yyval.id)=(yyvsp[(1) - (1)].id);} + } + break; + + + + case 194: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 2778 "parser.y" + { + (yyval.id) = allocprintf("<%s%s>%s", (yyvsp[(2) - (10)].id), (yyvsp[(3) - (10)].id), (yyvsp[(5) - (10)].id), (yyvsp[(8) - (10)].id)); + free((yyvsp[(2) - (10)].id));free((yyvsp[(3) - (10)].id));free((yyvsp[(5) - (10)].id));free((yyvsp[(8) - (10)].id)); +} + } + break; + + + + case 195: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 2782 "parser.y" + { + (yyval.id) = allocprintf("<%s%s/>", (yyvsp[(2) - (6)].id), (yyvsp[(3) - (6)].id)); +} + } + break; + + + + case 196: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 2785 "parser.y" + { + (yyval.id) = allocprintf("<%s%s>%s%s", (yyvsp[(2) - (11)].id), (yyvsp[(3) - (11)].id), (yyvsp[(5) - (11)].id), (yyvsp[(6) - (11)].id), (yyvsp[(9) - (11)].id)); + free((yyvsp[(2) - (11)].id));free((yyvsp[(3) - (11)].id));free((yyvsp[(5) - (11)].id));free((yyvsp[(6) - (11)].id));free((yyvsp[(9) - (11)].id)); +} + } + break; + + + + case 197: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 2790 "parser.y" + {(yyval.id)=strdup("");} + } + break; + + + + case 198: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 2791 "parser.y" + {(yyval.id)=concat2(" ",(yyvsp[(1) - (1)].id));} + } + break; + + + + case 199: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 2792 "parser.y" + {(yyval.id)=(yyvsp[(1) - (1)].id);} + } + break; + + + + case 200: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 2793 "parser.y" + {(yyval.id)=concat3((yyvsp[(1) - (2)].id)," ",(yyvsp[(2) - (2)].id));free((yyvsp[(1) - (2)].id));free((yyvsp[(2) - (2)].id));} + } + break; + + + + case 201: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 2795 "parser.y" + { + (yyval.id) = strdup("{...}"); +} + } + break; + + + + case 202: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 2798 "parser.y" + { + char* str = string_cstr(&(yyvsp[(3) - (3)].str)); + (yyval.id) = concat2("{...}=",str); +} + } + break; + + + + case 203: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 2802 "parser.y" + { + (yyval.id) = strdup("{...}={...}"); +} + } + break; + + + + case 204: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 2805 "parser.y" + { + (yyval.id) = concat2((yyvsp[(1) - (3)].id),"={...}"); +} + } + break; + + + + case 205: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 2808 "parser.y" + { + char* str = string_cstr(&(yyvsp[(3) - (3)].str)); + (yyval.id)=allocprintf("%s=\"%s\"", (yyvsp[(1) - (3)].id),str); + free(str); + free((yyvsp[(1) - (3)].id));free((char*)(yyvsp[(3) - (3)].str).str); +} + } + break; + + + + case 206: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 2818 "parser.y" + { + PASS12 + memset(&(yyval.params),0,sizeof((yyval.params))); +} + } + break; + + + + case 207: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 2822 "parser.y" + { + PASS12 + (yyval.params)=(yyvsp[(1) - (1)].params); +} + } + break; + + + + case 208: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 2828 "parser.y" + { + PASS12 memset(&(yyval.params),0,sizeof((yyval.params))); (yyval.params).varargs=1; list_append((yyval.params).list, (yyvsp[(2) - (2)].param)); @@ -6068,11 +6689,11 @@ PASS12 - case 181: + case 209: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2711 "parser.y" +#line 2834 "parser.y" { PASS12 (yyval.params) =(yyvsp[(1) - (4)].params); @@ -6084,11 +6705,11 @@ PASS12 - case 182: + case 210: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2719 "parser.y" +#line 2842 "parser.y" { PASS12 (yyval.params) = (yyvsp[(1) - (3)].params); @@ -6099,11 +6720,11 @@ PASS12 - case 183: + case 211: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2724 "parser.y" +#line 2847 "parser.y" { PASS12 memset(&(yyval.params),0,sizeof((yyval.params))); @@ -6114,11 +6735,11 @@ PASS12 - case 184: + case 212: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2730 "parser.y" +#line 2853 "parser.y" { PASS12 (yyval.param) = rfx_calloc(sizeof(param_t)); @@ -6132,11 +6753,11 @@ PASS12 - case 185: + case 213: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2738 "parser.y" +#line 2861 "parser.y" { PASS12 (yyval.param) = rfx_calloc(sizeof(param_t)); @@ -6150,33 +6771,33 @@ PASS12 - case 188: + case 216: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2748 "parser.y" +#line 2871 "parser.y" {PASS12 (yyval.token)=0;} } break; - case 189: + case 217: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2751 "parser.y" +#line 2874 "parser.y" {PASS12 startfunction(&(yyvsp[(1) - (9)].flags),(yyvsp[(3) - (9)].token),(yyvsp[(4) - (9)].id),&(yyvsp[(6) - (9)].params),(yyvsp[(8) - (9)].classinfo));} } break; - case 190: + case 218: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2752 "parser.y" +#line 2875 "parser.y" { PASS1 endfunction(&(yyvsp[(1) - (12)].flags),(yyvsp[(3) - (12)].token),(yyvsp[(4) - (12)].id),&(yyvsp[(6) - (12)].params),0,0); @@ -6196,33 +6817,33 @@ PASS12 - case 192: + case 220: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2768 "parser.y" +#line 2891 "parser.y" {PASS12 (yyval.id)=0;} } break; - case 193: + case 221: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2770 "parser.y" +#line 2893 "parser.y" {PASS12 innerfunction((yyvsp[(2) - (7)].id),&(yyvsp[(4) - (7)].params),(yyvsp[(6) - (7)].classinfo));} } break; - case 194: + case 222: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2771 "parser.y" +#line 2894 "parser.y" { PASS1 endfunction(0,0,(yyvsp[(2) - (10)].id),&(yyvsp[(4) - (10)].params),0,0); @@ -6246,11 +6867,11 @@ PASS12 - case 195: + case 223: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2793 "parser.y" +#line 2916 "parser.y" { PASS1 NEW(unresolvedinfo_t,c); memset(c, 0, sizeof(*c)); @@ -6274,11 +6895,11 @@ PASS12 - case 196: + case 224: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2812 "parser.y" +#line 2935 "parser.y" { PASS1 NEW(unresolvedinfo_t,c); memset(c, 0, sizeof(*c)); @@ -6297,121 +6918,121 @@ PASS12 - case 199: + case 227: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2829 "parser.y" +#line 2952 "parser.y" {PASS12 (yyval.classinfo_list)=list_new();list_append((yyval.classinfo_list), (yyvsp[(1) - (1)].classinfo));} } break; - case 200: + case 228: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2830 "parser.y" +#line 2953 "parser.y" {PASS12 (yyval.classinfo_list)=(yyvsp[(1) - (3)].classinfo_list);list_append((yyval.classinfo_list),(yyvsp[(3) - (3)].classinfo));} } break; - case 201: + case 229: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2832 "parser.y" +#line 2955 "parser.y" {PASS12 (yyval.classinfo)=(yyvsp[(1) - (1)].classinfo);} } break; - case 202: + case 230: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2833 "parser.y" +#line 2956 "parser.y" {PASS12 (yyval.classinfo)=TYPE_ANY;} } break; - case 203: + case 231: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2834 "parser.y" - {PASS12 (yyval.classinfo)=TYPE_ANY;} +#line 2957 "parser.y" + {PASS12 (yyval.classinfo)=TYPE_VOID;} } break; - case 204: + case 232: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2843 "parser.y" +#line 2966 "parser.y" {PASS12 (yyval.classinfo)=(yyvsp[(2) - (2)].classinfo);} } break; - case 205: + case 233: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2844 "parser.y" +#line 2967 "parser.y" {PASS12 (yyval.classinfo)=0;} } break; - case 206: + case 234: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2848 "parser.y" +#line 2971 "parser.y" {(yyval.value_list).cc=0;(yyval.value_list).number=0;} } break; - case 207: + case 235: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2849 "parser.y" +#line 2972 "parser.y" {(yyval.value_list)=(yyvsp[(2) - (3)].value_list);} } break; - case 208: + case 236: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2851 "parser.y" +#line 2974 "parser.y" {(yyval.value_list).cc=0;(yyval.value_list).number=0;} } break; - case 211: + case 239: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2855 "parser.y" +#line 2978 "parser.y" {(yyval.value_list).number=1; (yyval.value_list).cc = (yyvsp[(1) - (1)].value).c; } @@ -6420,22 +7041,22 @@ PASS12 - case 212: + case 240: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2859 "parser.y" +#line 2982 "parser.y" {(yyval.value_list) = (yyvsp[(1) - (2)].value_list);} } break; - case 213: + case 241: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2860 "parser.y" +#line 2983 "parser.y" { (yyval.value_list).number= (yyvsp[(1) - (2)].value_list).number+1; (yyval.value_list).cc = code_append((yyvsp[(1) - (2)].value_list).cc, (yyvsp[(2) - (2)].value).c); @@ -6445,11 +7066,11 @@ PASS12 - case 215: + case 243: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2866 "parser.y" +#line 2989 "parser.y" { typedcode_t v = node_read((yyvsp[(2) - (4)].node)); (yyval.value).c = v.c; @@ -6462,13 +7083,20 @@ PASS12 (yyval.value).c = code_append((yyval.value).c, paramcode); (yyval.value).c = abc_constructprop2((yyval.value).c, name, (yyvsp[(4) - (4)].value_list).number); multiname_destroy(name); - } else if((yyval.value).c->opcode == OPCODE_GETSLOT) { - int slot = (int)(ptroff_t)(yyval.value).c->data[0]; + } else if(TYPE_IS_CLASS(v.t) && v.t->data) { + code_free((yyval.value).c); + classinfo_t*c = v.t->data; + MULTINAME(m, c); + (yyval.value).c = abc_findpropstrict2(0, &m); + (yyval.value).c = code_append((yyval.value).c, paramcode); + (yyval.value).c = abc_constructprop2((yyval.value).c, &m, (yyvsp[(4) - (4)].value_list).number); + /*} else if($$.c->opcode == OPCODE_GETSLOT) { + int slot = (int)(ptroff_t)$$.c->data[0]; trait_t*t = traits_find_slotid(state->cls->abc->traits,slot);//FIXME multiname_t*name = t->name; - (yyval.value).c = code_cutlast((yyval.value).c); - (yyval.value).c = code_append((yyval.value).c, paramcode); - (yyval.value).c = abc_constructprop2((yyval.value).c, name, (yyvsp[(4) - (4)].value_list).number); + $$.c = code_cutlast($$.c); + $$.c = code_append($$.c, paramcode); + $$.c = abc_constructprop2($$.c, name, $4.number);*/ } else { (yyval.value).c = code_append((yyval.value).c, paramcode); (yyval.value).c = abc_construct((yyval.value).c, (yyvsp[(4) - (4)].value_list).number); @@ -6487,11 +7115,11 @@ PASS12 - case 216: + case 244: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2903 "parser.y" +#line 3033 "parser.y" { typedcode_t v = node_read((yyvsp[(1) - (4)].node)); @@ -6508,17 +7136,17 @@ PASS12 (yyval.value).c = code_append((yyval.value).c, paramcode); (yyval.value).c = abc_callproperty2((yyval.value).c, name, (yyvsp[(3) - (4)].value_list).number); multiname_destroy(name); - } else if((yyval.value).c->opcode == OPCODE_GETSLOT && (yyval.value).c->prev->opcode != OPCODE_GETSCOPEOBJECT) { - int slot = (int)(ptroff_t)(yyval.value).c->data[0]; +/* } else if($$.c->opcode == OPCODE_GETSLOT && $$.c->prev->opcode != OPCODE_GETSCOPEOBJECT) { + int slot = (int)(ptroff_t)$$.c->data[0]; trait_t*t = traits_find_slotid(state->cls->abc->traits,slot); if(t->kind!=TRAIT_METHOD) { //ok: flash allows to assign closures to members. } multiname_t*name = t->name; - (yyval.value).c = code_cutlast((yyval.value).c); - (yyval.value).c = code_append((yyval.value).c, paramcode); + $$.c = code_cutlast($$.c); + $$.c = code_append($$.c, paramcode); //$$.c = abc_callmethod($$.c, t->method, len); //#1051 illegal early access binding - (yyval.value).c = abc_callproperty2((yyval.value).c, name, (yyvsp[(3) - (4)].value_list).number); + $$.c = abc_callproperty2($$.c, name, $3.number);*/ } else if((yyval.value).c->opcode == OPCODE_GETSUPER) { multiname_t*name = (yyval.value).c->data[0];(yyval.value).c->data[0]=0; (yyval.value).c = code_cutlast((yyval.value).c); @@ -6533,6 +7161,9 @@ PASS12 if(TYPE_IS_FUNCTION(v.t) && v.t->data) { (yyval.value).t = ((methodinfo_t*)(v.t->data))->return_type; + } else if(TYPE_IS_CLASS(v.t) && v.t->data) { + // calling a class is like a typecast + (yyval.value).t = (classinfo_t*)v.t->data; } else { (yyval.value).c = abc_coerce_a((yyval.value).c); (yyval.value).t = TYPE_ANY; @@ -6543,11 +7174,11 @@ PASS12 - case 217: + case 245: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2950 "parser.y" +#line 3083 "parser.y" { if(!state->cls) syntaxerror("super() not allowed outside of a class"); if(!state->method) syntaxerror("super() not allowed outside of a function"); @@ -6573,11 +7204,11 @@ PASS12 - case 218: + case 246: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2971 "parser.y" +#line 3104 "parser.y" { typedcode_t v = node_read((yyvsp[(2) - (2)].node)); (yyval.value).c = v.c; @@ -6604,11 +7235,11 @@ PASS12 - case 219: + case 247: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2993 "parser.y" +#line 3126 "parser.y" { (yyval.code) = abc_returnvoid(0); } @@ -6617,11 +7248,11 @@ PASS12 - case 220: + case 248: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 2996 "parser.y" +#line 3129 "parser.y" { (yyval.code) = (yyvsp[(2) - (2)].value).c; (yyval.code) = abc_returnvalue((yyval.code)); @@ -6631,11 +7262,11 @@ PASS12 - case 221: + case 249: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3003 "parser.y" +#line 3136 "parser.y" { (yyval.value) = node_read((yyvsp[(1) - (1)].node)); } @@ -6644,11 +7275,11 @@ PASS12 - case 222: + case 250: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3006 "parser.y" +#line 3139 "parser.y" { (yyval.value) = node_read((yyvsp[(1) - (1)].node)); } @@ -6657,11 +7288,11 @@ PASS12 - case 223: + case 251: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3009 "parser.y" +#line 3142 "parser.y" { (yyval.node) = mkmultinode(&node_comma, (yyvsp[(1) - (1)].node)); } @@ -6670,11 +7301,11 @@ PASS12 - case 224: + case 252: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3012 "parser.y" +#line 3145 "parser.y" { (yyval.node) = multinode_extend((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node)); } @@ -6683,11 +7314,11 @@ PASS12 - case 225: + case 253: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3015 "parser.y" +#line 3148 "parser.y" { (yyval.code) = node_exec((yyvsp[(1) - (1)].node)); } @@ -6696,11 +7327,11 @@ PASS12 - case 226: + case 254: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3018 "parser.y" +#line 3151 "parser.y" { (yyval.code) = (yyvsp[(1) - (3)].code); (yyval.code) = code_append((yyval.code), node_exec((yyvsp[(3) - (3)].node))); @@ -6710,36 +7341,91 @@ PASS12 - case 227: + case 255: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3023 "parser.y" +#line 3156 "parser.y" {(yyval.value_list).cc=0;(yyval.value_list).number=0;} } break; - case 228: + case 256: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3024 "parser.y" +#line 3157 "parser.y" {(yyval.value_list)=(yyvsp[(1) - (1)].value_list);} } break; - case 229: + case 257: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 3159 "parser.y" + {(yyval.code)=abc_pushstring(0,(yyvsp[(1) - (1)].id));} + } + break; + + + + case 258: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 3160 "parser.y" + {(yyval.code)=abc_pushstring2(0,&(yyvsp[(1) - (1)].str));} + } + break; + + + + case 259: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 3161 "parser.y" + {syntaxerror("dictionary keys must be strings");} + } + break; + + + + case 260: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 3162 "parser.y" + {syntaxerror("dictionary keys must be strings");} + } + break; + + + + case 261: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3026 "parser.y" +#line 3163 "parser.y" + {syntaxerror("dictionary keys must be strings");} + } + break; + + + + case 262: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 3165 "parser.y" { (yyval.value_list).cc = 0; - (yyval.value_list).cc = code_append((yyval.value_list).cc, (yyvsp[(1) - (3)].value).c); + (yyval.value_list).cc = code_append((yyval.value_list).cc, (yyvsp[(1) - (3)].code)); (yyval.value_list).cc = code_append((yyval.value_list).cc, (yyvsp[(3) - (3)].value).c); (yyval.value_list).number = 2; } @@ -6748,15 +7434,15 @@ PASS12 - case 230: + case 263: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3032 "parser.y" +#line 3171 "parser.y" { (yyval.value_list).cc = (yyvsp[(1) - (5)].value_list).cc; (yyval.value_list).number = (yyvsp[(1) - (5)].value_list).number+2; - (yyval.value_list).cc = code_append((yyval.value_list).cc, (yyvsp[(3) - (5)].value).c); + (yyval.value_list).cc = code_append((yyval.value_list).cc, (yyvsp[(3) - (5)].code)); (yyval.value_list).cc = code_append((yyval.value_list).cc, (yyvsp[(5) - (5)].value).c); } } @@ -6764,77 +7450,77 @@ PASS12 - case 231: + case 264: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3041 "parser.y" +#line 3180 "parser.y" {(yyval.node) = mkcodenode((yyvsp[(1) - (1)].value));} } break; - case 232: + case 265: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3042 "parser.y" +#line 3181 "parser.y" {(yyval.node) = mkcodenode((yyvsp[(1) - (1)].value));} } break; - case 233: + case 266: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3043 "parser.y" +#line 3182 "parser.y" {(yyval.node) = mkcodenode((yyvsp[(1) - (1)].value));} } break; - case 234: + case 267: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3044 "parser.y" +#line 3183 "parser.y" {(yyval.node) = mkcodenode((yyvsp[(1) - (1)].value));} } break; - case 235: + case 268: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3045 "parser.y" +#line 3184 "parser.y" {(yyval.node) = mkcodenode((yyvsp[(1) - (1)].value));} } break; - case 236: + case 269: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3046 "parser.y" - {(yyval.node) = mkcodenode((yyvsp[(1) - (1)].value));} +#line 3185 "parser.y" + {(yyval.node) = (yyvsp[(1) - (1)].node);} } break; - case 237: + case 270: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3048 "parser.y" +#line 3187 "parser.y" { (yyval.node) = mkconstnode((yyvsp[(1) - (1)].constant)); } @@ -6843,27 +7529,65 @@ PASS12 - case 238: + case 271: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 3191 "parser.y" + { + typedcode_t v; + v.c = 0; + multiname_t m = {QNAME, &stdns, 0, "XML"}; + v.c = abc_getlex2(v.c, &m); + v.c = abc_pushstring(v.c, (yyvsp[(1) - (1)].id)); + v.c = abc_construct(v.c, 1); + v.t = TYPE_XML; + (yyval.node) = mkcodenode(v); +} + } + break; + + + + case 272: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 3203 "parser.y" + { + typedcode_t v; + v.c = 0; + multiname_t m = {QNAME, &stdns, 0, "RegExp"}; + if(!(yyvsp[(1) - (1)].regexp).options) { + v.c = abc_getlex2(v.c, &m); + v.c = abc_pushstring(v.c, (yyvsp[(1) - (1)].regexp).pattern); + v.c = abc_construct(v.c, 1); + } else { + v.c = abc_getlex2(v.c, &m); + v.c = abc_pushstring(v.c, (yyvsp[(1) - (1)].regexp).pattern); + v.c = abc_pushstring(v.c, (yyvsp[(1) - (1)].regexp).options); + v.c = abc_construct(v.c, 2); + } + v.t = TYPE_REGEXP; + (yyval.node) = mkcodenode(v); +} + } + break; + + + + case 273: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3053 "parser.y" +#line 3221 "parser.y" { + PASS1 + state->method->need_arguments = 1; + PASS2 typedcode_t v; - v.c = 0; - namespace_t ns = {ACCESS_PACKAGE, ""}; - multiname_t m = {QNAME, &ns, 0, "RegExp"}; - if(!(yyvsp[(1) - (1)].regexp).options) { - v.c = abc_getlex2(v.c, &m); - v.c = abc_pushstring(v.c, (yyvsp[(1) - (1)].regexp).pattern); - v.c = abc_construct(v.c, 1); - } else { - v.c = abc_getlex2(v.c, &m); - v.c = abc_pushstring(v.c, (yyvsp[(1) - (1)].regexp).pattern); - v.c = abc_pushstring(v.c, (yyvsp[(1) - (1)].regexp).options); - v.c = abc_construct(v.c, 2); - } - v.t = TYPE_REGEXP; + v.c = abc_getlocal(0, state->method->need_arguments); + v.t = TYPE_ARRAY; (yyval.node) = mkcodenode(v); } } @@ -6871,11 +7595,11 @@ PASS12 - case 239: + case 274: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3073 "parser.y" +#line 3232 "parser.y" { typedcode_t v; v.c = code_new(); @@ -6889,11 +7613,11 @@ PASS12 - case 240: + case 275: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3083 "parser.y" +#line 3242 "parser.y" { typedcode_t v; v.c = code_new(); @@ -6907,561 +7631,561 @@ PASS12 - case 241: + case 276: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3092 "parser.y" +#line 3251 "parser.y" {(yyval.node) = mknode2(&node_lt,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node));} } break; - case 242: + case 277: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3093 "parser.y" +#line 3252 "parser.y" {(yyval.node) = mknode2(&node_gt,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node));} } break; - case 243: + case 278: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3094 "parser.y" +#line 3253 "parser.y" {(yyval.node) = mknode2(&node_le,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node));} } break; - case 244: + case 279: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3095 "parser.y" +#line 3254 "parser.y" {(yyval.node) = mknode2(&node_ge,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node));} } break; - case 245: + case 280: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3096 "parser.y" +#line 3255 "parser.y" {(yyval.node) = mknode2(&node_eqeq,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node));} } break; - case 246: + case 281: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3097 "parser.y" +#line 3256 "parser.y" {(yyval.node) = mknode2(&node_eqeqeq,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node));} } break; - case 247: + case 282: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3098 "parser.y" +#line 3257 "parser.y" {(yyval.node) = mknode2(&node_noteqeq,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node));} } break; - case 248: + case 283: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3099 "parser.y" +#line 3258 "parser.y" {(yyval.node) = mknode2(&node_noteq,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node));} } break; - case 249: + case 284: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3100 "parser.y" +#line 3259 "parser.y" {(yyval.node) = mknode2(&node_oror,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node));} } break; - case 250: + case 285: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3101 "parser.y" +#line 3260 "parser.y" {(yyval.node) = mknode2(&node_andand,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node));} } break; - case 251: + case 286: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3102 "parser.y" +#line 3261 "parser.y" {(yyval.node) = mknode1(&node_not, (yyvsp[(2) - (2)].node));} } break; - case 252: + case 287: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3103 "parser.y" +#line 3262 "parser.y" {(yyval.node) = mknode1(&node_bitnot, (yyvsp[(2) - (2)].node));} } break; - case 253: + case 288: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3104 "parser.y" +#line 3263 "parser.y" {(yyval.node) = mknode2(&node_bitand, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));} } break; - case 254: + case 289: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3105 "parser.y" +#line 3264 "parser.y" {(yyval.node) = mknode2(&node_bitxor, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));} } break; - case 255: + case 290: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3106 "parser.y" +#line 3265 "parser.y" {(yyval.node) = mknode2(&node_bitor, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));} } break; - case 256: + case 291: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3107 "parser.y" +#line 3266 "parser.y" {(yyval.node) = mknode2(&node_shr, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));} } break; - case 257: + case 292: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3108 "parser.y" +#line 3267 "parser.y" {(yyval.node) = mknode2(&node_ushr, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));} } break; - case 258: + case 293: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3109 "parser.y" +#line 3268 "parser.y" {(yyval.node) = mknode2(&node_shl, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));} } break; - case 259: + case 294: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3110 "parser.y" +#line 3269 "parser.y" {(yyval.node) = mknode2(&node_div, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));} } break; - case 260: + case 295: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3111 "parser.y" +#line 3270 "parser.y" {(yyval.node) = mknode2(&node_mod, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));} } break; - case 261: + case 296: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3112 "parser.y" +#line 3271 "parser.y" {(yyval.node) = mknode2(&node_plus, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));} } break; - case 262: + case 297: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3113 "parser.y" +#line 3272 "parser.y" {(yyval.node) = mknode2(&node_minus, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));} } break; - case 263: + case 298: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3114 "parser.y" +#line 3273 "parser.y" {(yyval.node) = mknode2(&node_multiply, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));} } break; - case 264: + case 299: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3115 "parser.y" +#line 3274 "parser.y" {(yyval.node) = mknode2(&node_in, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));} } break; - case 265: + case 300: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3116 "parser.y" +#line 3275 "parser.y" {(yyval.node) = mknode2(&node_as, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));} } break; - case 266: + case 301: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3117 "parser.y" +#line 3276 "parser.y" {(yyval.node) = mknode2(&node_instanceof, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));} } break; - case 267: + case 302: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3118 "parser.y" +#line 3277 "parser.y" {(yyval.node) = mknode2(&node_is, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));} } break; - case 268: + case 303: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3119 "parser.y" +#line 3278 "parser.y" {(yyval.node) = mknode1(&node_typeof, (yyvsp[(3) - (4)].node));} } break; - case 269: + case 304: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3120 "parser.y" +#line 3279 "parser.y" {(yyval.node) = mknode1(&node_void, (yyvsp[(2) - (2)].node));} } break; - case 270: + case 305: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3121 "parser.y" +#line 3280 "parser.y" { (yyval.node) = mkconstnode(constant_new_undefined());} } break; - case 271: + case 306: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3122 "parser.y" +#line 3281 "parser.y" { (yyval.node)=(yyvsp[(2) - (3)].node);} } break; - case 272: + case 307: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3123 "parser.y" +#line 3282 "parser.y" {(yyval.node) = mknode1(&node_neg, (yyvsp[(2) - (2)].node));} } break; - case 273: + case 308: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3124 "parser.y" +#line 3283 "parser.y" {(yyval.node) = mknode2(&node_arraylookup, (yyvsp[(1) - (4)].node),(yyvsp[(3) - (4)].node));} } break; - case 274: + case 309: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3125 "parser.y" +#line 3284 "parser.y" {(yyval.node) = mknode2(&node_muleq, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));} } break; - case 275: + case 310: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3126 "parser.y" +#line 3285 "parser.y" {(yyval.node) = mknode2(&node_modeq, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));} } break; - case 276: + case 311: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3127 "parser.y" +#line 3286 "parser.y" {(yyval.node) = mknode2(&node_shleq, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));} } break; - case 277: + case 312: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3128 "parser.y" +#line 3287 "parser.y" {(yyval.node) = mknode2(&node_shreq, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));} } break; - case 278: + case 313: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3129 "parser.y" +#line 3288 "parser.y" {(yyval.node) = mknode2(&node_ushreq, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));} } break; - case 279: + case 314: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3130 "parser.y" +#line 3289 "parser.y" { (yyval.node) = mknode2(&node_diveq, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));} } break; - case 280: + case 315: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3131 "parser.y" +#line 3290 "parser.y" { (yyval.node) = mknode2(&node_bitoreq, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));} } break; - case 281: + case 316: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3132 "parser.y" +#line 3291 "parser.y" { (yyval.node) = mknode2(&node_bitxoreq, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));} } break; - case 282: + case 317: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3133 "parser.y" +#line 3292 "parser.y" { (yyval.node) = mknode2(&node_bitandeq, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));} } break; - case 283: + case 318: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3134 "parser.y" +#line 3293 "parser.y" { (yyval.node) = mknode2(&node_pluseq, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));} } break; - case 284: + case 319: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3135 "parser.y" +#line 3294 "parser.y" { (yyval.node) = mknode2(&node_minuseq, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));} } break; - case 285: + case 320: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3136 "parser.y" +#line 3295 "parser.y" { (yyval.node) = mknode2(&node_assign, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));} } break; - case 286: + case 321: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3137 "parser.y" +#line 3296 "parser.y" { (yyval.node) = mknode3(&node_tenary, (yyvsp[(1) - (5)].node), (yyvsp[(3) - (5)].node), (yyvsp[(5) - (5)].node));} } break; - case 287: + case 322: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3139 "parser.y" +#line 3298 "parser.y" { (yyval.node) = mknode1(&node_rplusplus, (yyvsp[(1) - (2)].node));} } break; - case 288: + case 323: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3140 "parser.y" +#line 3299 "parser.y" { (yyval.node) = mknode1(&node_rminusminus, (yyvsp[(1) - (2)].node));} } break; - case 289: + case 324: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3141 "parser.y" +#line 3300 "parser.y" {(yyval.node) = mknode1(&node_lplusplus, (yyvsp[(2) - (2)].node)); } } break; - case 290: + case 325: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3142 "parser.y" +#line 3301 "parser.y" {(yyval.node) = mknode1(&node_lminusminus, (yyvsp[(2) - (2)].node)); } } break; - case 291: + case 326: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3145 "parser.y" +#line 3304 "parser.y" { if(!state->cls->info) syntaxerror("super keyword not allowed outside a class"); classinfo_t*t = state->cls->info->superclass; @@ -7480,86 +8204,274 @@ PASS12 - case 292: + case 327: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3159 "parser.y" +#line 3318 "parser.y" { - // attribute TODO - (yyval.node) = mkdummynode(); - as3_warning("ignored @ operator"); - } + typedcode_t v; + multiname_t m = {MULTINAMEA, 0, &nopackage_namespace_set, (yyvsp[(2) - (2)].id)}; + v.c = abc_getlex2(0, &m); + v.t = TYPE_STRING; + (yyval.node) = mkcodenode(v); +} } break; - case 293: + case 328: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3165 "parser.y" +#line 3326 "parser.y" + {PASS12 new_state();state->xmlfilter=1;} + } + break; + + + + case 329: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 3326 "parser.y" { - // child attribute TODO - (yyval.node) = mkdummynode(); - as3_warning("ignored .@ operator"); - } + PASS1 old_state(); + PASS2 + typedcode_t v = node_read((yyvsp[(1) - (6)].node)); + typedcode_t w = node_read((yyvsp[(5) - (6)].node)); + code_t*c = 0; + int index = alloc_local(); + int result = alloc_local(); + int tmp = alloc_local(); + int xml = alloc_local(); + + c = code_append(c, v.c); + c = abc_checkfilter(c); + c = abc_coerce_a(c); //hasnext2 converts to * + c = abc_setlocal(c, xml); + multiname_t m = {QNAME, &stdns, 0, "XMLList"}; + c = abc_getlex2(c, &m); + c = abc_construct(c, 0); + c = abc_setlocal(c, result); + c = abc_pushbyte(c, 0); + c = abc_setlocal(c, index); + code_t*jmp = c = abc_jump(c, 0); + code_t*loop = c = abc_label(c); + c = abc_getlocal(c, xml); + c = abc_getlocal(c, index); + c = abc_nextvalue(c); + c = abc_dup(c); + c = abc_setlocal(c, tmp); + c = abc_pushwith(c); + c = code_append(c, w.c); + c = abc_popscope(c); + code_t*b = c = abc_iffalse(c, 0); + c = abc_getlocal(c, result); + c = abc_getlocal(c, index); + c = abc_getlocal(c, tmp); + multiname_t m2 = {MULTINAMEL, 0, &nopackage_namespace_set, 0}; + c = abc_setproperty2(c, &m2); + c = b->branch = jmp->branch = abc_nop(c); + c = abc_kill(c, tmp); + c = abc_hasnext2(c, xml, index); + c = abc_iftrue(c, loop); + c = abc_getlocal(c, result); + c = abc_kill(c, xml); + c = abc_kill(c, result); + c = abc_kill(c, index); + + c = var_block(c); + old_state(); + typedcode_t r; + r.c = c; + r.t = TYPE_XMLLIST; + (yyval.node) = mkcodenode(r); +} } break; - case 294: + case 330: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3171 "parser.y" +#line 3380 "parser.y" + {(yyval.id)=(yyvsp[(1) - (1)].id);} + } + break; + + + + case 331: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 3381 "parser.y" + {(yyval.id)=(char*)(yyvsp[(1) - (1)].id);} + } + break; + + + + case 333: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 3383 "parser.y" + {(yyval.id)="*";} + } + break; + + + + case 334: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 3385 "parser.y" { - // namespace declaration TODO - (yyval.node) = mkdummynode(); - as3_warning("ignored :: operator"); - } + typedcode_t v = node_read((yyvsp[(1) - (5)].node)); + typedcode_t w = node_read(resolve_identifier((yyvsp[(3) - (5)].id))); + v.c = code_append(v.c, w.c); + if(!TYPE_IS_NAMESPACE(w.t)) { + as3_softwarning("%s might not be a namespace", (yyvsp[(3) - (5)].id)); + } + v.c = converttype(v.c, w.t, TYPE_NAMESPACE); + multiname_t m = {RTQNAME, 0, 0, (yyvsp[(5) - (5)].id)}; + v.c = abc_getproperty2(v.c, &m); + if(TYPE_IS_XML(v.t)) { + v.t = TYPE_XMLLIST; + } else { + v.c = abc_coerce_a(v.c); + v.t = TYPE_ANY; + } + (yyval.node) = mkcodenode(v); +} } break; - case 295: + case 335: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3177 "parser.y" +#line 3403 "parser.y" { - // descendants TODO - (yyval.node) = mkdummynode(); - as3_warning("ignored .. operator"); - } + typedcode_t v = node_read((yyvsp[(1) - (3)].node)); + multiname_t m = {MULTINAME, 0, &nopackage_namespace_set, (yyvsp[(3) - (3)].id)}; + v.c = abc_getdescendants2(v.c, &m); + v.t = TYPE_XMLLIST; + (yyval.node) = mkcodenode(v); +} } break; - case 296: + case 336: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3183 "parser.y" +#line 3410 "parser.y" { - // filter TODO - (yyval.node) = mkdummynode(); - as3_warning("ignored .() operator"); - } + typedcode_t v = node_read((yyvsp[(1) - (5)].node)); + typedcode_t w = node_read((yyvsp[(4) - (5)].node)); + multiname_t m = {MULTINAMEL, 0, &nopackage_namespace_set, 0}; + v.c = code_append(v.c, w.c); + v.c = converttype(w.c, w.t, TYPE_STRING); + v.c = abc_getproperty2(v.c, &m); + v.t = TYPE_XMLLIST; + (yyval.node) = mkcodenode(v); +} } break; - case 297: + case 337: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 3421 "parser.y" + { + typedcode_t v = node_read((yyvsp[(1) - (4)].node)); + multiname_t m = {MULTINAMEA, 0, &nopackage_namespace_set, (yyvsp[(4) - (4)].id)}; + v.c = abc_getproperty2(v.c, &m); + v.t = TYPE_STRING; + (yyval.node) = mkcodenode(v); +} + } + break; + + + + case 338: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 3428 "parser.y" + { + typedcode_t v = node_read((yyvsp[(1) - (4)].node)); + multiname_t m = {MULTINAMEA, 0, &nopackage_namespace_set, (yyvsp[(4) - (4)].id)}; + v.c = abc_getdescendants2(v.c, &m); + v.t = TYPE_STRING; + (yyval.node) = mkcodenode(v); +} + } + break; + + + + case 339: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 3435 "parser.y" + { + typedcode_t v = node_read((yyvsp[(1) - (6)].node)); + typedcode_t w = node_read((yyvsp[(5) - (6)].node)); + multiname_t m = {MULTINAMELA, 0, &nopackage_namespace_set, 0}; + v.c = code_append(v.c, w.c); + v.c = converttype(w.c, w.t, TYPE_STRING); + v.c = abc_getproperty2(v.c, &m); + v.t = TYPE_STRING; + (yyval.node) = mkcodenode(v); +} + } + break; + + + + case 340: + if(as3_pass==2) { + +/* Line 1464 of skeleton.m4 */ +#line 3445 "parser.y" + { + typedcode_t v = node_read((yyvsp[(1) - (6)].node)); + typedcode_t w = node_read((yyvsp[(5) - (6)].node)); + multiname_t m = {MULTINAMELA, 0, &nopackage_namespace_set, 0}; + v.c = code_append(v.c, w.c); + v.c = converttype(w.c, w.t, TYPE_STRING); + v.c = abc_getdescendants2(v.c, &m); + v.t = TYPE_STRING; + (yyval.node) = mkcodenode(v); +} + } + break; + + + + case 341: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3196 "parser.y" +#line 3456 "parser.y" { typedcode_t v1 = node_read((yyvsp[(1) - (3)].node)); (yyval.value).c = v1.c; @@ -7569,7 +8481,12 @@ PASS12 t = t->data; is_static = 1; } - if(t) { + if(TYPE_IS_XML(t)) { + multiname_t m = {MULTINAME, 0, &nopackage_namespace_set, (yyvsp[(3) - (3)].id)}; + (yyval.value).c = abc_getproperty2((yyval.value).c, &m); + (yyval.value).c = abc_coerce_a((yyval.value).c); + (yyval.value).t = TYPE_XMLLIST; + } else if(t) { if(t->subtype==INFOTYPE_UNRESOLVED) { syntaxerror("syntaxerror: trying to resolve property '%s' on incomplete object '%s'", (yyvsp[(3) - (3)].id), t->name); } @@ -7581,9 +8498,8 @@ PASS12 (yyval.value).c = abc_getslot((yyval.value).c, f->slot); } else { if(!f) { - as3_warning("Access of undefined property '%s' in %s", (yyvsp[(3) - (3)].id), t->name); + as3_softwarning("Access of undefined property '%s' in %s", (yyvsp[(3) - (3)].id), t->name); } - MEMBER_MULTINAME(m, f, (yyvsp[(3) - (3)].id)); (yyval.value).c = abc_getproperty2((yyval.value).c, &m); } @@ -7591,6 +8507,7 @@ PASS12 (yyval.value).t = slotinfo_gettype((slotinfo_t*)f); if(!(yyval.value).t) (yyval.value).c = abc_coerce_a((yyval.value).c); + } else if(v1.c && v1.c->opcode == OPCODE___PUSHPACKAGE__) { string_t*package = v1.c->data[0]; char*package2 = concat3(package->str, ".", (yyvsp[(3) - (3)].id)); @@ -7610,7 +8527,7 @@ PASS12 /* when resolving a property on an unknown type, we do know the name of the property (and don't seem to need the package), but we need to make avm2 try out all access modes */ - as3_warning("Resolving %s on unknown type", (yyvsp[(3) - (3)].id)); + as3_softwarning("Resolving %s on unknown type", (yyvsp[(3) - (3)].id)); multiname_t m = {MULTINAME, 0, &nopackage_namespace_set, (yyvsp[(3) - (3)].id)}; (yyval.value).c = abc_getproperty2((yyval.value).c, &m); (yyval.value).c = abc_coerce_a((yyval.value).c); @@ -7622,11 +8539,11 @@ PASS12 - case 298: + case 342: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3254 "parser.y" +#line 3634 "parser.y" { PASS1 /* Queue unresolved identifiers for checking against the parent @@ -7636,113 +8553,31 @@ PASS12 etc. which is *correct* because local variables of the parent function would shadow those. */ - if(state->method->inner && !find_variable(state, (yyvsp[(1) - (1)].id))) { - unknown_variable((yyvsp[(1) - (1)].id)); - } - - /* let the compiler know that it might want to check the current directory/package - for this identifier- maybe there's a file $1.as defining $1. */ - as3_schedule_class_noerror(state->package, (yyvsp[(1) - (1)].id)); - PASS2 - - (yyval.value).t = 0; - (yyval.value).c = 0; - slotinfo_t*a = 0; - memberinfo_t*f = 0; - - variable_t*v; - /* look at variables */ - if((v = find_variable(state, (yyvsp[(1) - (1)].id)))) { - // $1 is a local variable - (yyval.value).c = abc_getlocal((yyval.value).c, v->index); - (yyval.value).t = v->type; - break; - } - if((v = find_slot(state, (yyvsp[(1) - (1)].id)))) { - (yyval.value).c = abc_getscopeobject((yyval.value).c, 1); - (yyval.value).c = abc_getslot((yyval.value).c, v->index); - (yyval.value).t = v->type; - break; - } - - int i_am_static = (state->method && state->method->info)?(state->method->info->flags&FLAG_STATIC):FLAG_STATIC; - - /* look at current class' members */ - if(!state->method->inner && - state->cls && - (f = findmember_nsset(state->cls->info, (yyvsp[(1) - (1)].id), 1)) && - (f->flags&FLAG_STATIC) >= i_am_static) - { - // $1 is a function in this class - int var_is_static = (f->flags&FLAG_STATIC); - if(f->kind == INFOTYPE_METHOD) { - (yyval.value).t = TYPE_FUNCTION(f); - } else { - (yyval.value).t = f->type; - } - if(var_is_static && !i_am_static) { - /* access to a static member from a non-static location. - do this via findpropstrict: - there doesn't seem to be any non-lookup way to access - static properties of a class */ - state->method->late_binding = 1; - (yyval.value).t = f->type; - namespace_t ns = {f->access, f->package}; - multiname_t m = {QNAME, &ns, 0, (yyvsp[(1) - (1)].id)}; - (yyval.value).c = abc_findpropstrict2((yyval.value).c, &m); - (yyval.value).c = abc_getproperty2((yyval.value).c, &m); - break; - } else if(f->slot>0) { - (yyval.value).c = abc_getlocal_0((yyval.value).c); - (yyval.value).c = abc_getslot((yyval.value).c, f->slot); - break; - } else { - namespace_t ns = {f->access, f->package}; - multiname_t m = {QNAME, &ns, 0, (yyvsp[(1) - (1)].id)}; - (yyval.value).c = abc_getlocal_0((yyval.value).c); - (yyval.value).c = abc_getproperty2((yyval.value).c, &m); - break; + if(!find_variable(state, (yyvsp[(1) - (1)].id))) { + if(state->method->inner) { + unknown_variable((yyvsp[(1) - (1)].id)); } - } - - /* look at actual classes, in the current package and imported */ - if((a = find_class((yyvsp[(1) - (1)].id)))) { - (yyval.value) = push_class(a); - break; + /* let the compiler know that it might want to check the current directory/package + for this identifier- maybe there's a file $1.as defining $1. */ + as3_schedule_class_noerror(state->package, (yyvsp[(1) - (1)].id)); } + + (yyval.node) = 0; + PASS2 - /* look through package prefixes */ - if(dict_contains(state->import_toplevel_packages, (yyvsp[(1) - (1)].id)) || - registry_ispackage((yyvsp[(1) - (1)].id))) { - (yyval.value).c = abc___pushpackage__((yyval.value).c, (yyvsp[(1) - (1)].id)); - (yyval.value).t = 0; - break; - } - - /* unknown object, let the avm2 resolve it */ - if(1) { - //as3_softwarning("Couldn't resolve '%s', doing late binding", $1); - as3_warning("Couldn't resolve '%s', doing late binding", (yyvsp[(1) - (1)].id)); - state->method->late_binding = 1; - - multiname_t m = {MULTINAME, 0, &nopackage_namespace_set, (yyvsp[(1) - (1)].id)}; - - (yyval.value).t = 0; - (yyval.value).c = abc_findpropstrict2((yyval.value).c, &m); - (yyval.value).c = abc_getproperty2((yyval.value).c, &m); - } + (yyval.node) = resolve_identifier((yyvsp[(1) - (1)].id)); } } break; - case 299: + case 343: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3363 "parser.y" +#line 3670 "parser.y" { PASS12 NEW(namespace_decl_t,n); @@ -7755,11 +8590,11 @@ PASS12 - case 300: + case 344: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3370 "parser.y" +#line 3677 "parser.y" { PASS12 NEW(namespace_decl_t,n); @@ -7772,11 +8607,11 @@ PASS12 - case 301: + case 345: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3377 "parser.y" +#line 3684 "parser.y" { PASS12 NEW(namespace_decl_t,n); @@ -7789,11 +8624,11 @@ PASS12 - case 302: + case 346: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3384 "parser.y" +#line 3691 "parser.y" { PASS12 trie_put(active_namespaces, (yyvsp[(2) - (2)].namespace_decl)->name, (void*)(yyvsp[(2) - (2)].namespace_decl)->url); @@ -7805,6 +8640,13 @@ PASS12 ns.access = ACCESS_NAMESPACE; ns.name = (yyvsp[(2) - (2)].namespace_decl)->url; var->value = constant_new_namespace(&ns); + + if(as3_pass==2) { + MULTINAME(m, TYPE_NAMESPACE); + trait_t*t = add_abc_slot(&(yyvsp[(1) - (2)].flags), (yyvsp[(2) - (2)].namespace_decl)->name, 0, 0); + t->value = var->value; + t->type_name = multiname_clone(&m); + } (yyval.code)=0; } @@ -7813,11 +8655,11 @@ PASS12 - case 303: + case 347: if(as3_pass==2) { /* Line 1464 of skeleton.m4 */ -#line 3408 "parser.y" +#line 3713 "parser.y" { PASS12 const char*url = (yyvsp[(3) - (3)].classinfo)->name; @@ -7829,7 +8671,7 @@ PASS12 syntaxerror("Couldn't resolve namespace %s", (yyvsp[(3) - (3)].classinfo)->name); } - if(!s || s->kind != INFOTYPE_SLOT) + if(!s || s->kind != INFOTYPE_VAR) syntaxerror("%s.%s is not a public namespace (%d)", (yyvsp[(3) - (3)].classinfo)->package, (yyvsp[(3) - (3)].classinfo)->name, s?s->kind:-1); if(!s->value || !NS_TYPE(s->value->type)) syntaxerror("%s.%s is not a namespace", (yyvsp[(3) - (3)].classinfo)->package, (yyvsp[(3) - (3)].classinfo)->name); @@ -7846,7 +8688,7 @@ PASS12 /* Line 1464 of skeleton.m4 */ -#line 7850 "parser.tab.c" +#line 8692 "parser.tab.c" default: break; } YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);