tidied up parameter passing
[swftools.git] / lib / as3 / parser.tab.c
index 7069fc3..cbba264 100644 (file)
@@ -1,5 +1,5 @@
 
-/* A Bison parser, made by GNU Bison 2.4.  */
+/* A Bison parser, made by GNU Bison 2.4.1.  */
 
 /* Skeleton implementation for Bison's Yacc-like parsers in C
    
@@ -46,7 +46,7 @@
 #define YYBISON 1
 
 /* Bison version.  */
-#define YYBISON_VERSION "2.4"
+#define YYBISON_VERSION "2.4.1"
 
 /* Skeleton name.  */
 #define YYSKELETON_NAME "./skeleton.m4"
@@ -126,21 +126,21 @@ extern int a3_lex();
       know about them.  */
    enum yytokentype {
      T_IDENTIFIER = 258,
-     T_NAMESPACE = 259,
-     T_STRING = 260,
-     T_REGEXP = 261,
-     T_EMPTY = 262,
-     T_INT = 263,
-     T_UINT = 264,
-     T_FLOAT = 265,
-     T_FOR = 266,
-     T_WHILE = 267,
-     T_DO = 268,
-     T_SWITCH = 269,
-     KW_IMPLEMENTS = 270,
-     KW_NAMESPACE = 271,
-     KW_PACKAGE = 272,
-     KW_PROTECTED = 273,
+     T_STRING = 259,
+     T_REGEXP = 260,
+     T_EMPTY = 261,
+     T_INT = 262,
+     T_UINT = 263,
+     T_FLOAT = 264,
+     T_FOR = 265,
+     T_WHILE = 266,
+     T_DO = 267,
+     T_SWITCH = 268,
+     KW_IMPLEMENTS = 269,
+     KW_NAMESPACE = 270,
+     KW_PACKAGE = 271,
+     KW_PROTECTED = 272,
+     KW_ARGUMENTS = 273,
      KW_PUBLIC = 274,
      KW_PRIVATE = 275,
      KW_USE = 276,
@@ -184,52 +184,54 @@ extern int a3_lex();
      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_DEFAULT_XML = 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
 
@@ -278,7 +280,7 @@ tokenunion
 
 
 /* Line 223 of skeleton.m4  */
-#line 282 "parser.tab.c"
+#line 284 "parser.tab.c"
 } YYSTYPE;
 # define YYSTYPE_IS_TRIVIAL 1
 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
@@ -289,7 +291,7 @@ tokenunion
 /* Copy the second part of user declarations.  */
 
 /* Line 273 of skeleton.m4  */
-#line 273 "parser.y"
+#line 274 "parser.y"
 
 
 static int a3_error(char*s)
@@ -341,11 +343,12 @@ typedef struct _classstate {
     /* class data */
     classinfo_t*info;
     abc_class_t*abc;
-   
+
     methodstate_t*init;
     methodstate_t*static_init;
     //code_t*init;
     //code_t*static_init;
+    parsedclass_t*dependencies;
 
     char has_constructor;
 } classstate_t;
@@ -358,16 +361,21 @@ struct _methodstate {
     char is_constructor;
     char has_super;
     char is_global;
+    char is_static;
     int variable_count;
 
     dict_t*unresolved_variables;
+    dict_t*allvars; // all variables (in all sublevels, but not for inner functions)
 
     char inner;
     char uses_parent_function;
+    char no_variable_scoping;
     int uses_slots;
     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
@@ -381,6 +389,23 @@ struct _methodstate {
     methodstate_list_t*innerfunctions;
 };
 
+methodstate_t*methodstate_new()
+{
+    NEW(methodstate_t,m);
+    m->allvars = dict_new();
+    return m;
+}
+void methodstate_destroy(methodstate_t*m) 
+{
+    dict_destroy(m->unresolved_variables); m->unresolved_variables = 0;
+    list_free(m->innerfunctions);m->innerfunctions=0;
+
+    if(m->allvars) {
+        DICT_ITERATE_DATA(m->allvars, void*, data) {free(data);}
+        m->allvars = 0;
+    }
+}
+
 typedef struct _state {
     struct _state*old;
     int level;
@@ -390,10 +415,12 @@ typedef struct _state {
     dict_t*import_toplevel_packages;
     dict_t*imports;
 
+    dict_t*namespaces;
     namespace_list_t*active_namespace_urls;
     
     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;
@@ -403,7 +430,6 @@ typedef struct _state {
     int switch_var;
     
     dict_t*vars;
-    dict_t*allvars; // also contains variables from sublevels
 } state_t;
 
 typedef struct _global {
@@ -423,12 +449,19 @@ static state_t* state = 0;
 
 DECLARE_LIST(state);
 
+/* 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; \
@@ -455,8 +488,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};
@@ -490,7 +523,7 @@ static void new_state()
     state->old = oldstate;
     state->new_vars = 0;
 
-    trie_remember(active_namespaces);
+    state->namespaces = dict_new();
    
     if(oldstate)
         state->active_namespace_urls = list_clone(oldstate->active_namespace_urls);
@@ -508,13 +541,6 @@ static void state_destroy(state_t*state)
     if(state->vars) {
         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;
@@ -524,8 +550,6 @@ static void state_destroy(state_t*state)
 
 static void old_state()
 {
-    trie_rollback(active_namespaces);
-
     if(!state || !state->old)
         syntaxerror("invalid nesting");
     state_t*leaving = state;
@@ -533,8 +557,7 @@ static void old_state()
     state = state->old;
 
     if(as3_pass>1 && leaving->method && leaving->method != state->method && !leaving->method->inner) {
-        free(leaving->method);
-        leaving->method=0;
+        methodstate_destroy(leaving->method);leaving->method=0;
     }
     if(as3_pass>1 && leaving->cls && leaving->cls != state->cls) {
         free(leaving->cls);
@@ -546,7 +569,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;
@@ -556,11 +579,8 @@ void initialize_file(char*filename)
         syntaxerror("invalid call to initialize_file during parsing of another file");
     }
     
-    active_namespaces = trie_new();
-
     new_state();
     state->package = internal_filename_package = strdup(filename);
-    state->allvars = dict_new();
     
     global->token2info = dict_lookup(global->file2token2info, 
                                      current_filename // use long version
@@ -574,13 +594,14 @@ void initialize_file(char*filename)
         state->method = rfx_calloc(sizeof(methodstate_t));
         dict_put(global->token2info, (void*)(ptroff_t)as3_tokencount, state->method);
         state->method->late_binding = 1; // init scripts use getglobalscope, so we need a getlocal0/pushscope
+       state->method->allvars = dict_new();
     } else {
         state->method = dict_lookup(global->token2info, (void*)(ptroff_t)as3_tokencount);
+        state->method->variable_count = 0;
         if(!state->method)
             syntaxerror("internal error: skewed tokencount");
-        function_initvars(state->method, 0, 0, 1);
-        global->classinit = abc_initscript(global->file);
-        global->init = abc_initscript(global->file);
+        function_initvars(state->method, 0, 0, 0, 1);
+        global->init = 0;
     }
 }
 
@@ -592,11 +613,13 @@ 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;
-        free(state->method);state->method=0;
+        //if(global->init->method->body->code || global->init->traits) {
+        if(global->init) {
+            code_t*c = wrap_function(header, 0, global->init->method->body->code);
+            global->init->method->body->code = abc_returnvoid(c);
+            free(state->method);state->method=0;
+        }
     }
 
     //free(state->package);state->package=0; // used in registry
@@ -610,6 +633,7 @@ void initialize_parser()
     global->file->flags &= ~ABCFILE_LAZY;
     global->file2token2info = dict_new();
     global->token2info = 0;
+    global->classinit = abc_initscript(global->file);
 }
 
 void* finish_parser()
@@ -626,26 +650,31 @@ typedef struct _variable {
     int index;
     classinfo_t*type;
     char init;
+    char kill;
     char is_parameter;
     methodstate_t*is_inner_method;
 } variable_t;
 
-static variable_t* find_variable(state_t*s, char*name)
+static variable_t* find_variable(state_t*s, const char*name)
 {
-    state_t*top = s;
-    while(s) {
-        variable_t*v = 0;
-        v = dict_lookup(s->vars, name);
-        if(v) return v;
-        if(s->new_vars) break;
-        s = s->old;
+    if(s->method->no_variable_scoping) {
+        return dict_lookup(s->method->allvars, name);
+    } else {
+        state_t*top = s;
+        while(s) {
+            variable_t*v = 0;
+            v = dict_lookup(s->vars, name);
+            if(v) return v;
+            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)
+static variable_t* find_slot(methodstate_t*m, const char*name)
 {
-    if(s->method && s->method->slots)
-        return dict_lookup(s->method->slots, name);
+    if(m && m->slots)
+        return dict_lookup(m->slots, name);
     return 0;
 }
 
@@ -664,6 +693,7 @@ static char variable_exists(char*name)
 
 static code_t*defaultvalue(code_t*c, classinfo_t*type)
 {
+    parserassert(!type || type->kind!=INFOTYPE_UNRESOLVED);
     if(TYPE_IS_INT(type)) {
        c = abc_pushbyte(c, 0);
     } else if(TYPE_IS_UINT(type)) {
@@ -672,6 +702,9 @@ static code_t*defaultvalue(code_t*c, classinfo_t*type)
        c = abc_pushnan(c);
     } else if(TYPE_IS_BOOLEAN(type)) {
        c = abc_pushfalse(c);
+    } else if(TYPE_IS_STRING(type)) {
+       c = abc_pushnull(c);
+       c = abc_coerce_s(c);
     } else if(!type) {
        //c = abc_pushundefined(c);
         syntaxerror("internal error: can't generate default value for * type");
@@ -688,29 +721,47 @@ static int alloc_local()
     return state->method->variable_count++;
 }
 
-static variable_t* new_variable2(const char*name, classinfo_t*type, char init, char maybeslot)
+static variable_t* new_variable2(methodstate_t*method, const char*name, classinfo_t*type, char init, char maybeslot)
 {
     if(maybeslot) {
-        variable_t*v = find_slot(state, name);
-        if(v)
+        variable_t*v = find_slot(method, name);
+        if(v) {
+            alloc_local(); 
             return v;
+        }
     }
 
     NEW(variable_t, v);
     v->index = alloc_local();
     v->type = type;
-    v->init = init;
+    v->init = v->kill = init;
  
     if(name) {
-        dict_put(state->vars, name, v);
-        dict_put(state->allvars, name, v);
+        if(!method->no_variable_scoping) 
+        {
+            if(dict_contains(state->vars, name)) {
+                syntaxerror("variable %s already defined", name);
+            }
+            dict_put(state->vars, name, v);
+        }
+        if(method->no_variable_scoping && 
+           as3_pass==2 && 
+           dict_contains(state->method->allvars, name)) 
+        {
+            variable_t*v = dict_lookup(state->method->allvars, name);
+            if(v->type != type && (!v->type || v->type->kind!=INFOTYPE_UNRESOLVED)) {
+                syntaxerror("variable %s already defined.", name);
+           }
+            return v;
+        }
+        dict_put(state->method->allvars, name, v);
     }
 
     return v;
 }
-static int new_variable(const char*name, classinfo_t*type, char init, char maybeslot)
+static int new_variable(methodstate_t*method, const char*name, classinfo_t*type, char init, char maybeslot)
 {
-    return new_variable2(name, type, init, maybeslot)->index;
+    return new_variable2(method, name, type, init, maybeslot)->index;
 }
 
 #define TEMPVARNAME "__as3_temp__"
@@ -721,28 +772,23 @@ int gettempvar()
     if(v) 
         i = v->index;
     else
-        i = new_variable(TEMPVARNAME, 0, 0, 0);
+        i = new_variable(state->method, TEMPVARNAME, 0, 0, 0);
     parserassert(i);
     return i;
 }
 
-static code_t* var_block(code_t*body) 
+static code_t* var_block(code_t*body, dict_t*vars) 
 {
     code_t*c = 0;
     code_t*k = 0;
     int t;
-    int num=0;
-    for(t=0;t<state->vars->hashsize;t++) {
-        dictentry_t*e = state->vars->slots[t];
-        while(e) {
-            variable_t*v = (variable_t*)e->data;
-            if(v->type && v->init) {
-                c = defaultvalue(c, v->type);
-                c = abc_setlocal(c, v->index);
-                k = abc_kill(k, v->index); 
-                num++;
-            }
-            e = e->next;
+    DICT_ITERATE_DATA(vars, variable_t*, v) {
+        if(v->type && v->init) {
+            c = defaultvalue(c, v->type);
+            c = abc_setlocal(c, v->index);
+        }
+        if(v->type && v->kill) {
+            k = abc_kill(k, v->index); 
         }
     }
 
@@ -780,15 +826,16 @@ static void unknown_variable(char*name)
 
 static code_t* add_scope_code(code_t*c, methodstate_t*m, char init)
 {
-    if(m->uses_slots || (m->late_binding && !m->inner)) { //???? especially inner functions need the pushscope
+    if(m->uses_slots || m->innerfunctions || (m->late_binding && !m->inner)) {
         c = abc_getlocal_0(c);
         c = abc_pushscope(c);
     }
     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);
@@ -855,7 +902,7 @@ static code_t* method_header(methodstate_t*m)
 static code_t* wrap_function(code_t*c,code_t*header, code_t*body)
 {
     c = code_append(c, header);
-    c = code_append(c, var_block(body));
+    c = code_append(c, var_block(body, state->method->no_variable_scoping?state->method->allvars:state->vars));
     /* append return if necessary */
     if(!c || (c->opcode != OPCODE_RETURNVOID && 
               c->opcode != OPCODE_RETURNVALUE)) {
@@ -882,6 +929,29 @@ static void endpackage()
 #define FLAG_PACKAGEINTERNAL 2048
 #define FLAG_NAMESPACE 4096
 
+static slotinfo_t* find_class(const char*name);
+
+const char* lookup_namespace(const char*name)
+{
+    state_t*s = state;
+    while(s) {
+       const char*url = dict_lookup(s->namespaces, name);
+       if(url) 
+           return url;
+       s = s->old;
+    }
+    varinfo_t*a;
+    registry_find(state->package, name);
+    if(( a = (varinfo_t*)find_class(name) )) {
+       if(a->kind == INFOTYPE_VAR) {
+           if(!a->value || !NS_TYPE(a->value->type)) 
+               syntaxerror("%s.%s is not a namespace", a->package, a->name);
+           return a->value->ns->name;
+       }
+    }
+    return 0;
+}
+
 static namespace_t modifiers2access(modifiers_t*mod)
 {
     namespace_t ns;
@@ -891,14 +961,14 @@ static namespace_t modifiers2access(modifiers_t*mod)
         if(mod->flags&(FLAG_PRIVATE|FLAG_PROTECTED|FLAG_PACKAGEINTERNAL)) 
             syntaxerror("invalid combination of access levels and namespaces");
         ns.access = ACCESS_NAMESPACE;
-        state_t*s = state;
-        const char*url = (const char*)trie_lookup(active_namespaces, mod->ns);
-        if(!url) {
-            /* shouldn't happen- the tokenizer only reports something as a namespace
-               if it was already registered */
-            trie_dump(active_namespaces);
-            syntaxerror("unknown namespace: %s", mod->ns);
-        }
+       const char*url = lookup_namespace(mod->ns);
+       if(!url) {
+           if(as3_pass>1) {
+               syntaxerror("unknown namespace: %s (pass %d)", mod->ns, as3_pass);
+           } else {
+               url = mod->ns;
+           }
+       }
         ns.name = url;
     } else if(mod->flags&FLAG_PUBLIC)  {
         if(mod->flags&(FLAG_PRIVATE|FLAG_PROTECTED|FLAG_PACKAGEINTERNAL)) 
@@ -917,68 +987,86 @@ static namespace_t modifiers2access(modifiers_t*mod)
     }
     return ns;
 }
-static slotinfo_t* find_class(const char*name);
 
-static memberinfo_t* findmember_nsset(classinfo_t*cls, const char*name, char recurse)
+static memberinfo_t* findmember_nsset(classinfo_t*cls, const char*name, char recurse, char is_static)
 {
-    return registry_findmember_nsset(cls, state->active_namespace_urls, name, recurse);
+    return registry_findmember_nsset(cls, state->active_namespace_urls, name, recurse, is_static);
+}
+
+static void innerfunctions2vars(methodstate_t*m)
+{
+    methodstate_list_t*l = m->innerfunctions;
+    while(l) {
+        methodstate_t*m = l->methodstate;
+        
+        variable_t* v = new_variable2(state->method, m->info->name, TYPE_FUNCTION(m->info), 0, 0);
+        m->var_index = v->index;
+        if(m->is_a_slot)
+            m->slot_index = m->is_a_slot;
+        v->is_inner_method = m;
+        l = l->next;
+    }
 }
 
-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;
         if(m->inner)
-            index = new_variable("this", 0, 0, 0);
+            index = new_variable(m, "this", 0, 0, 0);
         else if(!m->is_global)
-            index = new_variable((flags&FLAG_STATIC)?"class":"this", state->cls?state->cls->info:0, 0, 0);
+            index = new_variable(m, (flags&FLAG_STATIC)?"class":"this", state->cls?state->cls->info:0, 0, 0);
         else
-            index = new_variable("globalscope", 0, 0, 0);
+            index = new_variable(m, "globalscope", 0, 0, 0);
+        if(index) {
+            DICT_ITERATE_ITEMS(state->vars, char*, name, variable_t*, v) {
+                printf("%s %d\n", name, v->index);
+            }
+        }
         parserassert(!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
-           optimizer to later shuffle the variables down to lower
-           indices */
-        m->variable_count = m->uses_slots;
-    }
-
-    if(params) {
+    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);
+            variable_t*v = new_variable2(m, p->param->name, p->param->type, 0, 1);
             v->is_parameter = 1;
         }
-    }
-
-    methodstate_list_t*l = m->innerfunctions;
-    while(l) {
-        methodstate_t*m = l->methodstate;
-        
-        variable_t* v = new_variable2(m->info->name, TYPE_FUNCTION(m->info), 0, 1);
-        m->var_index = v->index;
-        m->slot_index = v->index;
-        v->is_inner_method = m;
-
-        l = l->next;
+        if(as3_pass==2 && m->need_arguments) {
+            /* arguments can never be used by an innerfunction (the inner functions
+               have their own arguments var), so it's ok to  not initialize this until
+               pass 2. (We don't know whether we need it before, anyway) */
+            variable_t*v = new_variable2(m, "arguments", TYPE_ARRAY, 0, 0);
+            m->need_arguments = v->index;
+        }
     }
     
+    innerfunctions2vars(m);
+    
     if(as3_pass==2) {
         m->scope_code = add_scope_code(m->scope_code, m, 0);
-    }
-    
-    if(as3_pass==2 && m->slots) {
-        /* exchange unresolved identifiers with the actual objects */
-        DICT_ITERATE_ITEMS(m->slots, char*, name, variable_t*, v) {
-            if(v->type && v->type->kind == INFOTYPE_UNRESOLVED) {
-                classinfo_t*type = (classinfo_t*)registry_resolve((slotinfo_t*)v->type);
-                if(!type || type->kind != INFOTYPE_CLASS) {
-                    syntaxerror("Couldn't find class %s::%s (%s)", v->type->package, v->type->name, name);
+        if(m->slots) {
+            /* exchange unresolved identifiers with the actual objects */
+            DICT_ITERATE_ITEMS(m->slots, char*, name, variable_t*, v1) {
+                if(v1->type && v1->type->kind == INFOTYPE_UNRESOLVED) {
+                    classinfo_t*type = (classinfo_t*)registry_resolve((slotinfo_t*)v1->type);
+                    if(!type || type->kind != INFOTYPE_CLASS) {
+                        syntaxerror("Couldn't find class %s::%s (%s)", v1->type->package, v1->type->name, name);
+                    }
+                    v1->type = type;
                 }
-                v->type = type;
             }
+       }
+       if(m->allvars) {
+            DICT_ITERATE_ITEMS(m->allvars, char*, name2, variable_t*, v2) {
+                if(v2->type && v2->type->kind == INFOTYPE_UNRESOLVED) {
+                    classinfo_t*type = (classinfo_t*)registry_resolve((slotinfo_t*)v2->type);
+                    if(!type || type->kind != INFOTYPE_CLASS) {
+                        syntaxerror("Couldn't find class %s::%s (%s)", v2->type->package, v2->type->name, name2);
+                    }
+                    v2->type = type;
+                }
+           }
         }
     }
 }
@@ -1001,6 +1089,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)) == (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
@@ -1023,11 +1114,11 @@ static void startclass(modifiers_t* mod, char*classname, classinfo_t*extends, cl
 
     if(as3_pass==1) {
         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->variable_count=1;
+        state->cls->init = methodstate_new();
+        state->cls->static_init = methodstate_new();
+        state->cls->static_init->is_static=FLAG_STATIC;
         /* 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);
@@ -1054,12 +1145,14 @@ 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);
+        state->method = state->cls->static_init;
+
+        function_initvars(state->cls->init, 0, 0, 0, 1);
+        state->cls->static_init->variable_count=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);
@@ -1075,26 +1168,26 @@ static void startclass(modifiers_t* mod, char*classname, classinfo_t*extends, cl
         /* 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);
-        multiname_destroy(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);
         }
 
-        NEW(parsedclass_t,p);
-        p->cls = state->cls->info;
-        p->abc = state->cls->abc;
-        list_append(global->classes, p);
+        state->cls->dependencies = parsedclass_new(state->cls->info, state->cls->abc);
+        list_append(global->classes, state->cls->dependencies);
 
         /* flash.display.MovieClip handling */
         if(!as3_globalclass && (mod->flags&FLAG_PUBLIC) && slotinfo_equals((slotinfo_t*)registry_getMovieClip(),(slotinfo_t*)extends)) {
@@ -1132,6 +1225,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();
@@ -1184,7 +1292,7 @@ static void check_override(memberinfo_t*m, int flags)
 {
     if(!m)
         return;
-    if(m->parent == state->cls->info)
+    if(m->parent == state->cls->info && !((flags^m->flags)&FLAG_STATIC))
         syntaxerror("class '%s' already contains a method/slot '%s'", m->parent->name, m->name);
     if(!m->parent)
         syntaxerror("internal error: overriding method %s, which doesn't have parent", m->name);
@@ -1220,11 +1328,11 @@ static methodinfo_t*registerfunction(enum yytokentype getset, modifiers_t*mod, c
         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);
+        memberinfo_t* m = registry_findmember(state->cls->info, ns.name, name, 0, mod->flags&FLAG_STATIC);
         if(m) {
             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 = methodinfo_register_onclass(state->cls->info, ns.access, ns.name, name, mod->flags&FLAG_STATIC);
         minfo->return_type = return_type;
         // getslot on a member slot only returns "undefined", so no need
         // to actually store these
@@ -1240,7 +1348,7 @@ static methodinfo_t*registerfunction(enum yytokentype getset, modifiers_t*mod, c
         } else
             syntaxerror("setter function needs to take exactly one argument");
         // not sure wether to look into superclasses here, too
-        minfo = (methodinfo_t*)registry_findmember(state->cls->info, ns.name, name, 1);
+        minfo = (methodinfo_t*)registry_findmember(state->cls->info, ns.name, name, 1, mod->flags&FLAG_STATIC);
         if(minfo) {
             if(minfo->kind!=INFOTYPE_VAR)
                 syntaxerror("class already contains a method called '%s'", name);
@@ -1262,10 +1370,10 @@ static methodinfo_t*registerfunction(enum yytokentype getset, modifiers_t*mod, c
                     type?type->name:"*");
             }*/
         } else {
-            minfo = methodinfo_register_onclass(state->cls->info, ns.access, ns.name, name);
+            minfo = methodinfo_register_onclass(state->cls->info, ns.access, ns.name, name, mod->flags&FLAG_STATIC);
             minfo->kind = INFOTYPE_VAR; //hack
             minfo->subtype = gs;
-            minfo->return_type = return_type;
+            minfo->return_type = type;
         }
 
         /* can't assign a slot as getter and setter might have different slots */
@@ -1283,20 +1391,27 @@ static void innerfunction(char*name, params_t*params, classinfo_t*return_type)
     //parserassert(state->method && state->method->info);
 
     methodstate_t*parent_method = state->method;
+    variable_t*v = 0;
 
     if(as3_pass==1) {
         return_type = 0; // not valid in pass 1
+        if(name) {
+            v = new_variable2(parent_method, name, 0, 0, 0);
+        }
     }
 
     new_state();
     state->new_vars = 1;
-    state->allvars = dict_new();
    
     if(as3_pass == 1) {
-        state->method = rfx_calloc(sizeof(methodstate_t));
+        state->method = methodstate_new();
         state->method->inner = 1;
+        state->method->is_static = parent_method->is_static;
         state->method->variable_count = 0;
         state->method->abc = rfx_calloc(sizeof(abc_method_t));
+        if(v) {
+            v->is_inner_method = state->method;
+        }
 
         NEW(methodinfo_t,minfo);
         minfo->kind = INFOTYPE_METHOD;
@@ -1309,7 +1424,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) {
@@ -1318,7 +1433,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);
     }
 }
 
@@ -1330,11 +1445,11 @@ 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 = methodstate_new();
         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);
@@ -1347,7 +1462,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);
     }
@@ -1358,7 +1473,7 @@ static void startfunction(modifiers_t*mod, enum yytokentype getset, char*name,
         parserassert(state->method);
                 
         if(state->cls) {
-            memberinfo_t*m = registry_findmember(state->cls->info, mod->ns, name, 2);
+            memberinfo_t*m = registry_findmember(state->cls->info, mod->ns, name, 2, mod->flags&FLAG_STATIC);
             check_override(m, mod->flags);
         }
             
@@ -1366,67 +1481,75 @@ static void startfunction(modifiers_t*mod, enum yytokentype getset, char*name,
             state->cls->has_constructor |= state->method->is_constructor;
         }
         
-        function_initvars(state->method, params, mod->flags, 1);
+        function_initvars(state->method, 1, params, mod->flags, 1);
     } 
 }
 
+static void insert_unresolved(methodstate_t*m, dict_t*xvars, dict_t*allvars)
+{
+    parserassert(m->inner);
+    if(m->unresolved_variables) {
+        dict_t*d = m->unresolved_variables;
+        int t;
+        DICT_ITERATE_KEY(d, char*, id) {
+            /* check parent method's variables */
+            variable_t*v;
+            if(dict_contains(allvars, id)) {
+                m->uses_parent_function = 1;
+                state->method->uses_slots = 1;
+                dict_put(xvars, id, 0);
+            }
+        }
+    }
+    methodstate_list_t*ml = m->innerfunctions;
+    while(ml) {
+        insert_unresolved(ml->methodstate, xvars, allvars);
+        ml = ml->next;
+    }
+}
+
 static abc_method_t* endfunction(modifiers_t*mod, enum yytokentype getset, char*name,
                           params_t*params, classinfo_t*return_type, code_t*body)
 {
     if(as3_pass==1) {
-        // store inner methods in variables
-        function_initvars(state->method, 0, 0, 0);
-
-        methodstate_list_t*ml = state->method->innerfunctions;
-        
         dict_t*xvars = dict_new();
-
-        while(ml) {
-            methodstate_t*m = ml->methodstate;
-            parserassert(m->inner);
-            if(m->unresolved_variables) {
-                dict_t*d = m->unresolved_variables;
-                int t;
-                for(t=0;t<d->hashsize;t++) {
-                    dictentry_t*l = d->slots[t]; 
-                    while(l) {
-                        /* check parent method's variables */
-                        variable_t*v;
-                        if((v=find_variable(state, l->key))) {
-                            m->uses_parent_function = 1;
-                            state->method->uses_slots = 1;
-                            dict_put(xvars, l->key, 0);
-                        }
-                        l = l->next;
+        
+        if(state->method->unresolved_variables) {
+            DICT_ITERATE_KEY(state->method->unresolved_variables, char*, vname) {
+                if(!state->method->no_variable_scoping && dict_contains(state->method->allvars, vname)) {
+                    variable_t*v = dict_lookup(state->method->allvars, vname);
+                    if(!v->is_inner_method) {
+                        state->method->no_variable_scoping = 1;
+                        as3_warning("function %s uses forward or outer block variable references (%s): switching into compatibility mode", name, vname);
                     }
-                    if(l) break;
                 }
-
-                dict_destroy(m->unresolved_variables);
-                m->unresolved_variables = 0;
             }
+        }
+
+        methodstate_list_t*ml = state->method->innerfunctions;
+        while(ml) {
+            insert_unresolved(ml->methodstate, xvars, state->method->allvars);
             ml = ml->next;
         }
         
         if(state->method->uses_slots) {
             state->method->slots = dict_new();
             int i = 1;
-            DICT_ITERATE_ITEMS(state->vars, char*, name, variable_t*, v) {
+            DICT_ITERATE_ITEMS(state->method->allvars, char*, name, variable_t*, v) {
                 if(!name) syntaxerror("internal error");
                 if(v->index && dict_contains(xvars, name)) {
-                    v->init = 0;
-                    v->index = i++;
+                    v->init = v->kill = 0;
+                    v->index = i;
                     if(v->is_inner_method) {
-                        v->is_inner_method->is_a_slot = 1;
+                        v->is_inner_method->is_a_slot = i;
                     }
-                    //v->type = 0;
+                    i++;
                     dict_put(state->method->slots, name, v);
                 }
             }
             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;
@@ -1447,9 +1570,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
@@ -1460,6 +1582,7 @@ static abc_method_t* endfunction(modifiers_t*mod, enum yytokentype getset, char*
             multiname_t mname = {QNAME, &mname_ns, 0, name};
 
             f = abc_method_new(global->file, type2, 1);
+            if(!global->init) global->init = abc_initscript(global->file);
             trait_t*t = trait_new_method(&global->init->traits, multiname_clone(&mname), f);
             //abc_code_t*c = global->init->method->body->code;
         }
@@ -1470,6 +1593,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;
@@ -1483,7 +1607,7 @@ static abc_method_t* endfunction(modifiers_t*mod, enum yytokentype getset, char*
                 check_constant_against_type(p->param->type, p->param->value);
                 opt=1;list_append(f->optional_parameters, p->param->value);
             } else if(opt) {
-                syntaxerror("non-optional parameter not allowed after optional parameters");
+                syntaxerror("function %s: non-optional parameter not allowed after optional parameters", name);
             }
         }
         if(state->method->slots) {
@@ -1546,8 +1670,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)
@@ -1574,17 +1696,26 @@ 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))
         return abc_convert_s(c);
     if(TYPE_IS_OBJECT(to))
-        return abc_convert_o(c);
+        return abc_coerce2(c, &m);
+    if(TYPE_IS_OBJECT(from) && TYPE_IS_XMLLIST(to))
+        return abc_coerce2(c, &m);
+    if(TYPE_IS_OBJECT(from) && TYPE_IS_ARRAY(to))
+        return abc_coerce2(c, &m);
 
     classinfo_t*supertype = from;
     while(supertype) {
         if(supertype == to) {
-             // target type is one of from's superclasses
+             /* target type is one of from's superclasses.
+                (not sure we need this coerce - as far as the verifier
+                 is concerned, object==object (i think) */
              return abc_coerce2(c, &m);
         }
         int t=0;
@@ -1604,13 +1735,24 @@ code_t*converttype(code_t*c, classinfo_t*from, classinfo_t*to)
     if(TYPE_IS_NULL(from) && !IS_NUMBER_OR_INT(to))
         return c;
 
+
     as3_error("can't convert type %s%s%s to %s%s%s", 
         from->package, from->package[0]?".":"", from->name, 
         to->package, to->package[0]?".":"", to->name);
 
     return c;
 }
-/* move to ast.c todo end */
+code_t* coerce_to_type(code_t*c, classinfo_t*t)
+{
+    if(!t) {
+        return abc_coerce_a(c);
+    } else if(TYPE_IS_STRING(t)) {
+        return abc_coerce_s(c);
+    } else {
+        MULTINAME(m, t);
+        return abc_coerce2(c, &m);
+    }
+}
 
 char is_pushundefined(code_t*c)
 {
@@ -1697,6 +1839,7 @@ typedcode_t push_class(slotinfo_t*a)
             infotypename(a), a->name, a->package, state->package);
     }
 
+
     if(a->kind != INFOTYPE_CLASS) {
         MULTINAME(m, a);
         x.c = abc_findpropstrict2(x.c, &m);
@@ -1708,9 +1851,16 @@ typedcode_t push_class(slotinfo_t*a)
             varinfo_t*v = (varinfo_t*)a;
             x.t = v->type;
         }
+        return x;
     } else {
+        if(state->cls && state->method == state->cls->static_init) {
+            /* we're in the static initializer. 
+               record the fact that we're using this class here */
+            parsedclass_add_dependency(state->cls->dependencies, (classinfo_t*)a);
+        }
         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 {
@@ -1863,20 +2013,28 @@ code_t* insert_finally(code_t*c, code_t*finally, int tempvar)
 
 
 /* Line 273 of skeleton.m4  */
-#line 1867 "parser.tab.c"
+#line 2017 "parser.tab.c"
 /* Unqualified %code blocks.  */
 
 /* Line 274 of skeleton.m4  */
-#line 1944 "parser.y"
+#line 2107 "parser.y"
 
     char is_subtype_of(classinfo_t*type, classinfo_t*supertype)
     {
         return 1; // FIXME
     }
+    char do_init_variable(char*name)
+    {
+        if(!state->method->no_variable_scoping)
+            return 0;
+        if(!state->new_vars)
+            return 1;
+        return 1;
+    }
 
 
 /* Line 274 of skeleton.m4  */
-#line 2393 "parser.y"
+#line 2557 "parser.y"
 
     static void state_has_imports()
     {
@@ -1899,7 +2057,7 @@ code_t* insert_finally(code_t*c, code_t*finally, int tempvar)
 
 
 /* Line 274 of skeleton.m4  */
-#line 2526 "parser.y"
+#line 2700 "parser.y"
 
     static int slotstate_varconst = 0;
     static modifiers_t*slotstate_flags = 0;
@@ -1908,19 +2066,239 @@ 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
+            if(!global->init) global->init = abc_initscript(global->file);
+            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(ns.access == ACCESS_PROTECTED) {
+                ns.name = concat3(state->cls->info->package,":",state->cls->info->name);
+            }
+        }
+        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 3414 "parser.y"
+#line 2874 "parser.y"
+
+    static int xml_level = 0;
+
+
+/* Line 274 of skeleton.m4  */
+#line 3539 "parser.y"
+
+    node_t* resolve_identifier(const char*name);
+    node_t* get_descendants(node_t*e,const char*ns,const char*subnode,char multi, char attr)
+    {
+       typedcode_t v = node_read(e);
+       typedcode_t w;
+
+       multiname_t m = {0,0,0,subnode};
+       namespace_t zero = {ZERONAMESPACE,"*"};
+       if(!strcmp(ns,"*")) {
+           m.ns = &zero;
+           m.type = attr?QNAMEA:QNAME;
+       } else {
+           typedcode_t w = node_read(resolve_identifier(ns));
+           if(!TYPE_IS_NAMESPACE(w.t)) {
+               as3_softwarning("%s might not be a namespace", ns);
+           }
+           v.c = code_append(v.c, w.c);
+           v.c = converttype(v.c, w.t, TYPE_NAMESPACE);
+           m.type = attr?RTQNAMEA:RTQNAME;
+       }
+
+       if(!multi) {
+           v.c = abc_getproperty2(v.c, &m);
+       } else {
+           v.c = abc_getdescendants2(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;
+       }
+       return mkcodenode(v);
+    }
+
+
+/* Line 274 of skeleton.m4  */
+#line 3710 "parser.y"
+
+    node_t* var_read(variable_t*v)
+    {
+        typedcode_t o;
+       o.c = abc_getlocal(0, v->index);
+       o.t = v->type;
+       return mkcodenode(o);
+    }
+
+    node_t* resolve_identifier(const 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
+           return var_read(v);
+        }
+        if((v = find_slot(state->method, 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;
+
+        if(!state->method->inner && !state->xmlfilter && state->cls)
+       {
+           /* look at current class' members */
+           if((f = findmember_nsset(state->cls->info, name, 1, i_am_static)))
+           {
+               // 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);
+                   }
+               }
+           } 
+           /* special case: it's allowed to access non-static constants
+              from a static context */
+           if(i_am_static && (f=findmember_nsset(state->cls->info, name, 1, 0))) {
+               if(f->kind == INFOTYPE_VAR && (f->flags&FLAG_CONST)) {
+                   varinfo_t*v = (varinfo_t*)f;
+                   if(v->value) {
+                       return mkconstnode(v->value);
+                   }
+               }
+           }
+       }
+        
+        /* 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, (char*)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 3866 "parser.y"
 
     void add_active_url(const char*url)
     {
@@ -1932,7 +2310,7 @@ code_t* insert_finally(code_t*c, code_t*finally, int tempvar)
 
 
 /* Line 274 of skeleton.m4  */
-#line 1936 "parser.tab.c"
+#line 2314 "parser.tab.c"
 
 #ifdef short
 # undef short
@@ -2145,22 +2523,22 @@ union yyalloc
 #endif
 
 /* YYFINAL -- State number of the termination state.  */
-#define YYFINAL  149
+#define YYFINAL  162
 /* YYLAST -- Last index in YYTABLE.  */
-#define YYLAST   3107
+#define YYLAST   3382
 
 /* YYNTOKENS -- Number of terminals.  */
-#define YYNTOKENS  133
+#define YYNTOKENS  135
 /* YYNNTS -- Number of nonterminals.  */
-#define YYNNTS  116
+#define YYNNTS  135
 /* YYNRULES -- Number of rules.  */
-#define YYNRULES  305
+#define YYNRULES  356
 /* YYNRULES -- Number of states.  */
-#define YYNSTATES  519
+#define YYNSTATES  612
 
 /* 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)
@@ -2171,16 +2549,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,
@@ -2203,8 +2581,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
@@ -2214,168 +2592,196 @@ static const yytype_uint16 yyprhs[] =
 {
        0,     0,     3,     5,     6,     8,    10,    13,    15,    17,
       19,    21,    23,    25,    30,    32,    33,    35,    37,    40,
-      42,    44,    46,    48,    50,    55,    57,    59,    60,    63,
-      65,    67,    69,    71,    73,    75,    77,    79,    81,    83,
-      85,    87,    89,    93,    96,    98,   100,   102,   104,   106,
-     108,   110,   115,   118,   120,   122,   126,   129,   130,   133,
-     136,   138,   142,   146,   147,   150,   151,   159,   160,   162,
-     164,   168,   170,   173,   177,   186,   193,   194,   201,   202,
-     210,   212,   215,   217,   220,   221,   223,   225,   228,   230,
-     233,   238,   242,   243,   252,   253,   263,   264,   270,   272,
-     275,   277,   280,   282,   283,   290,   293,   295,   300,   303,
-     305,   307,   309,   313,   315,   316,   323,   324,   330,   333,
-     338,   339,   341,   343,   346,   348,   350,   352,   354,   356,
-     358,   360,   362,   364,   366,   367,   370,   371,   374,   375,
-     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,
-     632,   634,   638,   644,   646,   648,   650,   652,   654,   656,
-     658,   660,   664,   668,   672,   676,   680,   684,   688,   692,
-     696,   700,   704,   708,   711,   714,   718,   722,   726,   730,
-     734,   738,   742,   746,   750,   754,   758,   762,   766,   770,
-     774,   779,   782,   784,   788,   791,   796,   800,   804,   808,
-     812,   816,   820,   824,   828,   832,   836,   840,   844,   850,
-     853,   856,   859,   862,   866,   869,   874,   880,   884,   890,
-     894,   896,   899,   904,   909,   912
+      42,    44,    46,    48,    50,    55,    60,    62,    64,    65,
+      68,    70,    72,    74,    76,    78,    80,    82,    84,    86,
+      88,    90,    92,    94,    96,   100,   103,   105,   107,   109,
+     111,   113,   115,   117,   122,   125,   127,   129,   130,   134,
+     137,   138,   141,   144,   146,   150,   154,   155,   158,   159,
+     162,   169,   170,   172,   174,   178,   180,   183,   187,   196,
+     203,   209,   216,   218,   221,   223,   226,   227,   229,   231,
+     234,   236,   239,   244,   248,   249,   258,   259,   269,   270,
+     276,   278,   281,   283,   286,   288,   289,   296,   299,   301,
+     306,   309,   311,   313,   315,   317,   321,   323,   324,   331,
+     332,   338,   341,   344,   349,   350,   352,   354,   357,   359,
+     361,   363,   365,   367,   369,   371,   373,   375,   377,   378,
+     381,   382,   385,   386,   389,   390,   400,   401,   410,   411,
+     413,   415,   418,   420,   425,   427,   429,   434,   436,   437,
+     439,   441,   444,   446,   449,   458,   460,   462,   463,   468,
+     470,   474,   478,   479,   482,   484,   486,   488,   490,   492,
+     494,   496,   498,   500,   502,   504,   506,   507,   508,   513,
+     514,   519,   520,   523,   526,   529,   532,   536,   538,   540,
+     541,   543,   550,   561,   573,   575,   578,   580,   584,   588,
+     592,   596,   597,   599,   602,   607,   611,   613,   618,   621,
+     623,   625,   626,   627,   640,   642,   643,   644,   655,   657,
+     661,   663,   665,   667,   671,   673,   675,   677,   680,   681,
+     682,   686,   687,   689,   691,   693,   696,   699,   700,   705,
+     710,   715,   718,   720,   723,   725,   727,   729,   733,   735,
+     739,   740,   742,   744,   746,   748,   750,   752,   756,   762,
+     764,   766,   768,   770,   772,   774,   776,   778,   780,   782,
+     786,   790,   794,   798,   802,   806,   810,   814,   818,   822,
+     826,   830,   833,   836,   840,   844,   848,   852,   856,   860,
+     864,   868,   872,   876,   880,   884,   888,   892,   896,   899,
+     902,   904,   908,   911,   916,   920,   924,   928,   932,   936,
+     940,   944,   948,   952,   956,   960,   964,   970,   973,   976,
+     979,   982,   986,   989,   990,   997,   999,  1001,  1003,  1005,
+    1011,  1015,  1021,  1027,  1032,  1039,  1044,  1051,  1058,  1065,
+    1069,  1071,  1074,  1079,  1084,  1087,  1092
 };
 
 /* 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,   248,    -1,   247,    -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,   243,    -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,   243,   104,   141,    -1,    61,   104,
-     141,    -1,    -1,    14,   121,   171,   243,   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,   243,    -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,   243,
-     231,   227,    -1,   243,   121,   228,   132,    -1,    52,   121,
-     228,   132,    -1,    62,   243,    -1,    41,    -1,    41,   237,
-      -1,   243,    -1,   238,    -1,   243,    -1,   238,   100,   243,
-      -1,   243,    -1,   239,   100,   243,    -1,    -1,   242,    -1,
-       3,    -1,     5,    -1,   241,   104,   236,    -1,   242,   100,
-     241,   104,   236,    -1,   219,    -1,   244,    -1,   232,    -1,
-     234,    -1,   233,    -1,   245,    -1,   211,    -1,     6,    -1,
-     123,   228,   124,    -1,    69,   240,   131,    -1,   243,   108,
-     243,    -1,   243,   109,   243,    -1,   243,    74,   243,    -1,
-     243,    75,   243,    -1,   243,    70,   243,    -1,   243,    71,
-     243,    -1,   243,    73,   243,    -1,   243,    72,   243,    -1,
-     243,    87,   243,    -1,   243,    88,   243,    -1,   117,   243,
-      -1,   116,   243,    -1,   243,   107,   243,    -1,   243,   106,
-     243,    -1,   243,   105,   243,    -1,   243,    96,   243,    -1,
-     243,    95,   243,    -1,   243,    94,   243,    -1,   243,   113,
-     243,    -1,   243,   115,   243,    -1,   243,   112,   243,    -1,
-     243,   111,   243,    -1,   243,   114,   243,    -1,   243,    67,
-     243,    -1,   243,    68,   243,    -1,   243,    39,   243,    -1,
-     243,    66,   243,    -1,    42,   121,   243,   132,    -1,    35,
-     243,    -1,    35,    -1,   121,   238,   132,    -1,   111,   243,
-      -1,   243,   123,   243,   124,    -1,   243,    79,   243,    -1,
-     243,    78,   243,    -1,   243,    85,   243,    -1,   243,    84,
-     243,    -1,   243,    86,   243,    -1,   243,    77,   243,    -1,
-     243,    76,   243,    -1,   243,    83,   243,    -1,   243,    80,
-     243,    -1,   243,    81,   243,    -1,   243,    82,   243,    -1,
-     243,   102,   243,    -1,   243,   103,   243,   104,   243,    -1,
-     243,    91,    -1,   243,    90,    -1,    91,   243,    -1,    90,
-     243,    -1,    52,   126,     3,    -1,   127,     3,    -1,   243,
-     126,   127,     3,    -1,   243,   126,     3,    89,     3,    -1,
-     243,    92,     3,    -1,   243,   126,   121,   243,   132,    -1,
-     243,   126,     3,    -1,     3,    -1,    16,     3,    -1,    16,
-       3,   102,     3,    -1,    16,     3,   102,     5,    -1,   189,
-     246,    -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,   150,   127,   137,   133,    -1,
+     100,    -1,    -1,   141,    -1,   142,    -1,   141,   142,    -1,
+     199,    -1,   197,    -1,   233,    -1,   208,    -1,   148,    -1,
+     150,   127,   140,   133,    -1,   125,   149,   260,   126,    -1,
+     100,    -1,   144,    -1,    -1,   144,   146,    -1,   146,    -1,
+     268,    -1,   190,    -1,   162,    -1,   163,    -1,   164,    -1,
+     165,    -1,   172,    -1,   158,    -1,   184,    -1,   180,    -1,
+     256,    -1,   269,    -1,   267,    -1,   127,   144,   133,    -1,
+     127,   133,    -1,   100,    -1,   145,    -1,   152,    -1,   166,
+      -1,   167,    -1,   252,    -1,   182,    -1,   150,   127,   144,
+     133,    -1,   146,   100,    -1,   146,    -1,   145,    -1,    -1,
+       3,    90,     3,    -1,   103,   260,    -1,    -1,    45,   153,
+      -1,    31,   153,    -1,   154,    -1,   153,   101,   154,    -1,
+       3,   243,   151,    -1,    -1,   156,   147,    -1,    -1,    65,
+     155,    -1,    64,   123,   254,   134,   155,   157,    -1,    -1,
+     152,    -1,   256,    -1,    45,     3,   243,    -1,     3,    -1,
+      10,   123,    -1,    10,    49,   123,    -1,   161,   159,   100,
+     254,   100,   256,   134,   155,    -1,   161,   160,    68,   254,
+     134,   155,    -1,    11,   123,   254,   134,   155,    -1,    12,
+     155,    11,   123,   254,   134,    -1,    66,    -1,    66,     3,
+      -1,    29,    -1,    29,     3,    -1,    -1,   169,    -1,   171,
+      -1,   169,   171,    -1,   170,    -1,   169,   170,    -1,    33,
+     260,   105,   143,    -1,    61,   105,   143,    -1,    -1,    13,
+     123,   173,   260,   134,   127,   168,   133,    -1,    -1,    32,
+     123,     3,   243,   134,   175,   127,   143,   133,    -1,    -1,
+      26,   127,   177,   143,   133,    -1,   174,    -1,   178,   174,
+      -1,   178,    -1,   178,   176,    -1,   176,    -1,    -1,    51,
+     127,   181,   143,   133,   179,    -1,    36,   254,    -1,    36,
+      -1,    38,   123,   254,   134,    -1,   183,   147,    -1,     3,
+      -1,    16,    -1,    15,    -1,    28,    -1,   186,   128,   185,
+      -1,   185,    -1,    -1,    16,   186,   127,   188,   140,   133,
+      -1,    -1,    16,   127,   189,   140,   133,    -1,    40,     3,
+      -1,    40,   239,    -1,    40,   186,   128,   116,    -1,    -1,
+     192,    -1,   193,    -1,   192,   193,    -1,    19,    -1,    20,
+      -1,    17,    -1,    37,    -1,    46,    -1,    48,    -1,    47,
+      -1,    24,    -1,    22,    -1,     3,    -1,    -1,    53,   240,
+      -1,    -1,    53,   241,    -1,    -1,    14,   241,    -1,    -1,
+     191,    30,     3,   194,   196,   127,   198,   201,   133,    -1,
+      -1,   191,    43,     3,   195,   127,   200,   204,   133,    -1,
+      -1,   202,    -1,   203,    -1,   202,   203,    -1,   100,    -1,
+     150,   127,   201,   133,    -1,   208,    -1,   233,    -1,   125,
+     149,   260,   126,    -1,   145,    -1,    -1,   205,    -1,   206,
+      -1,   205,   206,    -1,   100,    -1,    45,     3,    -1,   191,
+      25,   232,     3,   123,   229,   134,   243,    -1,    45,    -1,
+      31,    -1,    -1,   191,   207,   209,   210,    -1,   211,    -1,
+     210,   101,   211,    -1,     3,   243,   151,    -1,    -1,   103,
+     260,    -1,     7,    -1,     8,    -1,     9,    -1,     4,    -1,
+      55,    -1,    54,    -1,    44,    -1,    27,    -1,    28,    -1,
+     226,    -1,   110,    -1,   111,    -1,    -1,    -1,   127,   260,
+     219,   133,    -1,    -1,   127,   260,   221,   133,    -1,    -1,
+     222,   218,    -1,   222,     4,    -1,   222,   111,    -1,   226,
+     222,    -1,   223,   226,   222,    -1,     3,    -1,   220,    -1,
+      -1,   227,    -1,   215,   224,   225,   115,   217,   111,    -1,
+     215,   224,   225,   216,   222,   110,   115,   224,   217,   111,
+      -1,   215,   224,   225,   216,   222,   223,   110,   115,   224,
+     217,   111,    -1,   228,    -1,   227,   228,    -1,   220,    -1,
+     220,   103,     4,    -1,   220,   103,   220,    -1,     3,   103,
+     220,    -1,     3,   103,     4,    -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,    50,    -1,    34,    -1,    -1,    -1,   191,    25,   232,
+       3,   123,   229,   134,   243,   127,   234,   143,   133,    -1,
+       3,    -1,    -1,    -1,    25,   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,    35,    -1,   105,   242,    -1,
+      -1,    -1,   123,   245,   134,    -1,    -1,   246,    -1,   247,
+      -1,   253,    -1,   246,   101,    -1,   247,   253,    -1,    -1,
+      23,   260,   248,   244,    -1,   260,   123,   245,   134,    -1,
+      52,   123,   245,   134,    -1,    63,   260,    -1,    41,    -1,
+      41,   254,    -1,   260,    -1,   255,    -1,   260,    -1,   255,
+     101,   260,    -1,   260,    -1,   256,   101,   260,    -1,    -1,
+     259,    -1,     3,    -1,     4,    -1,     7,    -1,     8,    -1,
+       9,    -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,     5,    -1,
+      18,    -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,    39,
+     260,    -1,   260,    67,   260,    -1,    42,   260,    -1,    35,
+     260,    -1,    35,    -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,    52,   128,     3,    -1,   129,     3,    -1,    -1,
+     260,   128,   123,   261,   260,   134,    -1,     3,    -1,   116,
+      -1,   185,    -1,   116,    -1,   260,   128,   262,    90,   263,
+      -1,   260,    93,   263,    -1,   260,    93,   262,    90,   263,
+      -1,   260,   128,   125,   260,   126,    -1,   260,   128,   129,
+     263,    -1,   260,   128,   129,   262,    90,   263,    -1,   260,
+      93,   129,   263,    -1,   260,    93,   129,   262,    90,   263,
+      -1,   260,   128,   129,   125,   260,   126,    -1,   260,    93,
+     129,   125,   260,   126,    -1,   260,   128,   263,    -1,     3,
+      -1,    15,     3,    -1,    15,     3,   103,     3,    -1,    15,
+       3,   103,     4,    -1,   191,   266,    -1,    62,    15,   103,
+     260,    -1,    21,    15,   240,    -1
 };
 
 /* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
 static const yytype_uint16 yyrline[] =
 {
-       0,  1849,  1849,  1851,  1851,  1852,  1853,  1855,  1856,  1857,
-    1858,  1859,  1860,  1861,  1862,  1864,  1864,  1865,  1866,  1868,
-    1869,  1870,  1871,  1872,  1873,  1874,  1876,  1877,  1879,  1882,
-    1885,  1886,  1887,  1888,  1889,  1890,  1891,  1892,  1893,  1894,
-    1895,  1896,  1897,  1898,  1901,  1902,  1903,  1904,  1905,  1906,
-    1907,  1908,  1920,  1921,  1925,  1932,  1951,  1952,  1954,  1955,
-    1957,  1958,  1960,  2020,  2021,  2024,  2024,  2043,  2044,  2045,
-    2050,  2054,  2059,  2060,  2062,  2082,  2130,  2130,  2149,  2149,
-    2164,  2167,  2170,  2173,  2177,  2178,  2179,  2180,  2181,  2182,
-    2184,  2195,  2198,  2198,  2229,  2229,  2254,  2254,  2270,  2271,
-    2272,  2273,  2281,  2290,  2290,  2339,  2343,  2354,  2364,  2381,
-    2382,  2383,  2385,  2386,  2388,  2388,  2390,  2390,  2413,  2427,
-    2443,  2444,  2445,  2446,  2453,  2454,  2455,  2456,  2457,  2458,
-    2459,  2460,  2461,  2462,  2466,  2467,  2469,  2470,  2472,  2473,
-    2477,  2475,  2483,  2481,  2490,  2491,  2492,  2493,  2494,  2495,
-    2496,  2497,  2499,  2505,  2506,  2507,  2508,  2509,  2510,  2513,
-    2545,  2545,  2547,  2547,  2549,  2550,  2552,  2646,  2647,  2655,
-    2656,  2659,  2660,  2661,  2662,  2663,  2664,  2665,  2680,  2684,
-    2690,  2696,  2704,  2709,  2715,  2723,  2731,  2732,  2733,  2736,
-    2735,  2752,  2753,  2755,  2754,  2778,  2797,  2811,  2812,  2814,
-    2815,  2817,  2818,  2819,  2828,  2829,  2833,  2834,  2836,  2837,
-    2838,  2840,  2844,  2845,  2850,  2851,  2888,  2938,  2959,  2981,
-    2984,  2991,  2994,  2997,  3000,  3003,  3006,  3011,  3012,  3014,
-    3015,  3017,  3023,  3032,  3033,  3034,  3035,  3036,  3037,  3039,
-    3044,  3064,  3074,  3083,  3084,  3085,  3086,  3087,  3088,  3089,
-    3090,  3091,  3092,  3093,  3094,  3095,  3096,  3097,  3098,  3099,
-    3100,  3101,  3102,  3103,  3104,  3105,  3106,  3107,  3108,  3109,
-    3110,  3111,  3112,  3113,  3114,  3115,  3116,  3117,  3118,  3119,
-    3120,  3121,  3122,  3123,  3124,  3125,  3126,  3127,  3128,  3130,
-    3131,  3132,  3133,  3135,  3150,  3156,  3162,  3168,  3174,  3187,
-    3245,  3378,  3385,  3392,  3399,  3423
+       0,  1998,  1998,  2000,  2000,  2001,  2002,  2004,  2005,  2006,
+    2007,  2008,  2009,  2010,  2011,  2013,  2013,  2014,  2015,  2017,
+    2018,  2019,  2020,  2021,  2022,  2023,  2024,  2026,  2027,  2029,
+    2032,  2035,  2036,  2037,  2038,  2039,  2040,  2041,  2042,  2043,
+    2044,  2045,  2046,  2047,  2048,  2049,  2052,  2053,  2054,  2055,
+    2056,  2057,  2058,  2059,  2071,  2072,  2076,  2087,  2095,  2122,
+    2123,  2125,  2126,  2128,  2129,  2131,  2192,  2192,  2196,  2197,
+    2200,  2216,  2217,  2218,  2223,  2227,  2232,  2233,  2235,  2255,
+    2299,  2315,  2327,  2330,  2333,  2336,  2340,  2341,  2342,  2343,
+    2344,  2345,  2347,  2358,  2361,  2361,  2392,  2392,  2417,  2417,
+    2433,  2434,  2435,  2436,  2444,  2453,  2453,  2502,  2506,  2517,
+    2527,  2544,  2545,  2546,  2547,  2549,  2550,  2552,  2552,  2554,
+    2554,  2578,  2586,  2600,  2616,  2617,  2618,  2619,  2626,  2627,
+    2628,  2629,  2630,  2631,  2632,  2633,  2634,  2635,  2639,  2640,
+    2642,  2643,  2645,  2646,  2650,  2648,  2656,  2654,  2663,  2664,
+    2665,  2666,  2667,  2668,  2669,  2670,  2671,  2673,  2679,  2680,
+    2681,  2682,  2683,  2684,  2687,  2760,  2760,  2762,  2762,  2764,
+    2765,  2767,  2851,  2852,  2860,  2861,  2864,  2865,  2866,  2867,
+    2868,  2869,  2870,  2878,  2889,  2890,  2891,  2893,  2893,  2896,
+    2896,  2899,  2900,  2903,  2908,  2911,  2914,  2917,  2920,  2924,
+    2927,  2931,  2935,  2940,  2946,  2949,  2952,  2955,  2960,  2963,
+    2966,  2976,  2980,  2986,  2992,  3000,  3005,  3011,  3019,  3027,
+    3028,  3029,  3032,  3031,  3048,  3049,  3051,  3050,  3074,  3093,
+    3107,  3108,  3110,  3111,  3113,  3114,  3115,  3124,  3125,  3129,
+    3130,  3132,  3133,  3134,  3136,  3140,  3141,  3146,  3147,  3194,
+    3244,  3265,  3287,  3290,  3297,  3300,  3303,  3306,  3309,  3312,
+    3317,  3318,  3320,  3321,  3322,  3323,  3324,  3326,  3332,  3341,
+    3342,  3343,  3344,  3345,  3346,  3348,  3352,  3357,  3375,  3386,
+    3396,  3405,  3406,  3407,  3408,  3409,  3410,  3411,  3412,  3413,
+    3414,  3415,  3416,  3417,  3418,  3419,  3420,  3421,  3422,  3423,
+    3424,  3425,  3426,  3427,  3428,  3429,  3430,  3431,  3432,  3433,
+    3434,  3435,  3436,  3437,  3438,  3439,  3440,  3441,  3442,  3443,
+    3444,  3445,  3446,  3447,  3448,  3449,  3450,  3452,  3453,  3454,
+    3455,  3457,  3472,  3480,  3480,  3534,  3535,  3536,  3537,  3577,
+    3580,  3587,  3590,  3601,  3609,  3613,  3620,  3624,  3634,  3645,
+    3841,  3875,  3882,  3889,  3896,  3918,  3925
 };
 #endif
 
@@ -2384,55 +2790,58 @@ static const yytype_uint16 yyrline[] =
    First, the terminals, then, starting at YYNTOKENS, nonterminals.  */
 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\"",
-  "\"continue\"", "\"class\"", "\"const\"", "\"catch\"", "\"case\"",
-  "\"set\"", "\"void\"", "\"throw\"", "\"static\"", "\"with\"",
-  "\"instanceof\"", "\"import\"", "\"return\"", "\"typeof\"",
-  "\"interface\"", "\"null\"", "\"var\"", "\"dynamic\"", "\"override\"",
-  "\"final\"", "\"each\"", "\"get\"", "\"try\"", "\"super\"",
-  "\"extends\"", "\"false\"", "\"true\"", "\"Boolean\"", "\"uint\"",
-  "\"int\"", "\"Number\"", "\"String\"", "\"default\"", "\"delete\"",
-  "\"if\"", "\"else\"", "\"break\"", "\"is\"", "\"in\"", "\"as\"",
-  "\"{ (dictionary)\"", "\"==\"", "\"===\"", "\"!=\"", "\"!==\"", "\"<=\"",
-  "\">=\"", "\"|=\"", "\"/=\"", "\"%=\"", "\"*=\"", "\"&=\"", "\"+=\"",
-  "\"-=\"", "\"^=\"", "\">>=\"", "\"<<=\"", "\">>>=\"", "\"||\"", "\"&&\"",
-  "\"::\"", "\"--\"", "\"++\"", "\"..\"", "\"...\"", "\"<<\"", "\">>>\"",
-  "\">>\"", "prec_none", "below_semicolon", "';'", "','",
-  "below_assignment", "'='", "'?'", "':'", "'|'", "'^'", "'&'", "'<'",
-  "'>'", "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",
-  "PACKAGE_INITCODE", "CONDITIONAL_COMPILATION", "MAYBEEXPRESSION",
-  "VARIABLE_DECLARATION", "VARIABLE_LIST", "ONE_VARIABLE", "MAYBEELSE",
-  "IF", "$@1", "FOR_INIT", "FOR_IN_INIT", "FOR_START", "FOR", "FOR_IN",
-  "WHILE", "$@2", "DO_WHILE", "$@3", "BREAK", "CONTINUE",
-  "MAYBE_CASE_LIST", "CASE_LIST", "CASE", "DEFAULT", "SWITCH", "$@4",
-  "CATCH", "$@5", "FINALLY", "$@6", "CATCH_LIST", "CATCH_FINALLY_LIST",
-  "TRY", "$@7", "THROW", "WITH_HEAD", "WITH", "X_IDENTIFIER", "PACKAGE",
-  "PACKAGE_DECLARATION", "$@8", "$@9", "IMPORT", "MAYBE_MODIFIERS",
-  "MODIFIER_LIST", "MODIFIER", "EXTENDS", "EXTENDS_LIST",
-  "IMPLEMENTS_LIST", "CLASS_DECLARATION", "$@10", "INTERFACE_DECLARATION",
-  "$@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",
+  "$end", "error", "$undefined", "T_IDENTIFIER", "T_STRING", "T_REGEXP",
+  "T_EMPTY", "T_INT", "T_UINT", "T_FLOAT", "\"for\"", "\"while\"",
+  "\"do\"", "\"switch\"", "\"implements\"", "\"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\"", "\"interface\"", "\"null\"", "\"var\"", "\"dynamic\"",
+  "\"override\"", "\"final\"", "\"each\"", "\"get\"", "\"try\"",
+  "\"super\"", "\"extends\"", "\"false\"", "\"true\"", "\"Boolean\"",
+  "\"uint\"", "\"int\"", "\"Number\"", "\"String\"", "\"default\"",
+  "\"default xml\"", "\"delete\"", "\"if\"", "\"else\"", "\"break\"",
+  "\"is\"", "\"in\"", "\"as\"", "\"{ (dictionary)\"", "\"==\"", "\"===\"",
+  "\"!=\"", "\"!==\"", "\"<=\"", "\">=\"", "\"|=\"", "\"/=\"", "\"%=\"",
+  "\"*=\"", "\"&=\"", "\"+=\"", "\"-=\"", "\"^=\"", "\">>=\"", "\"<<=\"",
+  "\">>>=\"", "\"||\"", "\"&&\"", "\"::\"", "\"--\"", "\"++\"", "\"..\"",
+  "\"...\"", "\"<<\"", "\">>>\"", "\">>\"", "prec_none", "below_semicolon",
+  "';'", "','", "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", "PACKAGE_INITCODE", "EMBED_START",
+  "CONDITIONAL_COMPILATION", "MAYBEEXPRESSION", "VARIABLE_DECLARATION",
+  "VARIABLE_LIST", "ONE_VARIABLE", "IF_CODEBLOCK", "$@1", "MAYBEELSE",
+  "IF", "FOR_INIT", "FOR_IN_INIT", "FOR_START", "FOR", "FOR_IN", "WHILE",
+  "DO_WHILE", "BREAK", "CONTINUE", "MAYBE_CASE_LIST", "CASE_LIST", "CASE",
+  "DEFAULT", "SWITCH", "$@2", "CATCH", "$@3", "FINALLY", "$@4",
+  "CATCH_LIST", "CATCH_FINALLY_LIST", "TRY", "$@5", "THROW", "WITH_HEAD",
+  "WITH", "X_IDENTIFIER", "PACKAGE", "PACKAGE_DECLARATION", "$@6", "$@7",
+  "IMPORT", "MAYBE_MODIFIERS", "MODIFIER_LIST", "MODIFIER", "EXTENDS",
+  "EXTENDS_LIST", "IMPLEMENTS_LIST", "CLASS_DECLARATION", "$@8",
+  "INTERFACE_DECLARATION", "$@9", "MAYBE_CLASS_BODY", "CLASS_BODY",
+  "CLASS_BODY_ITEM", "MAYBE_INTERFACE_BODY", "INTERFACE_BODY",
+  "IDECLARATION", "VARCONST", "SLOT_DECLARATION", "$@10", "SLOT_LIST",
+  "ONE_SLOT", "MAYBECONSTANT", "CONSTANT", "XML", "OPEN", "CLOSE",
+  "CLOSE2", "XMLEXPR1", "$@11", "XMLEXPR2", "$@12", "XMLTEXT", "XML2",
+  "XML_ID_OR_EXPR", "MAYBE_XMLATTRIBUTES", "XMLNODE", "XMLATTRIBUTES",
+  "XMLATTRIBUTE", "MAYBE_PARAM_LIST", "PARAM_LIST", "PARAM", "GETSET",
   "FUNCTION_DECLARATION", "$@13", "MAYBE_IDENTIFIER", "INNERFUNCTION",
   "$@14", "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_DICT_EXPRPAIR_LIST",
-  "DICTLH", "DICT_EXPRPAIR_LIST", "E", "MEMBER", "VAR_READ",
-  "NAMESPACE_ID", "NAMESPACE_DECLARATION", "USE_NAMESPACE", 0
+  "DICTLH", "DICT_EXPRPAIR_LIST", "E", "$@15", "ID_OR_NS", "SUBNODE",
+  "MEMBER", "VAR_READ", "NAMESPACE_ID", "NAMESPACE_DECLARATION",
+  "DEFAULT_NAMESPACE", "USE_NAMESPACE", 0
 };
 #endif
 
@@ -2450,48 +2859,53 @@ 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,   243,   243,   243,   243,   243,   243,   243,
-     243,   243,   243,   243,   243,   243,   243,   243,   243,   243,
-     243,   243,   243,   243,   243,   243,   243,   243,   243,   243,
-     243,   243,   243,   243,   243,   243,   243,   243,   243,   243,
-     243,   243,   243,   243,   243,   243,   243,   243,   243,   243,
-     243,   243,   243,   243,   243,   243,   243,   243,   243,   243,
-     243,   243,   243,   243,   243,   243,   243,   243,   243,   244,
-     245,   246,   246,   246,   247,   248
+       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,   142,   143,   143,   144,
+     144,   145,   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,   151,
+     151,   152,   152,   153,   153,   154,   156,   155,   157,   157,
+     158,   159,   159,   159,   160,   160,   161,   161,   162,   163,
+     164,   165,   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,   185,   186,   186,   188,   187,   189,
+     187,   190,   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,   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,   226,   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,   260,   260,   260,   264,
+     265,   266,   266,   266,   267,   268,   269
 };
 
 /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */
@@ -2499,35 +2913,40 @@ static const yytype_uint8 yyr2[] =
 {
        0,     2,     1,     0,     1,     1,     2,     1,     1,     1,
        1,     1,     1,     4,     1,     0,     1,     1,     2,     1,
-       1,     1,     1,     1,     4,     1,     1,     0,     2,     1,
+       1,     1,     1,     1,     4,     4,     1,     1,     0,     2,
        1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
-       1,     1,     3,     2,     1,     1,     1,     1,     1,     1,
-       1,     4,     2,     1,     1,     3,     2,     0,     2,     2,
-       1,     3,     3,     0,     2,     0,     7,     0,     1,     1,
-       3,     1,     2,     3,     8,     6,     0,     6,     0,     7,
-       1,     2,     1,     2,     0,     1,     1,     2,     1,     2,
-       4,     3,     0,     8,     0,     9,     0,     5,     1,     2,
-       1,     2,     1,     0,     6,     2,     1,     4,     2,     1,
-       1,     1,     3,     1,     0,     6,     0,     5,     2,     4,
-       0,     1,     1,     2,     1,     1,     1,     1,     1,     1,
-       1,     1,     1,     1,     0,     2,     0,     2,     0,     2,
-       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,     1,
-       1,     3,     5,     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,
+       1,     1,     1,     1,     3,     2,     1,     1,     1,     1,
+       1,     1,     1,     4,     2,     1,     1,     0,     3,     2,
+       0,     2,     2,     1,     3,     3,     0,     2,     0,     2,
+       6,     0,     1,     1,     3,     1,     2,     3,     8,     6,
+       5,     6,     1,     2,     1,     2,     0,     1,     1,     2,
+       1,     2,     4,     3,     0,     8,     0,     9,     0,     5,
+       1,     2,     1,     2,     1,     0,     6,     2,     1,     4,
+       2,     1,     1,     1,     1,     3,     1,     0,     6,     0,
+       5,     2,     2,     4,     0,     1,     1,     2,     1,     1,
+       1,     1,     1,     1,     1,     1,     1,     1,     0,     2,
+       0,     2,     0,     2,     0,     9,     0,     8,     0,     1,
+       1,     2,     1,     4,     1,     1,     4,     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,     1,     1,     1,     0,     0,     4,     0,
+       4,     0,     2,     2,     2,     2,     3,     1,     1,     0,
+       1,     6,    10,    11,     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,
-       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,     2,     2,     3,     3,     3,     3,     3,     3,     3,
+       3,     3,     3,     3,     3,     3,     3,     3,     2,     2,
+       1,     3,     2,     4,     3,     3,     3,     3,     3,     3,
+       3,     3,     3,     3,     3,     3,     5,     2,     2,     2,
+       2,     3,     2,     0,     6,     1,     1,     1,     1,     5,
+       3,     5,     5,     4,     6,     4,     6,     6,     6,     3,
+       1,     2,     4,     4,     2,     4,     3
 };
 
 /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
@@ -2535,844 +2954,934 @@ static const yytype_uint8 yyr2[] =
    means the default is an error.  */
 static const yytype_uint16 yydefact[] =
 {
-     120,   300,   133,   172,   240,   169,   170,   171,     0,     0,
-      78,     0,     0,   126,   124,   125,     0,   132,     0,   131,
-     192,   176,   177,   272,   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,   239,    10,   233,   235,   237,   236,
-      39,   225,   234,   238,    41,    40,     0,     0,    72,    76,
-     120,    92,   109,   111,   110,   116,   113,     0,     0,   300,
-     214,   191,     0,   271,     0,     0,   118,     0,   103,   208,
-       0,   218,    65,   229,   230,     0,     0,   228,   292,   291,
-     274,   254,   253,     0,   223,     0,   209,   210,   211,   221,
-      82,     0,   106,   219,     0,    80,    44,    43,   120,    45,
-      29,     0,    46,    47,    48,    50,     0,    49,   294,     1,
-       6,   120,   300,     0,    68,     0,     0,    69,    53,   108,
-       0,   188,     0,   161,     0,   160,   162,   304,   123,     0,
+     124,   350,   177,   277,   174,   175,   176,     0,     0,    66,
+       0,     0,   130,   278,   128,   129,     0,   136,     0,   135,
+     225,   181,   182,   310,   131,     0,     0,     0,   180,   132,
+     134,   133,     0,     0,   179,   178,     0,     0,     0,   260,
+       0,     0,    14,   184,     0,     0,     0,     0,   241,   124,
+       0,     0,     2,   124,     5,    56,    12,     0,    38,    71,
+      33,    34,    35,    36,    37,    40,   124,    39,     7,    32,
+       0,   125,   126,     9,     8,    11,   275,   276,     0,   183,
+      10,   269,   271,   273,   272,    41,   258,   270,   274,    43,
+      31,    42,     0,     0,    76,     0,     0,   124,    94,   111,
+     113,   112,   114,   119,   116,     0,     0,   350,   247,   224,
+       0,   309,     0,   121,     0,   122,   308,   105,   241,     0,
+       0,   251,     0,   262,   263,   264,   265,   266,     0,     0,
+     261,   330,   329,   312,   292,   291,     0,   256,     0,   242,
+     243,   244,   254,    84,     0,   108,   252,     0,    82,    46,
+      45,   124,    47,    30,     0,    48,    49,    50,    52,     0,
+      51,   332,     1,     6,   124,   350,     0,    72,     0,     0,
+      73,    55,   110,     0,   221,     0,   166,     0,   165,   167,
+     354,   137,   127,   197,     0,   198,   199,     0,     0,     0,
        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
-       0,     0,     0,   290,   289,     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,   305,   206,   178,     0,
-     222,     0,     0,    27,     0,   293,     0,   242,     0,     0,
-       0,   273,   241,   212,   213,    83,   205,    59,    60,   105,
-     220,    58,    81,    42,    28,   120,     0,   205,     0,     0,
-      52,   301,   187,   186,     0,   134,   136,     0,   226,   268,
-     269,   266,   267,   247,   248,   250,   249,   245,   246,   282,
-     281,   277,   276,   284,   285,   286,   283,   279,   278,   280,
-     251,   252,   297,   260,   259,   258,   287,     0,   257,   256,
-     255,   243,   244,   264,   263,   261,   265,   262,     0,     0,
-     299,     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,   270,
-       0,    26,   217,     0,   231,     0,   224,     0,    57,     0,
-     120,    13,    57,     0,     0,     0,     0,     0,   138,     0,
-       0,   205,   163,   164,     0,   216,   275,     0,     0,   295,
-     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,   302,   303,   178,
-     135,     0,     0,   199,   137,   142,    57,     0,   288,   296,
-     298,    77,     0,    84,     0,   115,   207,   168,   167,     0,
-       0,   182,     0,     0,    98,   102,   100,   104,    63,   232,
-      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,   328,   327,     0,     0,     0,     0,     0,     0,     0,
+       0,     0,     0,     0,     0,     0,     0,     0,     0,   241,
+       0,     0,    58,    77,     0,   255,     0,    67,     0,   124,
+     117,     0,   228,     0,   231,   230,   356,   239,   211,     0,
+       0,    28,     0,   331,     0,     0,   280,     0,     0,     0,
+     311,   279,   245,   246,    85,   238,    62,    63,   107,   253,
+      61,    83,    44,    29,   124,     0,   238,     0,     0,    54,
+     351,   220,   219,     0,   138,   140,     0,   189,     0,   206,
+       0,   200,   204,   259,   306,   307,   304,   305,   285,   286,
+     288,   287,   283,   284,   320,   319,   315,   314,   322,   323,
+     324,   321,   317,   316,   318,   289,   290,   111,   338,     0,
+     337,     0,   340,   298,   297,   296,   325,     0,   295,   294,
+     293,   281,   282,   302,   301,   299,   303,   300,     0,     0,
+     333,     0,     0,     0,   349,    66,     0,     0,    26,    57,
+       0,   124,    17,    23,     0,    20,    19,    22,    21,   124,
+     115,     0,   241,   248,   172,     0,     0,   212,   216,   109,
+     123,   229,     0,    27,   250,   355,    66,   267,     0,   257,
+       0,    60,     0,   124,    13,    60,     0,     0,     0,     0,
+       0,   142,     0,     0,   238,   168,   169,     0,     0,     0,
+     185,   186,   191,   205,     0,     0,   345,     0,     0,   249,
+     313,     0,     0,     0,     0,   343,     0,    80,     0,     0,
+       0,   120,    18,   124,     0,     0,     0,     0,   218,   213,
+     238,     0,     0,    68,     0,   236,   235,   234,   237,     0,
+      65,    64,    53,     0,    66,   352,   353,   211,   139,     0,
+       0,   232,   141,   146,    60,     0,   190,   210,   209,   207,
+     208,     0,     0,     0,     0,   338,   341,   326,     0,   342,
+       0,     0,   339,    81,    86,     0,     0,   118,   240,   173,
+     172,     0,     0,   215,     0,     0,   100,   104,   102,   106,
+      66,    70,   268,    59,     0,    79,     0,   143,   144,     0,
+     124,   171,   170,   201,   193,   184,   194,     0,   192,     0,
+     191,   348,   346,   334,   347,   344,     0,     0,     0,    87,
+      90,    88,    25,    24,   217,   226,   214,    98,     0,   101,
+     103,    69,    66,   238,   124,   233,     0,   162,     0,     0,
+     124,   160,     0,   187,   184,   191,   195,     0,    28,    95,
+      91,    89,    28,    28,   238,    78,     0,   152,    57,   157,
+       0,     0,     0,   124,   150,   154,   155,   163,   221,   147,
+     161,   186,     0,     0,   196,    28,    93,     0,     0,     0,
+     222,     0,   124,   145,   151,     0,     0,   188,   186,    92,
+     227,    99,    96,    28,     0,     0,     0,   202,     0,     0,
+       0,   156,   153,   211,   203,    28,   223,     0,     0,   238,
+      97,   164
 };
 
 /* YYDEFGOTO[NTERM-NUM].  */
 static const yytype_int16 yydefgoto[] =
 {
-      -1,    49,    50,    51,    52,   317,   318,   319,   340,   341,
-     139,   140,   159,   320,   141,   392,   142,   251,   248,   456,
-      56,   236,   155,   156,    57,    58,    59,    60,   216,    61,
-      90,   143,   144,   443,   444,   445,   446,    62,   218,   424,
-     508,   425,   473,   426,   427,    63,   233,   145,    64,    65,
-     222,   223,    66,   326,   219,    67,   146,    69,    70,   358,
-     360,   402,   322,   459,   323,   437,   482,   483,   484,   464,
-     465,   466,   166,   324,   267,   362,   363,   380,    74,   333,
-     334,   335,   264,   325,   505,   102,    76,   472,   224,   225,
-     389,   404,   390,   348,   330,   125,   126,   127,   227,    77,
-      78,    79,   147,   128,   229,   230,    80,   115,   116,   117,
-      81,    82,    83,   167,    84,    85
+      -1,    51,    52,    53,    54,   350,   351,   352,   372,   373,
+     152,   153,   172,   353,   420,   154,   440,   155,   270,   267,
+      96,    97,   491,    58,   168,   169,    59,    60,    61,    62,
+      63,   156,   157,   518,   519,   520,   521,    64,   238,   486,
+     599,   487,   553,   488,   489,    65,   251,   158,    66,    67,
+     320,   243,    68,   359,   239,    69,   159,    71,    72,   391,
+     393,   450,   355,   534,   356,   500,   562,   563,   564,   539,
+     540,   541,   179,   357,   286,   395,   396,   428,    76,    77,
+      78,   402,   461,   508,   572,   185,   397,   462,   509,   186,
+     290,    79,   291,   292,   366,   367,   368,   283,   358,   593,
+     110,    81,   552,   244,   245,   437,   452,   438,   381,   363,
+     138,   139,   140,   247,    82,    83,    84,   160,   141,   234,
+     235,    85,   128,   129,   130,    86,   411,   321,   322,    87,
+      88,   180,    89,    90,    91
 };
 
 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
    STATE-NUM.  */
-#define YYPACT_NINF -400
+#define YYPACT_NINF -508
 static const yytype_int16 yypact[] =
 {
-    1663,   -67,  -400,  -400,  -400,  -400,  -400,  -400,   -10,   -17,
-    -400,   -16,    21,  -400,  -400,  -400,    92,  -400,  2106,  -400,
-      62,  -400,  -400,  2161,  -400,     5,   125,    13,  -400,  -400,
-    -400,  -400,    -3,   -60,  -400,  -400,  2106,    22,    90,  2106,
-    2106,  -400,  2106,  2106,  2106,  2106,  2106,   631,   122,   137,
-    -400,   502,  -400,  -400,  -400,    19,  -400,  2036,  -400,  -400,
-    -400,  -400,  -400,  -400,  1913,  -400,  -400,  -400,   186,    40,
-    -400,  -400,  -400,  -400,  -400,  -400,  -400,  -400,  -400,  -400,
-      38,  2615,  -400,  -400,  -400,  -400,   142,    26,  -400,  -400,
-    1913,  -400,  -400,  -400,  -400,  -400,  -400,   -84,   125,  -400,
-      -2,  -400,    27,   -45,  2106,    23,  -400,  2106,  -400,  2106,
-     147,   -45,  -400,  -400,  -400,    51,    76,   104,   -45,   -45,
-     356,   -45,   -45,   -57,  2615,    82,   108,  2106,  -400,  2615,
-     207,   210,  2106,  2106,   210,   211,  -400,  -400,   760,  -400,
-    -400,    93,  -400,  -400,  -400,  -400,   199,  -400,  -400,  -400,
-    -400,  1018,   155,   221,  -400,   134,   167,    38,   138,  -400,
-     235,    33,   236,  -400,   239,  -400,  -400,  -400,  -400,  2106,
-    2106,  2106,  2106,  2106,  2106,  2106,  2106,  2106,  2106,  2106,
-    2106,  2106,  2106,  2106,  2106,  2106,  2106,  2106,  2106,  2106,
-    2106,  2106,  2106,  -400,  -400,   240,  2106,  2106,  2106,  2106,
-    2106,  2106,  2106,  2106,  2106,  2106,  2106,  2106,  2106,  2106,
-    2106,  2106,  2106,    14,  -400,  -400,  2106,   232,  2106,  1147,
-    -400,   125,   130,   131,  -400,  -400,  -400,   127,    16,   126,
-     154,    95,  2219,  1788,   132,  -400,  2106,  -400,  2106,    90,
-    2106,  -400,  -400,  -400,  -400,  -400,   156,   159,  -400,  -400,
-    -400,   159,  -400,  -400,  -400,  1913,   135,   156,  2106,  2106,
-    -400,   160,  -400,  -400,   260,   219,   220,   266,  2615,   494,
-     330,   330,   330,  2981,  2981,  2981,  2981,   494,   494,  2615,
-    2615,  2615,  2615,  2615,  2615,  2615,  2615,  2615,  2615,  2615,
-    2676,  2737,  -400,   269,   269,   269,  2615,  2432,  2798,  2859,
-    2920,   494,   494,   356,   356,   -45,   -45,   -45,   143,  2493,
-     185,  2106,   277,   149,   161,  2290,  -400,   152,  1276,  -400,
-    -400,   163,  -400,  -400,  -400,  -400,  1147,  -400,   125,  2106,
-    -400,    28,   281,   157,   191,  -400,  -400,  -400,   166,  -400,
-     162,  1788,  -400,   164,  -400,   182,  2615,    67,   193,   210,
-     889,  -400,   -30,   198,   168,   128,   178,   125,   288,   125,
-     176,   156,   212,  -400,  2106,  -400,  -400,   304,  2361,  -400,
-    1913,  2106,   190,  -400,  -400,  1147,   180,   189,  2106,    67,
-    -400,  -400,   156,    17,    31,  1913,  2106,  -400,  -400,  -400,
-    -400,  2106,  -400,  -400,  -400,  2106,  1913,  -400,  -400,    16,
-    -400,   125,   192,  -400,   222,  -400,   193,   266,  2615,  -400,
-    -400,  -400,   203,     7,   194,  -400,  -400,  2615,   234,   213,
-     281,  -400,   214,   224,  -400,  -400,    31,  -400,   278,  -400,
-    2615,   -52,  -400,   209,   222,  -400,   125,   231,  -400,  -400,
-    -400,  2106,   242,   217,     7,  -400,  -400,  -400,  -400,  -400,
-    -400,  -400,   321,  -400,  -400,  1913,  -400,  1913,   156,  1405,
-    -400,   340,  -400,   324,   223,   286,  -400,  2554,  1788,  -400,
-    -400,  -400,  1788,  1788,   156,  -400,  -400,   225,  -400,  -400,
-     227,   216,   226,  1534,  -400,  -400,  -400,  -400,    33,  -400,
-    -400,  1788,  -400,   233,   237,   238,  -400,  1405,  -400,  -400,
-     350,  -400,  -400,  -400,  -400,  1788,   248,   245,   230,   255,
-    -400,    16,  1788,  -400,   256,   258,   156,  -400,  -400
+    1734,  1659,  -508,  -508,  -508,  -508,  -508,    -3,   -45,  -508,
+     -10,    93,  -508,  -508,  -508,  -508,    51,  -508,  2068,  -508,
+      84,  -508,  -508,  2125,  -508,    -5,    73,  2068,  -508,  -508,
+    -508,  -508,     8,   -49,  -508,  -508,   121,  2068,    22,   381,
+    2068,  2068,  -508,  -508,  2068,  2068,  2068,  2068,  2068,   714,
+     144,   155,  -508,   587,  -508,  -508,  -508,    32,  -508,   429,
+    -508,  -508,  -508,  -508,  -508,  -508,  1988,  -508,  -508,  -508,
+     126,   469,  -508,  -508,  -508,  -508,  -508,  -508,    15,  -508,
+    -508,  -508,  -508,  -508,  -508,   131,  2882,  -508,  -508,  -508,
+    -508,  -508,   219,   111,  -508,  2068,   224,  1988,  -508,  -508,
+    -508,  -508,  -508,  -508,  -508,   -23,   279,  -508,   -55,  -508,
+     115,   -43,  2068,   116,   118,  -508,   -43,  -508,  2068,   240,
+     145,   -43,  2068,  -508,  -508,  -508,  -508,  -508,   125,   154,
+     148,   -43,   -43,   386,   -43,   -43,   -39,  2820,   135,   163,
+    2068,  -508,  2820,   264,   265,  2068,  2068,   265,   274,  -508,
+    -508,   841,  -508,  -508,   161,  -508,  -508,  -508,  -508,   275,
+    -508,  -508,  -508,  -508,  1095,   225,   297,  -508,   201,   235,
+     131,   205,  -508,   305,    90,   307,  -508,   308,  -508,  -508,
+    -508,  -508,  -508,  -508,  2068,  -508,    16,  2068,  2068,  2068,
+    2068,  2068,  2068,  2068,  2068,  2068,  2068,  2068,  2068,  2068,
+    2068,  2068,  2068,  2068,  2068,  2068,  2068,  2068,  2068,  2068,
+    2068,  -508,  -508,    44,  2068,  2068,  2068,  2068,  2068,  2068,
+    2068,  2068,  2068,  2068,  2068,  2068,  2068,  2068,  2068,  2068,
+    2068,   146,  -508,  -508,   179,   217,   198,  -508,  2068,  1222,
+    -508,   279,   194,   199,  -508,  -508,  -508,   207,    23,   197,
+     342,  1861,   202,  -508,  2068,   204,  -508,  2068,   381,  2068,
+    -508,  -508,  -508,  -508,  -508,   223,   234,  -508,  -508,  -508,
+     234,  -508,  -508,  -508,  1988,   211,   223,  2068,  2068,  -508,
+     236,  -508,  -508,   343,   296,   301,   353,  2820,   259,   260,
+      -4,    16,  -508,  2820,  1087,   579,   579,   579,  3254,  3254,
+    3254,  3254,  1087,  1087,  2820,  2820,  2820,  2820,  2820,  2820,
+    2820,  2820,  2820,  2820,  2820,  2944,  3006,   282,   285,   257,
+    -508,   286,  -508,   679,   679,   679,  2820,  2324,  3068,  3130,
+    3192,  1087,  1087,   386,   386,   -43,   -43,   -43,   230,  2386,
+    -508,  2068,   281,   289,  -508,  -508,  2068,  2184,  -508,   243,
+     238,  1349,  -508,  -508,   254,  -508,  -508,  -508,  -508,  1222,
+    -508,   279,  2068,  -508,    47,   380,   252,   293,  -508,  -508,
+    -508,   272,   269,  1861,  -508,  2820,  -508,  -508,   299,  2820,
+     271,   304,   265,   968,  -508,   -26,   309,   276,   122,   288,
+     279,   398,   279,   290,   223,   312,  -508,   283,    12,    17,
+    -508,  -508,  -508,  -508,  2068,   325,  -508,   352,  2068,  -508,
+    -508,  2068,  2448,  2068,   328,  -508,   352,  -508,   287,   292,
+    2068,  -508,  -508,  1222,   298,   310,  2068,   271,  -508,  -508,
+     223,    38,    67,   355,  2068,  -508,  -508,  -508,  -508,  2068,
+    -508,  -508,  -508,  2068,  -508,  -508,  -508,    23,  -508,   279,
+     302,  -508,   329,  -508,   304,   353,  -508,  -508,  -508,  -508,
+    -508,   315,    19,  2510,   352,  -508,  -508,  2820,  2254,  -508,
+    2572,   352,  -508,  -508,    42,  2634,   306,  -508,  -508,  2820,
+     332,   314,   380,  -508,   316,   319,  -508,  -508,    67,  -508,
+    -508,  -508,  -508,  2820,   -36,  -508,   311,   329,  -508,   279,
+     233,  -508,  -508,  -508,  -508,   331,  -508,  2068,  -508,   338,
+    -508,  -508,  -508,  -508,  -508,  -508,  2068,   344,   317,    42,
+    -508,  -508,  -508,  -508,  -508,  -508,  -508,  -508,   448,  -508,
+    -508,  -508,  -508,   223,  1476,  -508,   450,  -508,   430,   326,
+     295,  -508,    15,  2820,   346,  -508,    26,  2696,  1861,  -508,
+    -508,  -508,  1861,  1861,   223,  -508,   336,  -508,   243,  -508,
+     339,   206,   334,  1603,  -508,  -508,  -508,  -508,    90,  -508,
+    -508,  -508,   337,    15,    26,  1861,  -508,   347,   349,   335,
+    -508,  2068,  1476,  -508,  -508,   462,   364,  -508,  -508,  -508,
+    -508,  -508,  -508,  1861,  2758,   354,   362,  -508,   365,   363,
+     361,  -508,  -508,    23,  -508,  1861,  -508,   371,   374,   223,
+    -508,  -508
 };
 
 /* YYPGOTO[NTERM-NUM].  */
 static const yytype_int16 yypgoto[] =
 {
-    -400,  -400,   205,  -400,   312,  -290,  -400,    53,  -399,   -29,
-       1,   -56,   -83,    49,     2,   -39,   334,   262,    45,  -400,
-    -400,  -400,  -400,  -400,  -400,  -400,  -400,  -400,  -400,  -400,
-    -400,  -400,  -400,  -400,  -400,   -44,   -42,  -400,  -400,   -23,
-    -400,   -20,  -400,  -400,  -400,  -400,  -400,  -400,  -400,  -400,
-       9,    77,  -400,  -400,  -400,  -400,     0,  -400,   318,  -400,
-    -400,  -400,    50,  -400,    56,  -400,   -90,  -400,   -75,  -400,
-    -400,   -55,  -400,     3,  -400,  -400,     6,    -9,  -400,  -384,
-    -400,  -304,   -77,     4,  -400,  -400,  -400,  -400,  -400,   386,
-     -92,    15,    35,  -246,  -400,   -93,  -400,  -400,  -400,  -400,
-    -400,  -400,  -400,  -115,  -119,   370,   -48,  -400,   179,  -400,
-     -13,  -400,  -400,  -400,  -400,  -400
+    -508,  -508,   333,  -508,   443,  -339,  -508,   147,  -228,   -41,
+       1,   -57,   411,    37,   -48,     2,    59,   459,   375,   140,
+    -332,  -508,  -508,  -508,  -508,  -508,  -508,  -508,  -508,  -508,
+    -508,  -508,  -508,  -508,  -508,     5,     6,  -508,  -508,    35,
+    -508,    39,  -508,  -508,  -508,  -508,  -508,  -508,  -508,  -508,
+      13,    41,  -508,  -508,  -508,  -508,     0,  -508,   455,  -508,
+    -508,  -508,    61,  -508,    63,  -508,   -53,  -508,   -35,  -508,
+    -508,    -9,  -508,     3,  -508,  -508,    75,    52,  -508,  -508,
+    -508,  -508,  -507,  -508,  -508,  -169,  -508,  -459,  -508,  -471,
+    -508,  -440,  -508,   242,  -433,  -508,  -334,   -27,     4,  -508,
+    -508,  -508,  -508,  -508,   517,  -101,    95,   123,  -231,  -508,
+    -106,  -508,  -508,  -508,  -508,  -508,  -508,  -508,  -130,   -54,
+     498,   -52,  -508,   291,  -508,   -12,  -508,  -204,  -188,  -508,
+    -508,  -508,  -508,  -508,  -508
 };
 
 /* 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 -337
 static const yytype_int16 yytable[] =
 {
-      68,    53,    55,    73,    75,   100,   226,   217,   158,   157,
-     103,   352,   244,   249,   250,   433,   234,   310,   138,   331,
-     331,    96,    86,   111,    92,    93,   118,   119,   381,   120,
-     121,   122,   124,   129,   158,    96,   376,   -70,    94,    87,
-     441,   220,   221,   240,     2,   193,   194,   195,   169,    54,
-      71,    68,    53,    55,    73,    75,    72,   422,    13,    14,
-      15,   109,    17,   423,    19,   101,   110,   262,   442,   492,
-      92,    93,   391,   493,   494,   241,   211,    24,   212,   421,
-     457,   213,   254,   263,    94,   414,    29,    30,    31,    97,
-     195,   124,   501,   113,   232,   114,   129,   313,    92,    93,
-      54,    71,   387,   105,    89,    91,   509,    72,    98,   332,
-     420,    88,    94,   515,   129,   406,   450,   343,   308,   124,
-     124,   212,   108,   344,   213,   148,   104,   514,    92,    93,
-     378,   397,   379,   398,   107,   311,   419,   149,   169,   353,
-     354,   312,    94,   112,   151,   214,    95,   215,   228,   231,
-     235,    68,    53,    55,    73,    75,   268,   269,   270,   271,
-     272,   273,   274,   275,   276,   277,   278,   279,   280,   281,
-     282,   283,   284,   285,   286,   287,   288,   289,   290,   291,
-     238,   388,   237,   293,   294,   295,   296,   297,   298,   299,
-     300,   301,   302,   303,   304,   305,   306,   307,   129,   309,
-      54,    71,   160,   124,   239,   315,   242,    72,   243,   337,
-     245,   161,   477,   246,   252,   160,   162,   163,   255,    68,
-      53,   321,   -71,   124,   257,   129,   350,   346,   495,   164,
-     327,   165,   160,   258,   259,     2,   377,   260,   261,   265,
-     338,   161,   266,   292,   314,   124,   124,   163,   329,    13,
-      14,    15,   412,    17,   240,    19,  -113,   328,   336,   349,
-     347,   165,   355,   356,   342,   400,   351,   403,    24,   361,
-     518,   429,   357,   359,   367,   365,   461,    29,    30,    31,
-     369,   370,   371,   373,   331,   254,   386,   411,   375,   382,
-       2,   383,  -112,   384,   254,   391,   385,   395,   368,   399,
-     396,   405,   428,   401,    13,    14,    15,   409,    17,   403,
-      19,   415,   407,   432,   158,   413,   129,   435,    68,    53,
-     321,   416,   436,    24,   474,   447,    68,    53,   321,   158,
-     462,   461,    29,    30,    31,   440,   378,   338,   449,   451,
-     158,   458,   455,   487,   460,   452,   468,   431,   469,   488,
-     496,   408,   497,   507,   489,   512,   256,   498,   124,   193,
-     194,   195,  -153,   150,   502,   417,   511,   438,   503,   170,
-     504,   374,   475,   129,   476,    68,    53,   321,   430,   510,
-     206,   207,   208,   209,   210,   462,   513,   168,   516,   517,
-     211,   154,   212,   247,   393,   213,  -155,  -155,  -155,   158,
-     470,   158,   471,   453,   178,   179,   454,   506,   499,   448,
-     490,   500,   106,   439,   418,   123,   434,  -154,   345,     0,
-     193,   194,   195,     0,   196,   197,   198,     0,   467,     0,
-       0,     0,     0,     0,     0,     0,     0,   463,   204,   205,
-       0,   206,   207,   208,   209,   210,   193,   194,   195,     0,
-       0,   211,     0,   212,     0,     0,   213,     0,     0,   481,
-     479,   480,   485,   486,     0,   463,     0,     0,     0,   208,
-     209,   210,     0,     0,     0,     0,     0,   211,     0,   212,
-       0,     0,   213,   481,   479,   480,   485,   486,     0,     0,
-       0,     0,     0,     0,     0,     0,     0,   481,   479,   480,
-     485,   486,    -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,     0,     0,     0,     0,     0,     0,     0,     0,
-       0,     0,     0,     0,   193,   194,   195,     0,   196,   197,
-     198,     0,    39,    40,     0,     0,     0,     0,     0,     0,
-       0,    41,  -155,  -155,     0,   206,   207,   208,   209,   210,
-       0,     0,     0,    42,     0,   211,     0,   212,    43,    44,
-     213,     0,     0,    45,     0,    46,     0,    47,     0,    48,
-       0,     0,     0,    -4,     1,     2,     3,     4,     0,     5,
-       6,     7,     8,     9,    10,    11,     0,     0,     0,    13,
+      70,    55,    57,    75,    80,   246,   108,   170,   151,   171,
+     263,   111,   252,   417,   496,   116,   457,   289,   183,   288,
+     424,   459,   510,   504,   104,   121,   364,   343,   131,   132,
+     504,   429,   133,   134,   135,   137,   142,    56,   213,   104,
+     171,   364,   -74,   344,   433,   385,    93,   317,   211,   212,
+     213,   546,   105,    70,    55,    57,    75,    80,   249,   100,
+     101,    73,   259,    74,   586,   187,   106,   114,   255,   545,
+     230,   571,   102,   231,   118,   516,   113,   439,    95,   119,
+     229,   598,   230,   137,   476,   231,   574,   109,   100,   101,
+      56,   268,   269,   484,   273,   260,    99,   483,   532,   485,
+     137,   102,   588,   517,   240,   241,   142,   400,   100,   101,
+     137,   401,   495,    98,    73,   405,    74,   365,   112,   242,
+      94,   102,   289,   338,   281,   445,   446,   377,   142,   505,
+     506,   406,   482,   137,   137,   117,   120,   506,   414,   184,
+     282,   173,   184,   184,   184,   122,   507,   161,   526,   317,
+     426,   174,   427,   507,   415,   162,   175,   176,   531,   164,
+     318,   100,   101,   454,    70,    55,    57,    75,    80,   177,
+     607,   178,   287,   319,   102,   293,   294,   295,   296,   297,
+     298,   299,   300,   301,   302,   303,   304,   305,   306,   307,
+     308,   309,   310,   311,   312,   313,   314,   315,   316,   481,
+     555,    56,   323,   324,   325,   326,   327,   328,   329,   330,
+     331,   332,   333,   334,   335,   336,   337,   142,   339,   466,
+     103,   173,   232,   386,   387,    73,   347,    74,   472,   458,
+     460,   174,   187,   383,   233,   236,   181,   176,   248,    70,
+      55,   354,   375,   253,  -111,   142,   250,   379,   254,   258,
+      12,   178,    14,    15,   360,    17,   425,    19,   256,   257,
+     317,   261,   318,   371,   262,   137,   137,   264,   265,   340,
+      24,   341,   100,   101,    99,   342,   512,   271,   536,    29,
+      30,    31,    99,   515,   317,   102,   100,   101,   274,   448,
+     173,   451,   418,   -75,   100,   101,   100,   101,   181,   102,
+     276,   277,   556,   278,   492,   279,   435,   102,   280,   102,
+     284,   285,    12,   345,    14,    15,   273,    17,   259,    19,
+     576,   346,  -116,   579,   577,   578,   273,   361,   380,   412,
+     362,   369,    24,   537,   137,   382,   374,   142,   376,   388,
+     536,    29,    30,    31,   384,    99,   389,   589,   451,   390,
+     142,    70,    55,   354,   392,    99,   394,   100,   101,    70,
+      55,   354,   398,   399,   409,   600,  -158,   100,   101,  -241,
+     102,   421,  -335,   318,   371,  -336,   407,   608,   611,   416,
+     102,   423,   404,   364,   123,   124,   430,   436,   125,   126,
+     127,   494,   463,   242,   431,   537,   467,   318,   535,   468,
+    -115,   470,   432,   242,   434,   242,   413,   439,   475,   443,
+     444,   447,   449,   455,   479,   464,   456,   453,   471,   474,
+     490,   473,   142,    70,    55,   354,   503,   493,  -159,   498,
+     499,   477,   165,     2,     3,   426,     4,     5,     6,   523,
+     242,   525,   528,   527,   478,   533,   542,    13,   544,   548,
+     549,   554,    18,   567,    20,   568,    21,    22,   370,   569,
+     144,   573,   242,   580,    23,   596,   582,   583,   465,   592,
+     587,    27,   181,    28,   166,   597,   604,   211,   212,   213,
+     590,    33,   591,    34,    35,   603,    12,   602,    14,    15,
+     605,    17,    37,    19,   606,   543,   163,   275,   422,    39,
+     538,   226,   227,   228,   547,   609,    24,   610,   237,   229,
+     581,   230,   242,   501,   231,    29,    30,    31,   167,   266,
+      40,    41,   441,   529,   550,   551,   182,   530,   584,   595,
+     502,   570,   524,   403,   561,   559,   560,   565,   566,    43,
+     538,   585,    44,   115,   497,   136,   142,    45,    46,   378,
+     480,     0,    47,     0,    48,     0,     0,     0,    50,     0,
+       0,     0,     0,   561,   559,   560,   565,   566,     0,   594,
+       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
+       0,     0,   561,   559,   560,   565,   566,    -4,     0,     0,
+       1,     2,     3,     0,     4,     5,     6,     7,     8,     9,
+      10,     0,     0,    11,    12,    13,    14,    15,    16,    17,
+      18,    19,     0,     0,    21,    22,     0,     0,   188,     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,  -337,  -337,  -337,    36,
+      37,    38,     0,     0,   196,   197,     0,    39,     0,     0,
+       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
+     211,   212,   213,     0,   214,   215,   216,     0,    40,    41,
+       0,     0,     0,     0,     0,     0,     0,    42,     0,   222,
+     223,     0,   224,   225,   226,   227,   228,    43,     0,     0,
+      44,     0,   229,     0,   230,    45,    46,   231,     0,     0,
+      47,     0,    48,     0,    49,     0,    50,     1,     2,     3,
+      -4,     4,     5,     6,     7,     8,     9,    10,     0,     0,
+       0,    12,    13,    14,    15,    16,    17,    18,    19,    20,
+       0,    21,    22,   143,     0,   144,     0,     0,     0,    23,
+     145,    24,    25,     0,    26,   146,    27,     0,    28,   147,
+      29,    30,    31,     0,     0,    32,    33,     0,    34,    35,
+     211,   212,   213,     0,     0,     0,    36,    37,    38,     0,
+     148,     0,     0,     0,    39,     0,     0,     0,     0,     0,
+       0,     0,   224,   225,   226,   227,   228,     0,     0,     0,
+       0,     0,   229,     0,   230,    40,    41,   231,     0,     0,
+       0,     0,     0,     0,   149,     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,   150,     4,     5,
+       6,     7,     8,     9,    10,     0,     0,     0,    12,    13,
       14,    15,    16,    17,    18,    19,    20,     0,    21,    22,
-     130,     0,   131,     0,     0,     0,    23,   132,    24,    25,
-       0,    26,   133,    27,     0,    28,   134,    29,    30,    31,
+     143,     0,   144,     0,     0,     0,    23,   145,    24,    25,
+       0,    26,   146,    27,     0,    28,   147,    29,    30,    31,
        0,     0,    32,    33,     0,    34,    35,     0,     0,     0,
-       0,     0,     0,    36,    37,     0,   135,     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,
-     136,     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,   137,     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,   130,
-       0,   131,     0,     0,     0,    23,   132,    24,    25,     0,
-      26,   133,    27,     0,    28,   134,    29,    30,    31,     0,
-       0,    32,    33,     0,    34,    35,     0,     0,     0,     0,
-       0,     0,    36,    37,     0,   135,     0,     0,     0,    38,
+       0,     0,     0,    36,    37,    38,     0,   148,     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,   149,     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,   272,     4,     5,     6,     7,     8,
+       9,    10,     0,     0,     0,    12,    13,    14,    15,    16,
+      17,    18,    19,    20,     0,    21,    22,   143,     0,   144,
+       0,     0,     0,    23,   145,    24,    25,     0,    26,   146,
+      27,     0,    28,   147,    29,    30,    31,     0,     0,    32,
+      33,     0,    34,    35,     0,     0,     0,     0,     0,     0,
+      36,    37,    38,     0,   148,     0,     0,     0,    39,     0,
        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
-      39,    40,     0,     0,     0,     0,     0,     0,     0,   136,
+       0,     0,     0,     0,     0,     0,     0,     0,     0,    40,
+      41,     0,     0,     0,     0,     0,     0,     0,   149,     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,   442,     4,     5,     6,     7,     8,     9,    10,     0,
+       0,    11,    12,    13,    14,    15,    16,    17,    18,    19,
+       0,     0,    21,    22,     0,     0,  -337,     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,    38,
+       0,     0,  -337,  -337,     0,    39,     0,     0,     0,     0,
+       0,     0,     0,     0,     0,     0,     0,     0,   211,   212,
+     213,     0,   214,   215,   216,     0,    40,    41,     0,     0,
+       0,     0,     0,     0,     0,    42,     0,  -337,  -337,     0,
+     224,   225,   226,   227,   228,    43,     0,     0,    44,     0,
+     229,     0,   230,    45,    46,   231,     0,     0,    47,     0,
+      48,     0,    49,     0,    50,     1,     2,     3,    -3,     4,
+       5,     6,     7,     8,     9,    10,     0,     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,    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,    42,     0,     0,     0,     0,    43,    44,     0,     0,
-       0,    45,     0,    46,     0,    47,     0,    48,     0,     0,
-       0,   253,     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,   130,     0,
-     131,     0,     0,     0,    23,   132,    24,    25,     0,    26,
-     133,    27,     0,    28,   134,    29,    30,    31,     0,     0,
+       0,     0,     0,    40,    41,     0,     0,     0,     0,     0,
+       0,     0,   348,     0,     0,     0,     0,     0,     0,     0,
+       0,     0,    43,     0,     0,    44,     0,     0,     0,     0,
+      45,    46,     0,     0,     0,    47,     0,   349,     0,    49,
+       0,    50,     1,     2,     3,   -15,     4,     5,     6,     7,
+       8,     9,    10,     0,     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,   135,     0,     0,     0,    38,     0,
+       0,    36,    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,   136,     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,
-     394,     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,     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,     0,     0,     0,     0,     0,     0,     0,
-       0,     0,     0,     0,     0,     0,     0,    39,    40,     0,
-       0,     0,     0,     0,     0,     0,   316,     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,
+      40,    41,     0,     0,     0,     0,     0,     0,     0,   348,
+       0,     0,     0,     0,     0,     0,     0,     0,     0,    43,
+       0,     0,    44,     0,     0,     0,     0,    45,    46,     0,
+       0,     0,    47,     0,   349,     0,    49,     0,    50,     1,
+       2,     3,   -16,     4,     5,     6,     7,     8,     9,    10,
+       0,     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,
-       0,     0,     0,     0,     0,     0,    39,    40,     0,     0,
-       0,     0,     0,     0,     0,   316,     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,     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,     0,     0,     0,
-       0,     0,     0,     0,     0,    39,    40,     0,     0,     0,
-       0,     0,     0,     0,   478,     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,
+      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,   478,     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,
+       0,     0,     0,     0,     0,     0,     0,    40,    41,     0,
+       0,     0,     0,     0,     0,     0,   557,     0,     0,     0,
+       0,     0,     0,     0,     0,     0,    43,     0,     0,    44,
+       0,     0,     0,     0,    45,    46,     0,     0,     0,    47,
+       0,   558,     0,    49,     0,    50,     1,     2,     3,  -148,
+       4,     5,     6,     7,     8,     9,    10,     0,     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,     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,     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,   130,     0,   131,
-       0,     0,     0,    23,   132,    24,    25,     0,    26,   133,
-      27,     0,    28,   134,    29,    30,    31,     0,     0,    32,
-      33,     0,    34,    35,     0,     0,     0,     0,     0,     0,
-      36,    37,     0,   135,     0,     0,     0,    38,     0,     0,
+       0,     0,  -137,     0,     0,    36,    37,    38,     0,     0,
+       0,     0,     0,    39,  -137,     0,  -137,     0,  -137,  -137,
+       0,  -137,     0,  -137,  -137,     0,     0,     0,     0,  -137,
+    -137,     0,     0,     0,    40,    41,  -137,     0,     0,     0,
+       0,     0,  -137,   557,  -137,  -137,  -137,  -137,     0,     0,
+       0,     0,     0,    43,     0,     0,    44,     0,     0,     0,
+       0,    45,    46,     0,     0,     0,    47,     0,   558,     0,
+      49,     0,    50,     0,    -3,     0,  -149,     1,     2,     3,
+       0,     4,     5,     6,     7,     8,     9,    10,     0,    92,
+      11,    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,    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,     0,     0,    39,    40,
-       0,     0,     0,     0,     0,     0,     0,   136,     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,     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,   130,     0,   131,     0,     0,     0,    23,   132,
-      24,    25,     0,    26,   133,    27,     0,    28,   134,    29,
-      30,    31,     0,     0,    32,    33,     0,    34,    35,     0,
-       0,     0,     0,     0,     0,    36,    37,     0,   135,     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,    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,     1,     2,     3,     0,     4,     5,
+       6,     7,     8,     9,    10,     0,  -124,     0,    12,    13,
+      14,    15,    16,    17,    18,    19,    20,     0,    21,    22,
+     143,     0,   144,     0,     0,     0,    23,   145,    24,    25,
+       0,    26,   146,    27,     0,    28,   147,    29,    30,    31,
+       0,     0,    32,    33,     0,    34,    35,     0,     0,     0,
+       0,     0,     0,    36,    37,    38,     0,   148,     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,   136,     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,   152,
-      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,   131,     0,     0,
-       0,    23,     0,     0,     0,     0,     0,     0,    27,     0,
-      28,   153,     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,    40,    41,     0,     0,     0,     0,     0,     0,
+       0,   149,     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,     0,     4,     5,     6,     7,     8,
+       9,    10,     0,     0,     0,    12,    13,    14,    15,    16,
+      17,    18,    19,    20,     0,    21,    22,   143,     0,   144,
+       0,     0,     0,    23,   145,    24,    25,     0,    26,   146,
+      27,     0,    28,   147,    29,    30,    31,     0,     0,    32,
+      33,     0,    34,    35,     0,     0,     0,     0,     0,     0,
+      36,    37,    38,     0,   148,     0,     0,     0,    39,     0,
        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
-       0,    39,    40,     0,     0,     0,     0,     0,   170,     0,
+       0,   107,     2,     3,     0,     4,     5,     6,     0,    40,
+      41,     0,     0,     0,     0,     0,    13,     0,   149,     0,
+       0,    18,     0,    20,     0,    21,    22,     0,    43,     0,
+       0,    44,     0,    23,     0,     0,    45,    46,     0,     0,
+      27,    47,    28,    48,     0,    49,     0,    50,     0,     0,
+      33,     0,    34,    35,     0,     0,     0,     0,   107,     2,
+       3,    37,     4,     5,     6,     0,     0,     0,    39,     0,
+       0,     0,     0,    13,     0,     0,     0,     0,    18,     0,
+      20,     0,    21,    22,     0,     0,     0,     0,     0,    40,
+      41,     0,     0,     0,     0,     0,     0,     0,     0,    28,
+       0,     0,     0,     0,     0,     0,     0,    33,    43,    34,
+      35,    44,     0,     0,     0,     0,    45,    46,     0,     0,
+       0,    47,     0,    48,     0,    39,     0,    50,     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,   188,     0,     0,     0,     0,     0,     0,
        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
-       0,     0,    45,     0,    46,   171,   172,   173,    48,   174,
-     175,   176,   177,   178,   179,   180,   181,   182,   183,   184,
-     185,   186,   187,   188,   189,   190,   191,   192,     0,   193,
-     194,   195,     0,   196,   197,   198,     0,     0,     0,     0,
-       0,   199,   200,     0,   201,   202,   203,   204,   205,   170,
-     206,   207,   208,   209,   210,     0,     0,     0,     0,     0,
-     211,     0,   212,     0,     0,   213,     0,     0,     0,     0,
-       0,   339,     0,     0,     0,     0,   171,   172,   173,     0,
-     174,   175,   176,   177,   178,   179,   180,   181,   182,   183,
-     184,   185,   186,   187,   188,   189,   190,   191,   192,     0,
-     193,   194,   195,     0,   196,   197,   198,     0,     0,     0,
-       0,     0,   199,   200,     0,   201,   202,   203,   204,   205,
-     170,   206,   207,   208,   209,   210,     0,     0,     0,     0,
-       0,   211,     0,   212,     0,     0,   213,     0,     0,     0,
-       0,     0,   372,     0,     0,     0,     0,   171,   172,   173,
-       0,   174,   175,   176,   177,   178,   179,   180,   181,   182,
-     183,   184,   185,   186,   187,   188,   189,   190,   191,   192,
-       0,   193,   194,   195,     0,   196,   197,   198,     0,     0,
-       0,     0,     0,   199,   200,     0,   201,   202,   203,   204,
-     205,   170,   206,   207,   208,   209,   210,     0,     0,     0,
-       0,     0,   211,     0,   212,     0,     0,   213,     0,     0,
-       0,     0,     0,   410,     0,     0,     0,     0,   171,   172,
-     173,     0,   174,   175,   176,   177,   178,   179,   180,   181,
-     182,   183,   184,   185,   186,   187,   188,   189,   190,   191,
-     192,     0,   193,   194,   195,     0,   196,   197,   198,     0,
-       0,     0,   170,     0,   199,   200,   364,   201,   202,   203,
-     204,   205,     0,   206,   207,   208,   209,   210,     0,     0,
-       0,     0,     0,   211,     0,   212,     0,     0,   213,   171,
-     172,   173,     0,   174,   175,   176,   177,   178,   179,   180,
-     181,   182,   183,   184,   185,   186,   187,   188,   189,   190,
-     191,   192,     0,   193,   194,   195,     0,   196,   197,   198,
-       0,     0,     0,   170,     0,   199,   200,     0,   201,   202,
-     203,   204,   205,     0,   206,   207,   208,   209,   210,     0,
-       0,     0,     0,     0,   211,     0,   212,   366,     0,   213,
-     171,   172,   173,     0,   174,   175,   176,   177,   178,   179,
-     180,   181,   182,   183,   184,   185,   186,   187,   188,   189,
-     190,   191,   192,     0,   193,   194,   195,     0,   196,   197,
-     198,     0,     0,     0,   170,     0,   199,   200,   491,   201,
-     202,   203,   204,   205,     0,   206,   207,   208,   209,   210,
-       0,     0,     0,     0,     0,   211,     0,   212,     0,     0,
-     213,   171,   172,   173,     0,   174,   175,   176,   177,   178,
-     179,   180,   181,   182,   183,   184,   185,   186,   187,   188,
-     189,   190,   191,   192,     0,   193,   194,   195,     0,   196,
-     197,   198,     0,     0,     0,   170,     0,   199,   200,     0,
-     201,   202,   203,   204,   205,     0,   206,   207,   208,   209,
-     210,     0,     0,     0,     0,     0,   211,     0,   212,     0,
-       0,   213,   171,   172,   173,     0,   174,   175,   176,   177,
-     178,   179,     0,     0,     0,     0,     0,     0,     0,     0,
-       0,     0,     0,     0,   192,     0,   193,   194,   195,     0,
-     196,   197,   198,     0,     0,     0,   170,     0,     0,     0,
-       0,   201,   202,   203,   204,   205,     0,   206,   207,   208,
-     209,   210,     0,     0,     0,     0,     0,   211,     0,   212,
-       0,     0,   213,   171,   172,   173,     0,   174,   175,   176,
-     177,   178,   179,     0,     0,     0,     0,     0,     0,     0,
-       0,     0,     0,     0,     0,     0,     0,   193,   194,   195,
-       0,   196,   197,   198,     0,     0,     0,   170,     0,     0,
-       0,     0,   201,   202,   203,   204,   205,     0,   206,   207,
-     208,   209,   210,     0,     0,     0,     0,     0,   211,     0,
-     212,     0,     0,   213,   171,   172,   173,     0,   174,   175,
-     176,   177,   178,   179,     0,     0,     0,     0,     0,     0,
-       0,     0,     0,     0,     0,     0,     0,     0,   193,   194,
-     195,     0,   196,   197,   198,     0,     0,     0,   170,     0,
-       0,     0,     0,     0,   202,   203,   204,   205,     0,   206,
-     207,   208,   209,   210,     0,     0,     0,     0,     0,   211,
-       0,   212,     0,     0,   213,   171,   172,   173,     0,   174,
-     175,   176,   177,   178,   179,     0,     0,     0,     0,     0,
-       0,     0,     0,     0,     0,     0,     0,     0,     0,   193,
-     194,   195,     0,   196,   197,   198,     0,     0,     0,   170,
-       0,     0,     0,     0,     0,     0,   203,   204,   205,     0,
-     206,   207,   208,   209,   210,     0,     0,     0,     0,     0,
-     211,     0,   212,     0,     0,   213,   171,   172,   173,     0,
-     174,   175,   176,   177,   178,   179,     0,     0,     0,     0,
+       0,     0,     0,     0,     0,     0,     0,     0,    47,     0,
+      48,   189,   190,   191,    50,   192,   193,   194,   195,   196,
+     197,   198,   199,   200,   201,   202,   203,   204,   205,   206,
+     207,   208,   209,   210,     0,   211,   212,   213,     0,   214,
+     215,   216,     0,     0,     0,     0,     0,   217,   218,     0,
+     219,   220,   221,   188,   222,   223,     0,   224,   225,   226,
+     227,   228,     0,     0,     0,     0,     0,   229,     0,   230,
+       0,     0,   231,     0,     0,     0,     0,     0,   419,     0,
+       0,   189,   190,   191,     0,   192,   193,   194,   195,   196,
+     197,   198,   199,   200,   201,   202,   203,   204,   205,   206,
+     207,   208,   209,   210,     0,   211,   212,   213,     0,   214,
+     215,   216,     0,     0,     0,     0,     0,   217,   218,     0,
+     219,   220,   221,   188,   222,   223,     0,   224,   225,   226,
+     227,   228,     0,     0,     0,     0,     0,   229,     0,   230,
+       0,     0,   231,     0,     0,     0,     0,     0,   513,     0,
+       0,   189,   190,   191,     0,   192,   193,   194,   195,   196,
+     197,   198,   199,   200,   201,   202,   203,   204,   205,   206,
+     207,   208,   209,   210,     0,   211,   212,   213,     0,   214,
+     215,   216,     0,     0,     0,   188,     0,   217,   218,   408,
+     219,   220,   221,     0,   222,   223,     0,   224,   225,   226,
+     227,   228,     0,     0,     0,     0,     0,   229,     0,   230,
+       0,     0,   231,   189,   190,   191,     0,   192,   193,   194,
+     195,   196,   197,   198,   199,   200,   201,   202,   203,   204,
+     205,   206,   207,   208,   209,   210,     0,   211,   212,   213,
+       0,   214,   215,   216,     0,     0,     0,   188,     0,   217,
+     218,     0,   219,   220,   221,     0,   222,   223,     0,   224,
+     225,   226,   227,   228,     0,     0,     0,     0,     0,   229,
+       0,   230,   410,     0,   231,   189,   190,   191,     0,   192,
+     193,   194,   195,   196,   197,   198,   199,   200,   201,   202,
+     203,   204,   205,   206,   207,   208,   209,   210,     0,   211,
+     212,   213,     0,   214,   215,   216,     0,     0,     0,   188,
+       0,   217,   218,     0,   219,   220,   221,     0,   222,   223,
+       0,   224,   225,   226,   227,   228,     0,     0,     0,     0,
+       0,   229,     0,   230,   469,     0,   231,   189,   190,   191,
+       0,   192,   193,   194,   195,   196,   197,   198,   199,   200,
+     201,   202,   203,   204,   205,   206,   207,   208,   209,   210,
+       0,   211,   212,   213,     0,   214,   215,   216,     0,     0,
+       0,   188,     0,   217,   218,     0,   219,   220,   221,     0,
+     222,   223,     0,   224,   225,   226,   227,   228,     0,     0,
+       0,     0,     0,   229,     0,   230,   511,     0,   231,   189,
+     190,   191,     0,   192,   193,   194,   195,   196,   197,   198,
+     199,   200,   201,   202,   203,   204,   205,   206,   207,   208,
+     209,   210,     0,   211,   212,   213,     0,   214,   215,   216,
+       0,     0,     0,   188,     0,   217,   218,     0,   219,   220,
+     221,     0,   222,   223,     0,   224,   225,   226,   227,   228,
+       0,     0,     0,     0,     0,   229,     0,   230,   514,     0,
+     231,   189,   190,   191,     0,   192,   193,   194,   195,   196,
+     197,   198,   199,   200,   201,   202,   203,   204,   205,   206,
+     207,   208,   209,   210,     0,   211,   212,   213,     0,   214,
+     215,   216,     0,     0,     0,   188,     0,   217,   218,     0,
+     219,   220,   221,     0,   222,   223,     0,   224,   225,   226,
+     227,   228,     0,     0,     0,     0,     0,   229,     0,   230,
+     522,     0,   231,   189,   190,   191,     0,   192,   193,   194,
+     195,   196,   197,   198,   199,   200,   201,   202,   203,   204,
+     205,   206,   207,   208,   209,   210,     0,   211,   212,   213,
+       0,   214,   215,   216,     0,     0,     0,   188,     0,   217,
+     218,   575,   219,   220,   221,     0,   222,   223,     0,   224,
+     225,   226,   227,   228,     0,     0,     0,     0,     0,   229,
+       0,   230,     0,     0,   231,   189,   190,   191,     0,   192,
+     193,   194,   195,   196,   197,   198,   199,   200,   201,   202,
+     203,   204,   205,   206,   207,   208,   209,   210,     0,   211,
+     212,   213,     0,   214,   215,   216,     0,     0,     0,   188,
+       0,   217,   218,     0,   219,   220,   221,     0,   222,   223,
+       0,   224,   225,   226,   227,   228,     0,     0,     0,     0,
+       0,   229,     0,   230,   601,     0,   231,   189,   190,   191,
+       0,   192,   193,   194,   195,   196,   197,   198,   199,   200,
+     201,   202,   203,   204,   205,   206,   207,   208,   209,   210,
+       0,   211,   212,   213,     0,   214,   215,   216,     0,     0,
+       0,   188,     0,   217,   218,     0,   219,   220,   221,     0,
+     222,   223,     0,   224,   225,   226,   227,   228,     0,     0,
+       0,     0,     0,   229,     0,   230,     0,     0,   231,   189,
+     190,   191,     0,   192,   193,   194,   195,   196,   197,   198,
+     199,   200,   201,   202,   203,   204,   205,   206,   207,   208,
+     209,   210,     0,   211,   212,   213,     0,   214,   215,   216,
+       0,     0,     0,   188,     0,   217,   218,     0,   219,   220,
+     221,     0,     0,   223,     0,   224,   225,   226,   227,   228,
+       0,     0,     0,     0,     0,   229,     0,   230,     0,     0,
+     231,   189,   190,   191,     0,   192,   193,   194,   195,   196,
+     197,     0,     0,     0,     0,     0,     0,     0,     0,     0,
+       0,     0,     0,   210,     0,   211,   212,   213,     0,   214,
+     215,   216,     0,     0,     0,   188,     0,     0,     0,     0,
+     219,   220,   221,     0,   222,   223,     0,   224,   225,   226,
+     227,   228,     0,     0,     0,     0,     0,   229,     0,   230,
+       0,     0,   231,   189,   190,   191,     0,   192,   193,   194,
+     195,   196,   197,     0,     0,     0,     0,     0,     0,     0,
+       0,     0,     0,     0,     0,     0,     0,   211,   212,   213,
+       0,   214,   215,   216,     0,     0,     0,   188,     0,     0,
+       0,     0,   219,   220,   221,     0,   222,   223,     0,   224,
+     225,   226,   227,   228,     0,     0,     0,     0,     0,   229,
+       0,   230,     0,     0,   231,   189,   190,   191,     0,   192,
+     193,   194,   195,   196,   197,     0,     0,     0,     0,     0,
+       0,     0,     0,     0,     0,     0,     0,     0,     0,   211,
+     212,   213,     0,   214,   215,   216,     0,     0,     0,   188,
+       0,     0,     0,     0,     0,   220,   221,     0,   222,   223,
+       0,   224,   225,   226,   227,   228,     0,     0,     0,     0,
+       0,   229,     0,   230,     0,     0,   231,   189,   190,   191,
+       0,   192,   193,   194,   195,   196,   197,     0,     0,     0,
        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
-     193,   194,   195,     0,   196,   197,   198,     0,     0,     0,
-     170,     0,     0,     0,     0,     0,     0,  -155,   204,   205,
-       0,   206,   207,   208,   209,   210,     0,     0,     0,     0,
-       0,   211,     0,   212,     0,     0,   213,   171,   172,   173,
-       0,  -155,  -155,  -155,  -155,   178,   179,     0,     0,     0,
+       0,   211,   212,   213,     0,   214,   215,   216,     0,     0,
+       0,   188,     0,     0,     0,     0,     0,     0,   221,     0,
+     222,   223,     0,   224,   225,   226,   227,   228,     0,     0,
+       0,     0,     0,   229,     0,   230,     0,     0,   231,   189,
+     190,   191,     0,   192,   193,   194,   195,   196,   197,     0,
        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
-       0,   193,   194,   195,     0,   196,   197,   198,     0,     0,
-       0,     0,     0,     0,     0,     0,     0,     0,     0,   204,
-     205,     0,   206,   207,   208,   209,   210,     0,     0,     0,
-       0,     0,   211,     0,   212,     0,     0,   213
+       0,     0,     0,   211,   212,   213,     0,   214,   215,   216,
+       0,     0,     0,   188,     0,     0,     0,     0,     0,     0,
+    -337,     0,   222,   223,     0,   224,   225,   226,   227,   228,
+       0,     0,     0,     0,     0,   229,     0,   230,     0,     0,
+     231,   189,   190,   191,     0,  -337,  -337,  -337,  -337,   196,
+     197,     0,     0,     0,     0,     0,     0,     0,     0,     0,
+       0,     0,     0,     0,     0,   211,   212,   213,     0,   214,
+     215,   216,     0,     0,     0,     0,     0,     0,     0,     0,
+       0,     0,     0,     0,   222,   223,     0,   224,   225,   226,
+     227,   228,     0,     0,     0,     0,     0,   229,     0,   230,
+       0,     0,   231
 };
 
 static const yytype_int16 yycheck[] =
 {
-       0,     0,     0,     0,     0,    18,    98,    90,    64,    57,
-      23,   257,   127,   132,   133,   399,   109,     3,    47,     3,
-       3,    12,    89,    36,     3,     4,    39,    40,   332,    42,
-      43,    44,    45,    46,    90,    26,   326,    67,    17,    49,
-      33,   125,   126,   100,     4,    90,    91,    92,   100,     0,
-       0,    51,    51,    51,    51,    51,     0,    26,    18,    19,
-      20,   121,    22,    32,    24,     3,   126,    34,    61,   468,
-       3,     4,   102,   472,   473,   132,   121,    37,   123,   383,
-     132,   126,   138,    50,    17,   375,    46,    47,    48,    12,
-      92,   104,   491,     3,   107,     5,   109,   216,     3,     4,
-      51,    51,    35,    26,   121,   121,   505,    51,    16,    93,
-      93,   121,    17,   512,   127,   361,   420,   236,   211,   132,
-     133,   123,   125,   238,   126,     3,   121,   511,     3,     4,
-     102,     3,   104,     5,   121,   121,   382,     0,   100,   258,
-     259,   127,    17,   121,   125,     3,   125,   121,   121,   126,
-       3,   151,   151,   151,   151,   151,   169,   170,   171,   172,
-     173,   174,   175,   176,   177,   178,   179,   180,   181,   182,
-     183,   184,   185,   186,   187,   188,   189,   190,   191,   192,
-     104,   114,   131,   196,   197,   198,   199,   200,   201,   202,
-     203,   204,   205,   206,   207,   208,   209,   210,   211,   212,
-     151,   151,    16,   216,   100,   218,   124,   151,   100,   114,
-       3,    25,   458,     3,     3,    16,    30,    31,   125,   219,
-     219,   219,    67,   236,     3,   238,   255,   240,   474,    43,
-     221,    45,    16,    99,    67,     4,   329,    99,     3,     3,
-     231,    25,     3,     3,    12,   258,   259,    31,   121,    18,
-      19,    20,   371,    22,   100,    24,   126,   126,   132,   100,
-     104,    45,   102,     3,   132,   357,   131,   359,    37,     3,
-     516,   386,    53,    53,    89,   132,    45,    46,    47,    48,
-       3,   132,   121,   131,     3,   341,   104,   370,   125,   132,
-       4,   100,   126,   131,   350,   102,   132,    99,   311,   121,
-     132,   125,   385,    15,    18,    19,    20,     3,    22,   401,
-      24,   131,   100,   396,   370,   125,   329,   125,   318,   318,
-     318,   132,   100,    37,     3,   131,   326,   326,   326,   385,
-      99,    45,    46,    47,    48,   132,   102,   328,   125,   125,
-     396,   132,    64,     3,   436,   121,   104,   395,   131,    25,
-     125,   364,   125,     3,   131,   125,   151,   131,   371,    90,
-      91,    92,   131,    51,   131,   378,   121,   406,   131,    39,
-     132,   318,   455,   386,   457,   375,   375,   375,   391,   131,
-     111,   112,   113,   114,   115,    99,   131,    69,   132,   131,
-     121,    57,   123,   131,   349,   126,    66,    67,    68,   455,
-     444,   457,   444,   426,    74,    75,   426,   497,   483,   418,
-     465,   488,    26,   407,   379,    45,   401,   131,   239,    -1,
-      90,    91,    92,    -1,    94,    95,    96,    -1,   441,    -1,
-      -1,    -1,    -1,    -1,    -1,    -1,    -1,   437,   108,   109,
-      -1,   111,   112,   113,   114,   115,    90,    91,    92,    -1,
-      -1,   121,    -1,   123,    -1,    -1,   126,    -1,    -1,   459,
-     459,   459,   459,   459,    -1,   465,    -1,    -1,    -1,   113,
-     114,   115,    -1,    -1,    -1,    -1,    -1,   121,    -1,   123,
-      -1,    -1,   126,   483,   483,   483,   483,   483,    -1,    -1,
-      -1,    -1,    -1,    -1,    -1,    -1,    -1,   497,   497,   497,
-     497,   497,     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,    -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,    -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,    -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,
+       0,     0,     0,     0,     0,   106,    18,    59,    49,    66,
+     140,    23,   118,   345,   447,    27,     4,   186,     3,     3,
+     359,     4,   462,     4,    11,    37,     3,   231,    40,    41,
+       4,   365,    44,    45,    46,    47,    48,     0,    93,    26,
+      97,     3,    68,   231,   376,   276,    49,     3,    91,    92,
+      93,   510,    11,    53,    53,    53,    53,    53,   112,    15,
+      16,     0,   101,     0,   571,   101,    15,    26,   122,   509,
+     125,   542,    28,   128,   123,    33,     3,   103,   123,   128,
+     123,   588,   125,    95,   423,   128,   545,     3,    15,    16,
+      53,   145,   146,    26,   151,   134,     3,   431,   134,    32,
+     112,    28,   573,    61,   127,   128,   118,   111,    15,    16,
+     122,   115,   444,   123,    53,   319,    53,    94,   123,   106,
+     123,    28,   291,   229,    34,     3,     4,   257,   140,   110,
+     111,   319,    94,   145,   146,   127,    15,   111,   342,   127,
+      50,    15,   127,   127,   127,   123,   127,     3,   482,     3,
+     103,    25,   105,   127,   342,     0,    30,    31,   490,   127,
+     116,    15,    16,   394,   164,   164,   164,   164,   164,    43,
+     603,    45,   184,   129,    28,   187,   188,   189,   190,   191,
+     192,   193,   194,   195,   196,   197,   198,   199,   200,   201,
+     202,   203,   204,   205,   206,   207,   208,   209,   210,   430,
+     532,   164,   214,   215,   216,   217,   218,   219,   220,   221,
+     222,   223,   224,   225,   226,   227,   228,   229,   230,   407,
+     127,    15,     3,   277,   278,   164,   238,   164,   416,   398,
+     399,    25,   101,   274,   123,    11,     3,    31,   123,   239,
+     239,   239,   254,     3,   128,   257,   128,   259,   103,   101,
+      17,    45,    19,    20,   241,    22,   362,    24,   133,   105,
+       3,   126,   116,   250,   101,   277,   278,     3,     3,   123,
+      37,   125,    15,    16,     3,   129,   464,     3,    45,    46,
+      47,    48,     3,   471,     3,    28,    15,    16,   127,   390,
+      15,   392,   346,    68,    15,    16,    15,    16,     3,    28,
+       3,   100,   533,    68,   434,   100,    35,    28,     3,    28,
+       3,     3,    17,   134,    19,    20,   373,    22,   101,    24,
+     548,   123,   128,   554,   552,   553,   383,   128,   105,   341,
+     123,   134,    37,   100,   346,   101,   134,   349,   134,   103,
+      45,    46,    47,    48,   133,     3,     3,   575,   449,    53,
+     362,   351,   351,   351,    53,     3,     3,    15,    16,   359,
+     359,   359,   103,   103,   134,   593,   133,    15,    16,   126,
+      28,   133,    90,   116,   361,    90,    90,   605,   609,    90,
+      28,   127,   125,     3,     3,     4,   134,   116,     7,     8,
+       9,   443,   404,   380,   101,   100,   408,   116,   499,   411,
+     128,   413,   133,   390,   105,   392,   125,   103,   420,   100,
+     134,   123,    14,   101,   426,    90,   133,   127,    90,   127,
+      65,   134,   434,   423,   423,   423,   111,   439,   133,   127,
+     101,   133,     3,     4,     5,   103,     7,     8,     9,   133,
+     427,   127,   123,   127,   134,   134,   115,    18,   110,   105,
+     133,     3,    23,     3,    25,    25,    27,    28,   116,   133,
+      31,   115,   449,   127,    35,     3,   127,   133,   116,   134,
+     133,    42,     3,    44,    45,   111,   111,    91,    92,    93,
+     133,    52,   133,    54,    55,   123,    17,   133,    19,    20,
+     127,    22,    63,    24,   133,   507,    53,   164,   351,    70,
+     500,   115,   116,   117,   516,   134,    37,   133,    97,   123,
+     558,   125,   499,   454,   128,    46,    47,    48,    59,   144,
+      91,    92,   382,   488,   519,   519,    71,   488,   563,   582,
+     455,   540,   480,   291,   534,   534,   534,   534,   534,   110,
+     540,   568,   113,    26,   449,    47,   558,   118,   119,   258,
+     427,    -1,   123,    -1,   125,    -1,    -1,    -1,   129,    -1,
+      -1,    -1,    -1,   563,   563,   563,   563,   563,    -1,   581,
       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
+      -1,    -1,   582,   582,   582,   582,   582,     0,    -1,    -1,
+       3,     4,     5,    -1,     7,     8,     9,    10,    11,    12,
+      13,    -1,    -1,    16,    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,    67,    68,    69,    62,
+      63,    64,    -1,    -1,    75,    76,    -1,    70,    -1,    -1,
       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
-      90,    91,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    99,
+      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,     3,     4,     5,
+     133,     7,     8,     9,    10,    11,    12,    13,    -1,    -1,
+      -1,    17,    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,
+      91,    92,    93,    -1,    -1,    -1,    62,    63,    64,    -1,
+      66,    -1,    -1,    -1,    70,    -1,    -1,    -1,    -1,    -1,
+      -1,    -1,   113,   114,   115,   116,   117,    -1,    -1,    -1,
+      -1,    -1,   123,    -1,   125,    91,    92,   128,    -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,   133,     7,     8,
+       9,    10,    11,    12,    13,    -1,    -1,    -1,    17,    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,    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,   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,    -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,   133,     7,     8,     9,    10,    11,
+      12,    13,    -1,    -1,    -1,    17,    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,    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,    90,
-      91,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    99,    -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,   133,     7,     8,     9,    10,    11,    12,    13,    -1,
+      -1,    16,    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,    64,
+      -1,    -1,    75,    76,    -1,    70,    -1,    -1,    -1,    -1,
+      -1,    -1,    -1,    -1,    -1,    -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,     3,     4,     5,   133,     7,
+       8,     9,    10,    11,    12,    13,    -1,    -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,    64,    -1,    -1,    -1,
+      -1,    -1,    70,    -1,    -1,    -1,    -1,    -1,    -1,    -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,    -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,   133,     7,     8,     9,    10,
+      11,    12,    13,    -1,    -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,    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,    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,    -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,
+      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,   133,     7,     8,     9,    10,    11,    12,    13,
+      -1,    -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,
-      -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,    -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,
+      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,
+      -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,   133,
+       7,     8,     9,    10,    11,    12,    13,    -1,    -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,     3,    -1,    -1,    62,    63,    64,    -1,    -1,
+      -1,    -1,    -1,    70,    15,    -1,    17,    -1,    19,    20,
+      -1,    22,    -1,    24,    25,    -1,    -1,    -1,    -1,    30,
+      31,    -1,    -1,    -1,    91,    92,    37,    -1,    -1,    -1,
+      -1,    -1,    43,   100,    45,    46,    47,    48,    -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,
+      -1,     7,     8,     9,    10,    11,    12,    13,    -1,    90,
+      16,    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,    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,    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,    16,    -1,    18,    19,    20,    21,
+      -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,    -1,     7,     8,
+       9,    10,    11,    12,    13,    -1,    15,    -1,    17,    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,    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,    -1,     7,     8,     9,    10,    11,
+      12,    13,    -1,    -1,    -1,    17,    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,     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,     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,
+      62,    63,    64,    -1,    66,    -1,    -1,    -1,    70,    -1,
       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
-      -1,    90,    91,    -1,    -1,    -1,    -1,    -1,    39,    -1,
+      -1,     3,     4,     5,    -1,     7,     8,     9,    -1,    91,
+      92,    -1,    -1,    -1,    -1,    -1,    18,    -1,   100,    -1,
+      -1,    23,    -1,    25,    -1,    27,    28,    -1,   110,    -1,
+      -1,   113,    -1,    35,    -1,    -1,   118,   119,    -1,    -1,
+      42,   123,    44,   125,    -1,   127,    -1,   129,    -1,    -1,
+      52,    -1,    54,    55,    -1,    -1,    -1,    -1,     3,     4,
+       5,    63,     7,     8,     9,    -1,    -1,    -1,    70,    -1,
+      -1,    -1,    -1,    18,    -1,    -1,    -1,    -1,    23,    -1,
+      25,    -1,    27,    28,    -1,    -1,    -1,    -1,    -1,    91,
+      92,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    44,
+      -1,    -1,    -1,    -1,    -1,    -1,    -1,    52,   110,    54,
+      55,   113,    -1,    -1,    -1,    -1,   118,   119,    -1,    -1,
+      -1,   123,    -1,   125,    -1,    70,    -1,   129,    -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,    39,    -1,    -1,    -1,    -1,    -1,    -1,
       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
-      -1,    -1,   121,    -1,   123,    66,    67,    68,   127,    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,    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,    71,    72,    73,    74,    75,    76,    77,
+      -1,    -1,    -1,    -1,    -1,    -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,    39,   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,
+      -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,    39,   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,
+      -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,    39,    -1,   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,    39,    -1,   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,    89,    -1,    91,
+      92,    93,    -1,    95,    96,    97,    -1,    -1,    -1,    39,
+      -1,   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,    89,
+      -1,    91,    92,    93,    -1,    95,    96,    97,    -1,    -1,
+      -1,    39,    -1,   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,   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,    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,
+      88,    89,    -1,    91,    92,    93,    -1,    95,    96,    97,
+      -1,    -1,    -1,    39,    -1,   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,   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,    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,    -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,
+      86,    87,    88,    89,    -1,    91,    92,    93,    -1,    95,
+      96,    97,    -1,    -1,    -1,    39,    -1,   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,    89,    -1,    91,    92,    93,
+      -1,    95,    96,    97,    -1,    -1,    -1,    39,    -1,   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,    39,
+      -1,   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,    89,
+      -1,    91,    92,    93,    -1,    95,    96,    97,    -1,    -1,
+      -1,    39,    -1,   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,    39,    -1,   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,    39,    -1,    -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,    39,    -1,    -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,    39,
+      -1,    -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,
-      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,    91,    92,    93,    -1,    95,    96,    97,    -1,    -1,
+      -1,    39,    -1,    -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,    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,    -1,    91,    92,    93,    -1,    95,    96,    97,
+      -1,    -1,    -1,    39,    -1,    -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,
+       0,     3,     4,     5,     7,     8,     9,    10,    11,    12,
+      13,    16,    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,   243,   244,   245,   247,   248,    89,    49,   121,   121,
-     163,   121,     3,     4,    17,   125,   183,   184,    16,     3,
-     243,     3,   218,   243,   121,   184,   222,   121,   125,   121,
-     126,   243,   121,     3,     5,   240,   241,   242,   243,   243,
-     243,   243,   243,   238,   243,   228,   229,   230,   236,   243,
-      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,   246,   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,   243,   179,   228,     3,   154,   131,   104,   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,   243,   243,
-     243,   243,   243,   243,   243,   243,   243,   243,   243,   243,
-     243,   243,   243,   243,   243,   243,   243,   243,   243,   243,
-     243,   243,     3,   243,   243,   243,   243,   243,   243,   243,
-     243,   243,   243,   243,   243,   243,   243,   243,   228,   243,
-       3,   121,   127,   237,    12,   243,    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,   241,   243,   104,   226,   100,
-     142,   131,   226,   237,   237,   102,     3,    53,   192,    53,
-     193,     3,   208,   209,   104,   132,   124,    89,   243,     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,   243,     3,
-     132,   145,   237,   125,   138,   131,   132,   243,   225,   226,
-      93,   214,    26,    32,   172,   174,   176,   177,   145,   236,
-     243,   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,   243,   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
+      47,    48,    51,    52,    54,    55,    62,    63,    64,    70,
+      91,    92,   100,   110,   113,   118,   119,   123,   125,   127,
+     129,   136,   137,   138,   139,   145,   148,   150,   158,   161,
+     162,   163,   164,   165,   172,   180,   183,   184,   187,   190,
+     191,   192,   193,   197,   199,   208,   213,   214,   215,   226,
+     233,   236,   249,   250,   251,   256,   260,   264,   265,   267,
+     268,   269,    90,    49,   123,   123,   155,   156,   123,     3,
+      15,    16,    28,   127,   185,   186,    15,     3,   260,     3,
+     235,   260,   123,     3,   186,   239,   260,   127,   123,   128,
+      15,   260,   123,     3,     4,     7,     8,     9,   257,   258,
+     259,   260,   260,   260,   260,   260,   255,   260,   245,   246,
+     247,   253,   260,    29,    31,    36,    41,    45,    66,   100,
+     133,   144,   145,   146,   150,   152,   166,   167,   182,   191,
+     252,     3,     0,   139,   127,     3,    45,   152,   159,   160,
+     256,   146,   147,    15,    25,    30,    31,    43,    45,   207,
+     266,     3,   193,     3,   127,   220,   224,   101,    39,    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,   254,   255,    11,   147,   173,   189,
+     127,   128,   185,   186,   238,   239,   240,   248,   123,   254,
+     128,   181,   245,     3,   103,   254,   133,   105,   101,   101,
+     134,   126,   101,   253,     3,     3,   153,   154,   254,   254,
+     153,     3,   133,   146,   127,   137,     3,   100,    68,   100,
+       3,    34,    50,   232,     3,     3,   209,   260,     3,   220,
+     225,   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,
+     185,   262,   263,   260,   260,   260,   260,   260,   260,   260,
+     260,   260,   260,   260,   260,   260,   260,   260,   245,   260,
+     123,   125,   129,   262,   263,   134,   123,   260,   100,   125,
+     140,   141,   142,   148,   150,   197,   199,   208,   233,   188,
+     185,   128,   123,   244,     3,    94,   229,   230,   231,   134,
+     116,   185,   143,   144,   134,   260,   134,   253,   258,   260,
+     105,   243,   101,   144,   133,   243,   254,   254,   103,     3,
+      53,   194,    53,   195,     3,   210,   211,   221,   103,   103,
+     111,   115,   216,   228,   125,   262,   263,    90,   105,   134,
+     126,   261,   260,   125,   262,   263,    90,   155,   254,   134,
+     149,   133,   142,   127,   140,   245,   103,   105,   212,   231,
+     134,   101,   133,   155,   105,    35,   116,   240,   242,   103,
+     151,   154,   133,   100,   134,     3,     4,   123,   240,    14,
+     196,   240,   241,   127,   243,   101,   133,     4,   220,     4,
+     220,   217,   222,   260,    90,   116,   263,   260,   260,   126,
+     260,    90,   263,   134,   127,   260,   140,   133,   134,   260,
+     242,   243,    94,   231,    26,    32,   174,   176,   178,   179,
+      65,   157,   253,   260,   256,   155,   229,   241,   127,   101,
+     200,   151,   211,   111,     4,   110,   111,   127,   218,   223,
+     226,   126,   263,   134,   126,   263,    33,    61,   168,   169,
+     170,   171,   126,   133,   212,   127,   231,   127,   123,   174,
+     176,   155,   134,   134,   198,   240,    45,   100,   191,   204,
+     205,   206,   115,   260,   110,   226,   222,   260,   105,   133,
+     170,   171,   237,   177,     3,   155,   243,   100,   125,   145,
+     150,   191,   201,   202,   203,   208,   233,     3,    25,   133,
+     206,   224,   219,   115,   222,   105,   143,   143,   143,   243,
+     127,   149,   127,   133,   203,   232,   217,   133,   224,   143,
+     133,   133,   134,   234,   260,   201,     3,   111,   217,   175,
+     143,   126,   133,   123,   111,   127,   133,   229,   143,   134,
+     133,   243
 };
 
 #define yyerrok                (yyerrstatus = 0)
@@ -4188,7 +4697,7 @@ yyreduce:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 1861 "parser.y"
+#line 2010 "parser.y"
     {PASS_ALWAYS as3_pass=(yyvsp[(1) - (4)].number_int);}
     }
     break;
@@ -4199,19 +4708,19 @@ yyreduce:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 1873 "parser.y"
+#line 2022 "parser.y"
     {PASS_ALWAYS as3_pass=(yyvsp[(1) - (4)].number_int);}
     }
     break;
 
 
   
-    case 26:
+    case 25:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 1876 "parser.y"
-    {(yyval.code)=(yyvsp[(1) - (1)].code);}
+#line 2023 "parser.y"
+    {PASS_ALWAYS as3_pass=(yyvsp[(2) - (4)].number_int);PASS1 as3_warning("embed command ignored");}
     }
     break;
 
@@ -4221,8 +4730,8 @@ yyreduce:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 1877 "parser.y"
-    {(yyval.code)=code_new();}
+#line 2026 "parser.y"
+    {(yyval.code)=(yyvsp[(1) - (1)].code);}
     }
     break;
 
@@ -4232,7 +4741,18 @@ yyreduce:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 1879 "parser.y"
+#line 2027 "parser.y"
+    {(yyval.code)=code_new();}
+    }
+    break;
+
+
+  
+    case 29:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 2029 "parser.y"
     {
     (yyval.code)=code_append((yyvsp[(1) - (2)].code),(yyvsp[(2) - (2)].code));
 }
@@ -4241,55 +4761,55 @@ yyreduce:
 
 
   
-    case 29:
+    case 30:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 1882 "parser.y"
+#line 2032 "parser.y"
     {(yyval.code)=(yyvsp[(1) - (1)].code);}
     }
     break;
 
 
   
-    case 42:
+    case 44:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 1897 "parser.y"
+#line 2048 "parser.y"
     {(yyval.code)=(yyvsp[(2) - (3)].code);}
     }
     break;
 
 
   
-    case 43:
+    case 45:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 1898 "parser.y"
+#line 2049 "parser.y"
     {(yyval.code)=0;}
     }
     break;
 
 
   
-    case 44:
+    case 46:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 1901 "parser.y"
+#line 2052 "parser.y"
     {(yyval.code)=0;}
     }
     break;
 
 
   
-    case 51:
+    case 53:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 1908 "parser.y"
+#line 2059 "parser.y"
     {
     PASS_ALWAYS 
     if(as3_pass) {
@@ -4304,47 +4824,66 @@ yyreduce:
 
 
   
-    case 52:
+    case 54:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 1920 "parser.y"
+#line 2071 "parser.y"
     {(yyval.code)=(yyvsp[(1) - (2)].code);}
     }
     break;
 
 
   
-    case 53:
+    case 55:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 1921 "parser.y"
+#line 2072 "parser.y"
     {(yyval.code)=(yyvsp[(1) - (1)].code);}
     }
     break;
 
 
   
-    case 54:
+    case 56:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 1925 "parser.y"
+#line 2076 "parser.y"
     {
-    code_t**cc = &global->init->method->body->code;
-    *cc = code_append(*cc, (yyvsp[(1) - (1)].code));
+    if((yyvsp[(1) - (1)].code)) {
+        if(!global->init) 
+            global->init = abc_initscript(global->file);
+        code_t**cc = &global->init->method->body->code;
+        *cc = code_append(*cc, (yyvsp[(1) - (1)].code));
+    }
 }
     }
     break;
 
 
   
-    case 55:
+    case 57:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 2087 "parser.y"
+    {
+    PASS_ALWAYS
+    (yyval.number_int) = as3_pass;
+    as3_pass=0;
+}
+    }
+    break;
+
+
+  
+    case 58:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 1932 "parser.y"
+#line 2095 "parser.y"
     {
     PASS12
     (yyval.number_int)=as3_pass;
@@ -4359,131 +4898,132 @@ yyreduce:
 
 
   
-    case 56:
+    case 59:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 1951 "parser.y"
+#line 2122 "parser.y"
     {(yyval.node)=(yyvsp[(2) - (2)].node);}
     }
     break;
 
 
   
-    case 57:
+    case 60:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 1952 "parser.y"
+#line 2123 "parser.y"
     {(yyval.node)=mkdummynode();}
     }
     break;
 
 
   
-    case 58:
+    case 61:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 1954 "parser.y"
+#line 2125 "parser.y"
     {(yyval.code)=(yyvsp[(2) - (2)].code);}
     }
     break;
 
 
   
-    case 59:
+    case 62:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 1955 "parser.y"
+#line 2126 "parser.y"
     {(yyval.code)=(yyvsp[(2) - (2)].code);}
     }
     break;
 
 
   
-    case 60:
+    case 63:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 1957 "parser.y"
+#line 2128 "parser.y"
     {(yyval.code) = (yyvsp[(1) - (1)].code);}
     }
     break;
 
 
   
-    case 61:
+    case 64:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 1958 "parser.y"
+#line 2129 "parser.y"
     {(yyval.code) = code_append((yyvsp[(1) - (3)].code), (yyvsp[(3) - (3)].code));}
     }
     break;
 
 
   
-    case 62:
+    case 65:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 1961 "parser.y"
+#line 2132 "parser.y"
     {
 PASS12
-    if(variable_exists((yyvsp[(1) - (3)].id)))
+    if(variable_exists((yyvsp[(1) - (3)].id))) 
         syntaxerror("Variable %s already defined", (yyvsp[(1) - (3)].id));
 PASS1
-    new_variable((yyvsp[(1) - (3)].id), 0, 1, 0);
+    new_variable(state->method, (yyvsp[(1) - (3)].id), (yyvsp[(2) - (3)].classinfo), 1, 0);
 PASS2
    
     char slot = 0;
     int index = 0;
+    variable_t*v = 0;
     if(state->method->uses_slots) {
-        variable_t* v = find_slot(state, (yyvsp[(1) - (3)].id));
+        v = find_slot(state->method, (yyvsp[(1) - (3)].id));
         if(v && !v->init) {
             // this variable is stored in a slot
             v->init = 1;
             v->type = (yyvsp[(2) - (3)].classinfo);
             slot = 1;
-            index = v->index;
         }
     }
-    if(!index) {
-        index = new_variable((yyvsp[(1) - (3)].id), (yyvsp[(2) - (3)].classinfo), 1, 0);
+    if(!v) {
+        v = new_variable2(state->method, (yyvsp[(1) - (3)].id), (yyvsp[(2) - (3)].classinfo), 1, 0);
     }
 
     (yyval.code) = slot?abc_getscopeobject(0, 1):0;
     
-    typedcode_t v = node_read((yyvsp[(3) - (3)].node));
-    if(!is_subtype_of(v.t, (yyvsp[(2) - (3)].classinfo))) {
-        syntaxerror("Can't convert %s to %s", v.t->name, (yyvsp[(2) - (3)].classinfo)->name);
+    typedcode_t val = node_read((yyvsp[(3) - (3)].node));
+    if(!is_subtype_of(val.t, (yyvsp[(2) - (3)].classinfo))) {
+        syntaxerror("Can't convert %s to %s", val.t->name, (yyvsp[(2) - (3)].classinfo)->name);
     }
     if((yyvsp[(2) - (3)].classinfo)) {
-        if(v.c->prev || v.c->opcode != OPCODE_PUSHUNDEFINED) {
-            (yyval.code) = code_append((yyval.code), v.c);
-            (yyval.code) = converttype((yyval.code), v.t, (yyvsp[(2) - (3)].classinfo));
+        if(val.c->prev || val.c->opcode != OPCODE_PUSHUNDEFINED) {
+            (yyval.code) = code_append((yyval.code), val.c);
+            (yyval.code) = converttype((yyval.code), val.t, (yyvsp[(2) - (3)].classinfo));
         } else {
-            code_free(v.c);
+            code_free(val.c);
             (yyval.code) = defaultvalue((yyval.code), (yyvsp[(2) - (3)].classinfo));
         }
     } else {
-        if(v.c->prev || v.c->opcode != OPCODE_PUSHUNDEFINED) {
-            (yyval.code) = code_append((yyval.code), v.c);
+        if(val.c->prev || val.c->opcode != OPCODE_PUSHUNDEFINED) {
+            (yyval.code) = code_append((yyval.code), val.c);
             (yyval.code) = abc_coerce_a((yyval.code));
         } else {
             // don't do anything
-            code_free(v.c);
+            code_free(val.c);
             code_free((yyval.code));
             (yyval.code) = 0;
             break;
         }
     }
     if(slot) {
-        (yyval.code) = abc_setslot((yyval.code), index);
+        (yyval.code) = abc_setslot((yyval.code), v->index);
     } else {
-        (yyval.code) = abc_setlocal((yyval.code), index);
+        (yyval.code) = abc_setlocal((yyval.code), v->index);
+        v->init = do_init_variable((yyvsp[(1) - (3)].id));
     }
 }
     }
@@ -4491,97 +5031,108 @@ PASS2
 
 
   
-    case 63:
+    case 66:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2020 "parser.y"
-    {(yyval.code) = code_new();}
+#line 2192 "parser.y"
+    {PASS12 new_state();}
     }
     break;
 
 
   
-    case 64:
+    case 67:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2021 "parser.y"
-    {(yyval.code)=(yyvsp[(2) - (2)].code);}
+#line 2192 "parser.y"
+    {
+    (yyval.code) = var_block((yyvsp[(2) - (2)].code), state->vars);
+    PASS12 old_state();
+}
     }
     break;
 
 
   
-    case 65:
+    case 68:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2024 "parser.y"
-    {PASS12 new_state();}
+#line 2196 "parser.y"
+    {(yyval.code) = code_new();}
     }
     break;
 
 
   
-    case 66:
+    case 69:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 2197 "parser.y"
+    {(yyval.code)=(yyvsp[(2) - (2)].code);}
+    }
+    break;
+
+
+  
+    case 70:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2024 "parser.y"
+#line 2200 "parser.y"
     {
-     
     (yyval.code) = code_new();
-    (yyval.code) = code_append((yyval.code), (yyvsp[(4) - (7)].value).c);
+    (yyval.code) = code_append((yyval.code), (yyvsp[(3) - (6)].value).c);
     code_t*myjmp,*myif = (yyval.code) = abc_iffalse((yyval.code), 0);
    
-    (yyval.code) = code_append((yyval.code), (yyvsp[(6) - (7)].code));
-    if((yyvsp[(7) - (7)].code)) {
+    (yyval.code) = code_append((yyval.code), (yyvsp[(5) - (6)].code));
+    if((yyvsp[(6) - (6)].code)) {
         myjmp = (yyval.code) = abc_jump((yyval.code), 0);
     }
     myif->branch = (yyval.code) = abc_nop((yyval.code));
-    if((yyvsp[(7) - (7)].code)) {
-        (yyval.code) = code_append((yyval.code), (yyvsp[(7) - (7)].code));
+    if((yyvsp[(6) - (6)].code)) {
+        (yyval.code) = code_append((yyval.code), (yyvsp[(6) - (6)].code));
         myjmp->branch = (yyval.code) = abc_nop((yyval.code));
     }
-    (yyval.code) = var_block((yyval.code));
-    PASS12 old_state();
 }
     }
     break;
 
 
   
-    case 67:
+    case 71:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2043 "parser.y"
+#line 2216 "parser.y"
     {(yyval.code)=code_new();}
     }
     break;
 
 
   
-    case 70:
+    case 74:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2050 "parser.y"
+#line 2223 "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);
+    PASS1 (yyval.id)=(yyvsp[(2) - (3)].id);new_variable(state->method, (yyvsp[(2) - (3)].id),0,1,0);
+    PASS2 (yyval.id)=(yyvsp[(2) - (3)].id);new_variable(state->method, (yyvsp[(2) - (3)].id),(yyvsp[(3) - (3)].classinfo),1,0);
 }
     }
     break;
 
 
   
-    case 71:
+    case 75:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2054 "parser.y"
+#line 2227 "parser.y"
     {
     PASS12
     (yyval.id)=(yyvsp[(1) - (1)].id);
@@ -4591,33 +5142,33 @@ PASS2
 
 
   
-    case 72:
+    case 76:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2059 "parser.y"
+#line 2232 "parser.y"
     {PASS12 new_state();(yyval.for_start).name=(yyvsp[(1) - (2)].id);(yyval.for_start).each=0;}
     }
     break;
 
 
   
-    case 73:
+    case 77:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2060 "parser.y"
+#line 2233 "parser.y"
     {PASS12 new_state();(yyval.for_start).name=(yyvsp[(1) - (3)].id);(yyval.for_start).each=1;}
     }
     break;
 
 
   
-    case 74:
+    case 78:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2062 "parser.y"
+#line 2235 "parser.y"
     {
     if((yyvsp[(1) - (8)].for_start).each) syntaxerror("invalid syntax: ; not allowed in for each statement");
     (yyval.code) = code_new();
@@ -4634,7 +5185,7 @@ PASS2
     continuejumpsto((yyval.code), (yyvsp[(1) - (8)].for_start).name, cont);
     myif->branch = out;
 
-    (yyval.code) = var_block((yyval.code));
+    (yyval.code) = var_block((yyval.code), state->vars);
     PASS12 old_state();
 }
     }
@@ -4642,21 +5193,17 @@ PASS2
 
 
   
-    case 75:
+    case 79:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2082 "parser.y"
+#line 2255 "parser.y"
     {
-    variable_t*var = find_variable(state, (yyvsp[(2) - (6)].id));
-    if(!var) {
-        syntaxerror("variable %s not known in this scope", (yyvsp[(2) - (6)].id));
-    }
-
-    char*tmp1name = concat2((yyvsp[(2) - (6)].id), "__tmp1__");
-    int it = new_variable(tmp1name, TYPE_INT, 0, 0);
-    char*tmp2name = concat2((yyvsp[(2) - (6)].id), "__array__");
-    int array = new_variable(tmp1name, 0, 0, 0);
+    node_t*n = resolve_identifier((yyvsp[(2) - (6)].id));
+    typedcode_t w = node_write(n);
+    
+    int it = alloc_local();
+    int array = alloc_local();
 
     (yyval.code) = code_new();
     (yyval.code) = code_append((yyval.code), (yyvsp[(4) - (6)].value).c);
@@ -4675,8 +5222,9 @@ PASS2
         (yyval.code) = abc_nextname((yyval.code));
     else
         (yyval.code) = abc_nextvalue((yyval.code));
-    (yyval.code) = converttype((yyval.code), 0, var->type);
-    (yyval.code) = abc_setlocal((yyval.code), var->index);
+
+    (yyval.code) = converttype((yyval.code), 0, w.t);
+    (yyval.code) = code_append((yyval.code), w.c);
 
     (yyval.code) = code_append((yyval.code), (yyvsp[(6) - (6)].code));
     (yyval.code) = abc_jump((yyval.code), loopstart);
@@ -4687,11 +5235,10 @@ PASS2
     
     myif->branch = out;
 
-    (yyval.code) = var_block((yyval.code));
-
-    free(tmp1name);
-    free(tmp2name);
+    (yyval.code) = abc_kill((yyval.code), it);
+    (yyval.code) = abc_kill((yyval.code), array);
 
+    (yyval.code) = var_block((yyval.code), state->vars);
     PASS12 old_state();
 }
     }
@@ -4699,85 +5246,57 @@ PASS2
 
 
   
-    case 76:
-    if(as3_pass==2) {
-
-/* Line 1464 of skeleton.m4  */
-#line 2130 "parser.y"
-    {PASS12 new_state();}
-    }
-    break;
-
-
-  
-    case 77:
+    case 80:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2130 "parser.y"
+#line 2299 "parser.y"
     {
 
     (yyval.code) = code_new();
 
     code_t*myjmp = (yyval.code) = abc_jump((yyval.code), 0);
     code_t*loopstart = (yyval.code) = abc_label((yyval.code));
-    (yyval.code) = code_append((yyval.code), (yyvsp[(6) - (6)].code));
+    (yyval.code) = code_append((yyval.code), (yyvsp[(5) - (5)].code));
     code_t*cont = (yyval.code) = abc_nop((yyval.code));
     myjmp->branch = cont;
-    (yyval.code) = code_append((yyval.code), (yyvsp[(4) - (6)].value).c);
+    (yyval.code) = code_append((yyval.code), (yyvsp[(3) - (5)].value).c);
     (yyval.code) = abc_iftrue((yyval.code), loopstart);
     code_t*out = (yyval.code) = abc_nop((yyval.code));
-    breakjumpsto((yyval.code), (yyvsp[(1) - (6)].id), out);
-    continuejumpsto((yyval.code), (yyvsp[(1) - (6)].id), cont);
-
-    (yyval.code) = var_block((yyval.code));
-    PASS12 old_state();
+    breakjumpsto((yyval.code), (yyvsp[(1) - (5)].id), out);
+    continuejumpsto((yyval.code), (yyvsp[(1) - (5)].id), cont);
 }
     }
     break;
 
 
   
-    case 78:
-    if(as3_pass==2) {
-
-/* Line 1464 of skeleton.m4  */
-#line 2149 "parser.y"
-    {PASS12 new_state();}
-    }
-    break;
-
-
-  
-    case 79:
+    case 81:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2149 "parser.y"
+#line 2315 "parser.y"
     {
     (yyval.code) = code_new();
     code_t*loopstart = (yyval.code) = abc_label((yyval.code));
-    (yyval.code) = code_append((yyval.code), (yyvsp[(3) - (7)].code));
+    (yyval.code) = code_append((yyval.code), (yyvsp[(2) - (6)].code));
     code_t*cont = (yyval.code) = abc_nop((yyval.code));
-    (yyval.code) = code_append((yyval.code), (yyvsp[(6) - (7)].value).c);
+    (yyval.code) = code_append((yyval.code), (yyvsp[(5) - (6)].value).c);
     (yyval.code) = abc_iftrue((yyval.code), loopstart);
     code_t*out = (yyval.code) = abc_nop((yyval.code));
-    breakjumpsto((yyval.code), (yyvsp[(1) - (7)].id), out);
-    continuejumpsto((yyval.code), (yyvsp[(1) - (7)].id), cont);
-    
-    (yyval.code) = var_block((yyval.code));
-    PASS12 old_state();
+    breakjumpsto((yyval.code), (yyvsp[(1) - (6)].id), out);
+    continuejumpsto((yyval.code), (yyvsp[(1) - (6)].id), cont);
 }
     }
     break;
 
 
   
-    case 80:
+    case 82:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2164 "parser.y"
+#line 2327 "parser.y"
     {
     (yyval.code) = abc___break__(0, "");
 }
@@ -4786,11 +5305,11 @@ PASS2
 
 
   
-    case 81:
+    case 83:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2167 "parser.y"
+#line 2330 "parser.y"
     {
     (yyval.code) = abc___break__(0, (yyvsp[(2) - (2)].id));
 }
@@ -4799,11 +5318,11 @@ PASS2
 
 
   
-    case 82:
+    case 84:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2170 "parser.y"
+#line 2333 "parser.y"
     {
     (yyval.code) = abc___continue__(0, "");
 }
@@ -4812,11 +5331,11 @@ PASS2
 
 
   
-    case 83:
+    case 85:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2173 "parser.y"
+#line 2336 "parser.y"
     {
     (yyval.code) = abc___continue__(0, (yyvsp[(2) - (2)].id));
 }
@@ -4825,77 +5344,77 @@ PASS2
 
 
   
-    case 84:
+    case 86:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2177 "parser.y"
+#line 2340 "parser.y"
     {(yyval.code)=0;}
     }
     break;
 
 
   
-    case 85:
+    case 87:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2178 "parser.y"
+#line 2341 "parser.y"
     {(yyval.code)=(yyvsp[(1) - (1)].code);}
     }
     break;
 
 
   
-    case 86:
+    case 88:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2179 "parser.y"
+#line 2342 "parser.y"
     {(yyval.code)=(yyvsp[(1) - (1)].code);}
     }
     break;
 
 
   
-    case 87:
+    case 89:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2180 "parser.y"
+#line 2343 "parser.y"
     {(yyval.code)=code_append((yyvsp[(1) - (2)].code),(yyvsp[(2) - (2)].code));}
     }
     break;
 
 
   
-    case 88:
+    case 90:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2181 "parser.y"
+#line 2344 "parser.y"
     {(yyval.code)=(yyvsp[(1) - (1)].code);}
     }
     break;
 
 
   
-    case 89:
+    case 91:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2182 "parser.y"
+#line 2345 "parser.y"
     {(yyval.code)=code_append((yyval.code),(yyvsp[(2) - (2)].code));}
     }
     break;
 
 
   
-    case 90:
+    case 92:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2184 "parser.y"
+#line 2347 "parser.y"
     {
     (yyval.code) = abc_getlocal(0, state->switch_var);
     (yyval.code) = code_append((yyval.code), node_read((yyvsp[(2) - (4)].node)).c);
@@ -4912,11 +5431,11 @@ PASS2
 
 
   
-    case 91:
+    case 93:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2195 "parser.y"
+#line 2358 "parser.y"
     {
     (yyval.code) = (yyvsp[(3) - (3)].code);
 }
@@ -4925,22 +5444,22 @@ PASS2
 
 
   
-    case 92:
+    case 94:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2198 "parser.y"
+#line 2361 "parser.y"
     {PASS12 new_state();state->switch_var=alloc_local();}
     }
     break;
 
 
   
-    case 93:
+    case 95:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2198 "parser.y"
+#line 2361 "parser.y"
     {
     (yyval.code) = node_read((yyvsp[(4) - (8)].node)).c;
     (yyval.code) = abc_setlocal((yyval.code), state->switch_var);
@@ -4966,7 +5485,7 @@ PASS2
         c=c->prev;
     }
    
-    (yyval.code) = var_block((yyval.code));
+    (yyval.code) = var_block((yyval.code), state->vars);
     PASS12 old_state();
 }
     }
@@ -4974,26 +5493,26 @@ PASS2
 
 
   
-    case 94:
+    case 96:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2229 "parser.y"
+#line 2392 "parser.y"
     {PASS12 new_state();
                                                       state->exception_name=(yyvsp[(3) - (5)].id);
-                                               PASS1 new_variable((yyvsp[(3) - (5)].id), 0, 0, 0);
-                                               PASS2 new_variable((yyvsp[(3) - (5)].id), (yyvsp[(4) - (5)].classinfo), 0, 0);
+                                               PASS1 new_variable(state->method, (yyvsp[(3) - (5)].id), (yyvsp[(4) - (5)].classinfo), 0, 0);
+                                               PASS2 new_variable(state->method, (yyvsp[(3) - (5)].id), (yyvsp[(4) - (5)].classinfo), 0, 0);
                                               }
     }
     break;
 
 
   
-    case 95:
+    case 97:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2234 "parser.y"
+#line 2397 "parser.y"
     {
     namespace_t name_ns = {ACCESS_PACKAGE, ""};
     multiname_t name = {QNAME, &name_ns, 0, (yyvsp[(3) - (9)].id)};
@@ -5011,7 +5530,7 @@ PASS2
     c = code_append(c, (yyvsp[(8) - (9)].code));
     c = abc_kill(c, i);
 
-    c = var_block(c);
+    c = var_block(c, state->vars);
     PASS12 old_state();
 }
     }
@@ -5019,24 +5538,24 @@ PASS2
 
 
   
-    case 96:
+    case 98:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2254 "parser.y"
+#line 2417 "parser.y"
     {PASS12 new_state();state->exception_name=0;}
     }
     break;
 
 
   
-    case 97:
+    case 99:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2254 "parser.y"
+#line 2417 "parser.y"
     {
-    (yyvsp[(4) - (5)].code) = var_block((yyvsp[(4) - (5)].code));
+    (yyvsp[(4) - (5)].code) = var_block((yyvsp[(4) - (5)].code), state->vars);
     if(!(yyvsp[(4) - (5)].code)) {
         (yyval.exception)=0;
     } else {
@@ -5055,44 +5574,44 @@ PASS2
 
 
   
-    case 98:
+    case 100:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2270 "parser.y"
+#line 2433 "parser.y"
     {(yyval.catch_list).l=list_new();(yyval.catch_list).finally=0;list_append((yyval.catch_list).l,(yyvsp[(1) - (1)].exception));}
     }
     break;
 
 
   
-    case 99:
+    case 101:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2271 "parser.y"
+#line 2434 "parser.y"
     {(yyval.catch_list)=(yyvsp[(1) - (2)].catch_list);list_append((yyval.catch_list).l,(yyvsp[(2) - (2)].exception));}
     }
     break;
 
 
   
-    case 100:
+    case 102:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2272 "parser.y"
+#line 2435 "parser.y"
     {(yyval.catch_list)=(yyvsp[(1) - (1)].catch_list);}
     }
     break;
 
 
   
-    case 101:
+    case 103:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2273 "parser.y"
+#line 2436 "parser.y"
     {
     (yyval.catch_list) = (yyvsp[(1) - (2)].catch_list);
     (yyval.catch_list).finally = 0;
@@ -5106,11 +5625,11 @@ PASS2
 
 
   
-    case 102:
+    case 104:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2281 "parser.y"
+#line 2444 "parser.y"
     {
     (yyval.catch_list).l=list_new();
     (yyval.catch_list).finally = 0;
@@ -5124,11 +5643,11 @@ PASS2
 
 
   
-    case 103:
+    case 105:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2290 "parser.y"
+#line 2453 "parser.y"
     {PASS12 new_state();
                  state->method->has_exceptions=1;
                  state->method->late_binding=1;//for invariant scope_code
@@ -5138,11 +5657,11 @@ PASS2
 
 
   
-    case 104:
+    case 106:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2293 "parser.y"
+#line 2456 "parser.y"
     {
     code_t*out = abc_nop(0);
 
@@ -5155,7 +5674,7 @@ PASS2
   
     int tmp;
     if((yyvsp[(6) - (6)].catch_list).finally)
-        tmp = new_variable("__finally__", 0, 0, 0);
+        tmp = alloc_local();
     
     abc_exception_list_t*l = (yyvsp[(6) - (6)].catch_list).l;
     int count=0;
@@ -5183,7 +5702,7 @@ PASS2
         
     list_concat(state->method->exceptions, (yyvsp[(6) - (6)].catch_list).l);
    
-    (yyval.code) = var_block((yyval.code));
+    (yyval.code) = var_block((yyval.code), state->vars);
     PASS12 old_state();
 }
     }
@@ -5191,11 +5710,11 @@ PASS2
 
 
   
-    case 105:
+    case 107:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2339 "parser.y"
+#line 2502 "parser.y"
     {
     (yyval.code)=(yyvsp[(2) - (2)].value).c;
     (yyval.code)=abc_throw((yyval.code));
@@ -5205,11 +5724,11 @@ PASS2
 
 
   
-    case 106:
+    case 108:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2343 "parser.y"
+#line 2506 "parser.y"
     {
     if(!state->exception_name)
         syntaxerror("re-throw only possible within a catch block");
@@ -5223,11 +5742,11 @@ PASS2
 
 
   
-    case 107:
+    case 109:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2354 "parser.y"
+#line 2517 "parser.y"
     {
      new_state();
      if(state->method->has_exceptions) {
@@ -5243,11 +5762,11 @@ PASS2
 
 
   
-    case 108:
+    case 110:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2364 "parser.y"
+#line 2527 "parser.y"
     {
      /* remove getlocal;pushwith from scope code again */
      state->method->scope_code = code_cutlast(code_cutlast(state->method->scope_code));
@@ -5267,111 +5786,140 @@ PASS2
 
 
   
-    case 110:
+    case 112:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2382 "parser.y"
+#line 2545 "parser.y"
     {PASS12 (yyval.id)="package";}
     }
     break;
 
 
   
-    case 111:
+    case 113:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2383 "parser.y"
-    {PASS12 (yyval.id)=(yyvsp[(1) - (1)].id);}
+#line 2546 "parser.y"
+    {PASS12 (yyval.id)="namespace";}
     }
     break;
 
 
   
-    case 112:
+    case 114:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2385 "parser.y"
-    {PASS12 (yyval.id) = concat3((yyvsp[(1) - (3)].id),".",(yyvsp[(3) - (3)].id));free((yyvsp[(1) - (3)].id));(yyvsp[(1) - (3)].id)=0;}
+#line 2547 "parser.y"
+    {PASS12 (yyval.id)="NaN";}
     }
     break;
 
 
   
-    case 113:
+    case 115:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2386 "parser.y"
-    {PASS12 (yyval.id)=strdup((yyvsp[(1) - (1)].id));}
+#line 2549 "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;
 
 
   
-    case 114:
+    case 116:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2388 "parser.y"
-    {PASS12 startpackage((yyvsp[(2) - (3)].id));free((yyvsp[(2) - (3)].id));(yyvsp[(2) - (3)].id)=0;}
+#line 2550 "parser.y"
+    {PASS12 (yyval.id)=strdup((yyvsp[(1) - (1)].id));}
     }
     break;
 
 
   
-    case 115:
+    case 117:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 2552 "parser.y"
+    {PASS12 startpackage((yyvsp[(2) - (3)].id));free((yyvsp[(2) - (3)].id));(yyvsp[(2) - (3)].id)=0;}
+    }
+    break;
+
+
+  
+    case 118:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2389 "parser.y"
+#line 2553 "parser.y"
     {PASS12 endpackage();(yyval.code)=0;}
     }
     break;
 
 
   
-    case 116:
+    case 119:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2390 "parser.y"
+#line 2554 "parser.y"
     {PASS12 startpackage("");}
     }
     break;
 
 
   
-    case 117:
+    case 120:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2391 "parser.y"
+#line 2555 "parser.y"
     {PASS12 endpackage();(yyval.code)=0;}
     }
     break;
 
 
   
-    case 118:
+    case 121:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 2578 "parser.y"
+    {
+       PASS12
+       slotinfo_t*s = registry_find(state->package, (yyvsp[(2) - (2)].id));
+       if(!s && as3_pass==1) {as3_schedule_class(state->package, (yyvsp[(2) - (2)].id));}
+       state_has_imports();
+       dict_put(state->imports, state->package, (yyvsp[(2) - (2)].id));
+       (yyval.code)=0;
+}
+    }
+    break;
+
+
+  
+    case 122:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2413 "parser.y"
+#line 2586 "parser.y"
     {
        PASS12
        slotinfo_t*s = registry_find((yyvsp[(2) - (2)].classinfo)->package, (yyvsp[(2) - (2)].classinfo)->name);
        if(!s && as3_pass==1) {// || !(s->flags&FLAG_BUILTIN)) {
            as3_schedule_class((yyvsp[(2) - (2)].classinfo)->package, (yyvsp[(2) - (2)].classinfo)->name);
        }
-       classinfo_t*c = (yyvsp[(2) - (2)].classinfo);
-       if(!c) 
-            syntaxerror("Couldn't import class\n");
+       /*if(s && s->kind == INFOTYPE_VAR && TYPE_IS_NAMESPACE(s->type)) {
+           trie_put(active_namespaces, (unsigned char*)$2->name, 0);
+       }*/
        state_has_imports();
-       dict_put(state->imports, c->name, c);
-       import_toplevel(c->package);
+       dict_put(state->imports, (yyvsp[(2) - (2)].classinfo)->name, (yyvsp[(2) - (2)].classinfo));
+       import_toplevel((yyvsp[(2) - (2)].classinfo)->package);
        (yyval.code)=0;
 }
     }
@@ -5379,11 +5927,11 @@ PASS2
 
 
   
-    case 119:
+    case 123:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2427 "parser.y"
+#line 2600 "parser.y"
     {
        PASS12
        if(strncmp("flash.", (yyvsp[(2) - (4)].id), 6) && as3_pass==1) {
@@ -5402,44 +5950,44 @@ PASS2
 
 
   
-    case 120:
+    case 124:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2443 "parser.y"
+#line 2616 "parser.y"
     {PASS12 (yyval.flags).flags=0;(yyval.flags).ns=0;}
     }
     break;
 
 
   
-    case 121:
+    case 125:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2444 "parser.y"
+#line 2617 "parser.y"
     {PASS12 (yyval.flags)=(yyvsp[(1) - (1)].flags);}
     }
     break;
 
 
   
-    case 122:
+    case 126:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2445 "parser.y"
+#line 2618 "parser.y"
     {PASS12 (yyval.flags)=(yyvsp[(1) - (1)].flags);}
     }
     break;
 
 
   
-    case 123:
+    case 127:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2446 "parser.y"
+#line 2619 "parser.y"
     {
     PASS12 
     (yyval.flags).flags=(yyvsp[(1) - (2)].flags).flags|(yyvsp[(2) - (2)].flags).flags;
@@ -5452,110 +6000,110 @@ PASS2
 
 
   
-    case 124:
+    case 128:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2453 "parser.y"
+#line 2626 "parser.y"
     {PASS12 (yyval.flags).flags=FLAG_PUBLIC;(yyval.flags).ns=0;}
     }
     break;
 
 
   
-    case 125:
+    case 129:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2454 "parser.y"
+#line 2627 "parser.y"
     {PASS12 (yyval.flags).flags=FLAG_PRIVATE;(yyval.flags).ns=0;}
     }
     break;
 
 
   
-    case 126:
+    case 130:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2455 "parser.y"
+#line 2628 "parser.y"
     {PASS12 (yyval.flags).flags=FLAG_PROTECTED;(yyval.flags).ns=0;}
     }
     break;
 
 
   
-    case 127:
+    case 131:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2456 "parser.y"
+#line 2629 "parser.y"
     {PASS12 (yyval.flags).flags=FLAG_STATIC;(yyval.flags).ns=0;}
     }
     break;
 
 
   
-    case 128:
+    case 132:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2457 "parser.y"
+#line 2630 "parser.y"
     {PASS12 (yyval.flags).flags=FLAG_DYNAMIC;(yyval.flags).ns=0;}
     }
     break;
 
 
   
-    case 129:
+    case 133:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2458 "parser.y"
+#line 2631 "parser.y"
     {PASS12 (yyval.flags).flags=FLAG_FINAL;(yyval.flags).ns=0;}
     }
     break;
 
 
   
-    case 130:
+    case 134:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2459 "parser.y"
+#line 2632 "parser.y"
     {PASS12 (yyval.flags).flags=FLAG_OVERRIDE;(yyval.flags).ns=0;}
     }
     break;
 
 
   
-    case 131:
+    case 135:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2460 "parser.y"
+#line 2633 "parser.y"
     {PASS12 (yyval.flags).flags=FLAG_NATIVE;(yyval.flags).ns=0;}
     }
     break;
 
 
   
-    case 132:
+    case 136:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2461 "parser.y"
+#line 2634 "parser.y"
     {PASS12 (yyval.flags).flags=FLAG_PACKAGEINTERNAL;(yyval.flags).ns=0;}
     }
     break;
 
 
   
-    case 133:
+    case 137:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2462 "parser.y"
+#line 2635 "parser.y"
     {PASS12 (yyval.flags).flags=FLAG_NAMESPACE;
                                (yyval.flags).ns=(yyvsp[(1) - (1)].id);
                        }
@@ -5564,99 +6112,99 @@ PASS2
 
 
   
-    case 134:
+    case 138:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2466 "parser.y"
+#line 2639 "parser.y"
     {PASS12 (yyval.classinfo)=0;}
     }
     break;
 
 
   
-    case 135:
+    case 139:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2467 "parser.y"
+#line 2640 "parser.y"
     {PASS12 (yyval.classinfo)=(yyvsp[(2) - (2)].classinfo);}
     }
     break;
 
 
   
-    case 136:
+    case 140:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2469 "parser.y"
+#line 2642 "parser.y"
     {PASS12 (yyval.classinfo_list)=list_new();}
     }
     break;
 
 
   
-    case 137:
+    case 141:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2470 "parser.y"
+#line 2643 "parser.y"
     {PASS12 (yyval.classinfo_list)=(yyvsp[(2) - (2)].classinfo_list);}
     }
     break;
 
 
   
-    case 138:
+    case 142:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2472 "parser.y"
+#line 2645 "parser.y"
     {PASS12 (yyval.classinfo_list)=list_new();}
     }
     break;
 
 
   
-    case 139:
+    case 143:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2473 "parser.y"
+#line 2646 "parser.y"
     {PASS12 (yyval.classinfo_list)=(yyvsp[(2) - (2)].classinfo_list);}
     }
     break;
 
 
   
-    case 140:
+    case 144:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2477 "parser.y"
+#line 2650 "parser.y"
     {PASS12 startclass(&(yyvsp[(1) - (6)].flags),(yyvsp[(3) - (6)].id),(yyvsp[(4) - (6)].classinfo),(yyvsp[(5) - (6)].classinfo_list));}
     }
     break;
 
 
   
-    case 141:
+    case 145:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2479 "parser.y"
+#line 2652 "parser.y"
     {PASS12 endclass();(yyval.code)=0;}
     }
     break;
 
 
   
-    case 142:
+    case 146:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2483 "parser.y"
+#line 2656 "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));}
     }
@@ -5664,33 +6212,44 @@ PASS2
 
 
   
-    case 143:
+    case 147:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2486 "parser.y"
+#line 2659 "parser.y"
     {PASS12 endclass();(yyval.code)=0;}
     }
     break;
 
 
   
-    case 149:
+    case 153:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2495 "parser.y"
+#line 2668 "parser.y"
     {PASS_ALWAYS as3_pass=(yyvsp[(1) - (4)].number_int);}
     }
     break;
 
 
   
-    case 152:
+    case 156:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 2671 "parser.y"
+    {PASS_ALWAYS as3_pass=(yyvsp[(2) - (4)].number_int);PASS1 as3_warning("embed command ignored");}
+    }
+    break;
+
+
+  
+    case 157:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2499 "parser.y"
+#line 2673 "parser.y"
     {
     code_t*c = state->cls->static_init->header;
     c = code_append(c, (yyvsp[(1) - (1)].code));  
@@ -5701,11 +6260,11 @@ PASS2
 
 
   
-    case 158:
+    case 163:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2510 "parser.y"
+#line 2684 "parser.y"
     {
     syntaxerror("variable declarations not allowed in interfaces");
 }
@@ -5714,11 +6273,11 @@ PASS2
 
 
   
-    case 159:
+    case 164:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2513 "parser.y"
+#line 2687 "parser.y"
     {
     PASS12
     (yyvsp[(1) - (8)].flags).flags |= FLAG_PUBLIC;
@@ -5734,55 +6293,55 @@ PASS2
 
 
   
-    case 162:
+    case 167:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2547 "parser.y"
+#line 2762 "parser.y"
     {PASS12 setslotstate(&(yyvsp[(1) - (2)].flags),(yyvsp[(2) - (2)].token));}
     }
     break;
 
 
   
-    case 163:
+    case 168:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2547 "parser.y"
+#line 2762 "parser.y"
     {PASS12 (yyval.code)=(yyvsp[(4) - (4)].code);setslotstate(0, 0);}
     }
     break;
 
 
   
-    case 164:
+    case 169:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2549 "parser.y"
+#line 2764 "parser.y"
     {PASS12 (yyval.code)=0;}
     }
     break;
 
 
   
-    case 165:
+    case 170:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2550 "parser.y"
+#line 2765 "parser.y"
     {PASS12 (yyval.code)=0;}
     }
     break;
 
 
   
-    case 166:
+    case 171:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2553 "parser.y"
+#line 2768 "parser.y"
     {
 PASS12
     int flags = slotstate_flags->flags;
@@ -5792,11 +6351,11 @@ PASS12
 
         varinfo_t* info = 0;
         if(state->cls) {
-            memberinfo_t*i = registry_findmember(state->cls->info, ns.name, (yyvsp[(1) - (3)].id), 1);
+            memberinfo_t*i = registry_findmember(state->cls->info, ns.name, (yyvsp[(1) - (3)].id), 1, slotstate_flags->flags&FLAG_STATIC);
             if(i) {
                 check_override(i, flags);
             }
-            info = varinfo_register_onclass(state->cls->info, ns.access, ns.name, (yyvsp[(1) - (3)].id));
+            info = varinfo_register_onclass(state->cls->info, ns.access, ns.name, (yyvsp[(1) - (3)].id), slotstate_flags->flags&FLAG_STATIC);
         } else {
             slotinfo_t*i = registry_find(state->package, (yyvsp[(1) - (3)].id));
             if(i) {
@@ -5817,34 +6376,20 @@ 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) {
@@ -5860,7 +6405,11 @@ 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);
         }
@@ -5878,49 +6427,50 @@ PASS12
 
 
   
-    case 167:
+    case 172:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2646 "parser.y"
+#line 2851 "parser.y"
     {(yyval.constant)=0;}
     }
     break;
 
 
   
-    case 168:
+    case 173:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2647 "parser.y"
+#line 2852 "parser.y"
     {
   (yyval.constant) = malloc(sizeof(constant_t));
   *(yyval.constant) = node_eval((yyvsp[(2) - (2)].node));
-  if((yyval.constant)->type == CONSTANT_UNKNOWN)
+  if((yyval.constant)->type == CONSTANT_UNKNOWN) {
     syntaxerror("can't evaluate default parameter value (needs to be a compile-time constant)");
+  }
 }
     }
     break;
 
 
   
-    case 169:
+    case 174:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2655 "parser.y"
+#line 2860 "parser.y"
     {(yyval.constant) = constant_new_int((yyvsp[(1) - (1)].number_int));}
     }
     break;
 
 
   
-    case 170:
+    case 175:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2656 "parser.y"
+#line 2861 "parser.y"
     {
     (yyval.constant) = constant_new_uint((yyvsp[(1) - (1)].number_uint));
 }
@@ -5929,294 +6479,665 @@ PASS12
 
 
   
-    case 171:
+    case 176:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2659 "parser.y"
+#line 2864 "parser.y"
     {(yyval.constant) = constant_new_float((yyvsp[(1) - (1)].number_float));}
     }
     break;
 
 
   
-    case 172:
+    case 177:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2660 "parser.y"
+#line 2865 "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;
 
 
   
-    case 173:
+    case 178:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2661 "parser.y"
+#line 2866 "parser.y"
     {(yyval.constant) = constant_new_true((yyvsp[(1) - (1)].token));}
     }
     break;
 
 
   
-    case 174:
+    case 179:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2662 "parser.y"
+#line 2867 "parser.y"
     {(yyval.constant) = constant_new_false((yyvsp[(1) - (1)].token));}
     }
     break;
 
 
   
-    case 175:
+    case 180:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2663 "parser.y"
+#line 2868 "parser.y"
     {(yyval.constant) = constant_new_null((yyvsp[(1) - (1)].token));}
     }
     break;
 
 
   
-    case 176:
+    case 181:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2664 "parser.y"
+#line 2869 "parser.y"
     {(yyval.constant) = constant_new_undefined((yyvsp[(1) - (1)].token));}
     }
     break;
 
 
   
-    case 177:
+    case 182:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2665 "parser.y"
+#line 2870 "parser.y"
     {(yyval.constant) = constant_new_float(__builtin_nan(""));}
     }
     break;
 
 
   
-    case 178:
+    case 183:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2680 "parser.y"
+#line 2878 "parser.y"
     {
-    PASS12
-    memset(&(yyval.params),0,sizeof((yyval.params)));
+   multiname_t m = {QNAME, &stdns, 0, "XML"};
+   typedcode_t v;
+   v.c = 0;
+   v.c = abc_getlex2(v.c, &m);
+   v.c = code_append(v.c, node_read((yyvsp[(1) - (1)].node)).c);
+   v.c = abc_construct(v.c, 1);
+   v.t = TYPE_XML;
+   (yyval.node) = mkcodenode(v);
 }
     }
     break;
 
 
   
-    case 179:
+    case 184:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2684 "parser.y"
-    {
-    PASS12
-    (yyval.params)=(yyvsp[(1) - (1)].params);
-}
+#line 2889 "parser.y"
+    {PASS_ALWAYS if(!xml_level++) tokenizer_begin_xml();}
     }
     break;
 
 
   
-    case 180:
+    case 185:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2690 "parser.y"
-    {
-    PASS12
-    memset(&(yyval.params),0,sizeof((yyval.params)));
-    (yyval.params).varargs=1;
-    list_append((yyval.params).list, (yyvsp[(2) - (2)].param));
-}
+#line 2890 "parser.y"
+    {PASS_ALWAYS tokenizer_begin_xmltext();}
     }
     break;
 
 
   
-    case 181:
+    case 186:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2696 "parser.y"
-    {
-    PASS12
-    (yyval.params) =(yyvsp[(1) - (4)].params);
-    (yyval.params).varargs=1;
-    list_append((yyval.params).list, (yyvsp[(4) - (4)].param));
-}
+#line 2891 "parser.y"
+    {PASS_ALWAYS if(!--xml_level) tokenizer_end_xml(); else tokenizer_begin_xmltext();}
     }
     break;
 
 
   
-    case 182:
+    case 187:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2704 "parser.y"
-    {
-    PASS12
-    (yyval.params) = (yyvsp[(1) - (3)].params);
-    list_append((yyval.params).list, (yyvsp[(3) - (3)].param));
-}
+#line 2893 "parser.y"
+    {PASS_ALWAYS tokenizer_begin_xmltext();}
     }
     break;
 
 
   
-    case 183:
+    case 188:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2709 "parser.y"
+#line 2893 "parser.y"
     {
-    PASS12
-    memset(&(yyval.params),0,sizeof((yyval.params)));
-    list_append((yyval.params).list, (yyvsp[(1) - (1)].param));
+    (yyval.node) = (yyvsp[(2) - (4)].node);
 }
     }
     break;
 
 
   
-    case 184:
+    case 189:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2715 "parser.y"
-    {
-     PASS12
-     (yyval.param) = rfx_calloc(sizeof(param_t));
-     (yyval.param)->name=(yyvsp[(1) - (4)].id);
-     (yyval.param)->type = (yyvsp[(3) - (4)].classinfo);
-     PASS2
-     (yyval.param)->value = (yyvsp[(4) - (4)].constant);
-}
+#line 2896 "parser.y"
+    {PASS_ALWAYS tokenizer_begin_xml();}
     }
     break;
 
 
   
-    case 185:
+    case 190:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2723 "parser.y"
+#line 2896 "parser.y"
     {
-     PASS12
-     (yyval.param) = rfx_calloc(sizeof(param_t));
-     (yyval.param)->name=(yyvsp[(1) - (2)].id);
-     (yyval.param)->type = TYPE_ANY;
-     PASS2
-     (yyval.param)->value = (yyvsp[(2) - (2)].constant);
+    (yyval.node) = (yyvsp[(2) - (4)].node);
 }
     }
     break;
 
 
   
-    case 188:
+    case 191:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2733 "parser.y"
-    {PASS12 (yyval.token)=0;}
+#line 2899 "parser.y"
+    {(yyval.node)=mkstringnode("");}
     }
     break;
 
 
   
-    case 189:
+    case 192:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2736 "parser.y"
-    {PASS12 startfunction(&(yyvsp[(1) - (9)].flags),(yyvsp[(3) - (9)].token),(yyvsp[(4) - (9)].id),&(yyvsp[(6) - (9)].params),(yyvsp[(8) - (9)].classinfo));}
+#line 2900 "parser.y"
+    {
+    (yyval.node) = mkaddnode((yyvsp[(1) - (2)].node),(yyvsp[(2) - (2)].node));
+}
     }
     break;
 
 
   
-    case 190:
+    case 193:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2737 "parser.y"
+#line 2903 "parser.y"
     {
-    PASS1 
-    endfunction(&(yyvsp[(1) - (12)].flags),(yyvsp[(3) - (12)].token),(yyvsp[(4) - (12)].id),&(yyvsp[(6) - (12)].params),0,0);
-    PASS2
-    if(!state->method->info) syntaxerror("internal error");
-    
-    code_t*c = method_header(state->method);
-    c = wrap_function(c, 0, (yyvsp[(11) - (12)].code));
-
-    endfunction(&(yyvsp[(1) - (12)].flags),(yyvsp[(3) - (12)].token),(yyvsp[(4) - (12)].id),&(yyvsp[(6) - (12)].params),(yyvsp[(8) - (12)].classinfo),c);
-    PASS12
-    list_deep_free((yyvsp[(6) - (12)].params).list);
-    (yyval.code)=0;
+    char* str = string_cstr(&(yyvsp[(2) - (2)].str));
+    (yyval.node) = mkaddnode((yyvsp[(1) - (2)].node),mkstringnode(str));
+    free(str);
 }
     }
     break;
 
 
   
-    case 192:
+    case 194:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2753 "parser.y"
-    {PASS12 (yyval.id)=0;}
+#line 2908 "parser.y"
+    {
+    (yyval.node) = mkaddnode((yyvsp[(1) - (2)].node), mkstringnode(">"));
+}
     }
     break;
 
 
   
-    case 193:
+    case 195:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2755 "parser.y"
-    {PASS12 innerfunction((yyvsp[(2) - (7)].id),&(yyvsp[(4) - (7)].params),(yyvsp[(6) - (7)].classinfo));}
+#line 2911 "parser.y"
+    {
+    (yyval.node) = mkaddnode((yyvsp[(1) - (2)].node),(yyvsp[(2) - (2)].node));
+}
     }
     break;
 
 
   
-    case 194:
+    case 196:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2756 "parser.y"
+#line 2914 "parser.y"
     {
-    PASS1
-    endfunction(0,0,(yyvsp[(2) - (10)].id),&(yyvsp[(4) - (10)].params),0,0);
-    PASS2
-    methodinfo_t*f = state->method->info;
-    if(!f || !f->kind) syntaxerror("internal error");
-    
-    code_t*c = method_header(state->method);
-    c = wrap_function(c, 0, (yyvsp[(9) - (10)].code));
+    (yyval.node) = mkaddnode((yyvsp[(1) - (3)].node), mkaddnode((yyvsp[(2) - (3)].node),(yyvsp[(3) - (3)].node)));
+}
+    }
+    break;
 
-    int index = state->method->var_index;
-    endfunction(0,0,(yyvsp[(2) - (10)].id),&(yyvsp[(4) - (10)].params),(yyvsp[(6) - (10)].classinfo),c);
+
+  
+    case 197:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 2917 "parser.y"
+    {
+    (yyval.node) = mkstringnode((yyvsp[(1) - (1)].id));
+}
+    }
+    break;
+
+
+  
+    case 198:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 2920 "parser.y"
+    {
+    (yyval.node) = (yyvsp[(1) - (1)].node);
+}
+    }
+    break;
+
+
+  
+    case 199:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 2924 "parser.y"
+    {
+    (yyval.node) = mkstringnode("");
+}
+    }
+    break;
+
+
+  
+    case 200:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 2927 "parser.y"
+    {
+    (yyval.node) = mkaddnode(mkstringnode(" "),(yyvsp[(1) - (1)].node));
+}
+    }
+    break;
+
+
+  
+    case 201:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 2931 "parser.y"
+    {
+    //$$ = allocprintf("<%s%s/>", $2, $3, $5, $8);
+    (yyval.node) = mkaddnode(mkaddnode(mkaddnode(mkstringnode("<"),(yyvsp[(2) - (6)].node)),(yyvsp[(3) - (6)].node)),mkstringnode("/>"));
+}
+    }
+    break;
+
+
+  
+    case 202:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 2935 "parser.y"
+    {
+    //$$ = allocprintf("<%s%s>%s</%s>", $2, $3, $5, $8);
+    (yyval.node) = mkaddnode(mkaddnode(mkaddnode(mkaddnode(mkaddnode(mkaddnode(mkaddnode(
+         mkstringnode("<"),(yyvsp[(2) - (10)].node)),(yyvsp[(3) - (10)].node)),mkstringnode(">")),(yyvsp[(5) - (10)].node)),mkstringnode("</")),(yyvsp[(8) - (10)].node)),mkstringnode(">"));
+}
+    }
+    break;
+
+
+  
+    case 203:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 2940 "parser.y"
+    {
+    //$$ = allocprintf("<%s%s>%s%s</%s>", $2, $3, $5, $6, $9);
+    (yyval.node) = mkaddnode(mkaddnode(mkaddnode(mkaddnode(mkaddnode(mkaddnode(mkaddnode(mkaddnode(
+         mkstringnode("<"),(yyvsp[(2) - (11)].node)),(yyvsp[(3) - (11)].node)),mkstringnode(">")),(yyvsp[(5) - (11)].node)),(yyvsp[(6) - (11)].node)),mkstringnode("</")),(yyvsp[(9) - (11)].node)),mkstringnode(">"));
+}
+    }
+    break;
+
+
+  
+    case 204:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 2946 "parser.y"
+    {
+    (yyval.node) = (yyvsp[(1) - (1)].node);
+}
+    }
+    break;
+
+
+  
+    case 205:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 2949 "parser.y"
+    {
+    (yyval.node) = mkaddnode((yyvsp[(1) - (2)].node), mkaddnode(mkstringnode(" "),(yyvsp[(2) - (2)].node)));
+}
+    }
+    break;
+
+
+  
+    case 206:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 2952 "parser.y"
+    {
+    (yyval.node) = (yyvsp[(1) - (1)].node);
+}
+    }
+    break;
+
+
+  
+    case 207:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 2955 "parser.y"
+    {
+    char* str = string_cstr(&(yyvsp[(3) - (3)].str));
+    (yyval.node) = mkaddnode((yyvsp[(1) - (3)].node), mkstringnode(concat2("=",str)));
+    free(str);
+}
+    }
+    break;
+
+
+  
+    case 208:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 2960 "parser.y"
+    {
+    (yyval.node) = mkaddnode((yyvsp[(1) - (3)].node), mkaddnode(mkstringnode("=\""), mkaddnode((yyvsp[(3) - (3)].node), mkstringnode("\""))));
+}
+    }
+    break;
+
+
+  
+    case 209:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 2963 "parser.y"
+    {
+    (yyval.node) = mkaddnode(mkaddnode(mkstringnode(concat2((yyvsp[(1) - (3)].id),"=\"")), (yyvsp[(3) - (3)].node)), mkstringnode("\""));
+}
+    }
+    break;
+
+
+  
+    case 210:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 2966 "parser.y"
+    {
+    char* str = string_cstr(&(yyvsp[(3) - (3)].str));
+    (yyval.node)=mkstringnode(allocprintf("%s=%s", (yyvsp[(1) - (3)].id),str));
+    free(str);
+    free((yyvsp[(1) - (3)].id));free((char*)(yyvsp[(3) - (3)].str).str);
+}
+    }
+    break;
+
+
+  
+    case 211:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 2976 "parser.y"
+    {
+    PASS12
+    memset(&(yyval.params),0,sizeof((yyval.params)));
+}
+    }
+    break;
+
+
+  
+    case 212:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 2980 "parser.y"
+    {
+    PASS12
+    (yyval.params)=(yyvsp[(1) - (1)].params);
+}
+    }
+    break;
+
+
+  
+    case 213:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 2986 "parser.y"
+    {
+    PASS12
+    memset(&(yyval.params),0,sizeof((yyval.params)));
+    (yyval.params).varargs=1;
+    list_append((yyval.params).list, (yyvsp[(2) - (2)].param));
+}
+    }
+    break;
+
+
+  
+    case 214:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 2992 "parser.y"
+    {
+    PASS12
+    (yyval.params) =(yyvsp[(1) - (4)].params);
+    (yyval.params).varargs=1;
+    list_append((yyval.params).list, (yyvsp[(4) - (4)].param));
+}
+    }
+    break;
+
+
+  
+    case 215:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 3000 "parser.y"
+    {
+    PASS12
+    (yyval.params) = (yyvsp[(1) - (3)].params);
+    list_append((yyval.params).list, (yyvsp[(3) - (3)].param));
+}
+    }
+    break;
+
+
+  
+    case 216:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 3005 "parser.y"
+    {
+    PASS12
+    memset(&(yyval.params),0,sizeof((yyval.params)));
+    list_append((yyval.params).list, (yyvsp[(1) - (1)].param));
+}
+    }
+    break;
+
+
+  
+    case 217:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 3011 "parser.y"
+    {
+     PASS12
+     (yyval.param) = rfx_calloc(sizeof(param_t));
+     (yyval.param)->name=(yyvsp[(1) - (4)].id);
+     (yyval.param)->type = (yyvsp[(3) - (4)].classinfo);
+     PASS2
+     (yyval.param)->value = (yyvsp[(4) - (4)].constant);
+}
+    }
+    break;
+
+
+  
+    case 218:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 3019 "parser.y"
+    {
+     PASS12
+     (yyval.param) = rfx_calloc(sizeof(param_t));
+     (yyval.param)->name=(yyvsp[(1) - (2)].id);
+     (yyval.param)->type = TYPE_ANY;
+     PASS2
+     (yyval.param)->value = (yyvsp[(2) - (2)].constant);
+}
+    }
+    break;
+
+
+  
+    case 221:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 3029 "parser.y"
+    {PASS12 (yyval.token)=0;}
+    }
+    break;
+
+
+  
+    case 222:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 3032 "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 223:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 3033 "parser.y"
+    {
+    PASS1 
+    endfunction(&(yyvsp[(1) - (12)].flags),(yyvsp[(3) - (12)].token),(yyvsp[(4) - (12)].id),&(yyvsp[(6) - (12)].params),0,0);
+    PASS2
+    if(!state->method->info) syntaxerror("internal error");
+    
+    code_t*c = method_header(state->method);
+    c = wrap_function(c, 0, (yyvsp[(11) - (12)].code));
+
+    endfunction(&(yyvsp[(1) - (12)].flags),(yyvsp[(3) - (12)].token),(yyvsp[(4) - (12)].id),&(yyvsp[(6) - (12)].params),(yyvsp[(8) - (12)].classinfo),c);
+    PASS12
+    list_deep_free((yyvsp[(6) - (12)].params).list);
+    (yyval.code)=0;
+}
+    }
+    break;
+
+
+  
+    case 225:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 3049 "parser.y"
+    {PASS12 (yyval.id)=0;}
+    }
+    break;
+
+
+  
+    case 226:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 3051 "parser.y"
+    {PASS12 innerfunction((yyvsp[(2) - (7)].id),&(yyvsp[(4) - (7)].params),(yyvsp[(6) - (7)].classinfo));}
+    }
+    break;
+
+
+  
+    case 227:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 3052 "parser.y"
+    {
+    PASS1
+    endfunction(0,0,(yyvsp[(2) - (10)].id),&(yyvsp[(4) - (10)].params),0,0);
+    PASS2
+    methodinfo_t*f = state->method->info;
+    if(!f || !f->kind) syntaxerror("internal error");
+    
+    code_t*c = method_header(state->method);
+    c = wrap_function(c, 0, (yyvsp[(9) - (10)].code));
+
+    int index = state->method->var_index;
+    endfunction(0,0,(yyvsp[(2) - (10)].id),&(yyvsp[(4) - (10)].params),(yyvsp[(6) - (10)].classinfo),c);
     
     (yyval.value).c = abc_getlocal(0, index);
     (yyval.value).t = TYPE_FUNCTION(f);
@@ -6228,11 +7149,11 @@ PASS12
 
 
   
-    case 195:
+    case 228:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2778 "parser.y"
+#line 3074 "parser.y"
     {
     PASS1 NEW(unresolvedinfo_t,c);
           memset(c, 0, sizeof(*c));
@@ -6256,11 +7177,11 @@ PASS12
 
 
   
-    case 196:
+    case 229:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2797 "parser.y"
+#line 3093 "parser.y"
     {
     PASS1 NEW(unresolvedinfo_t,c);
           memset(c, 0, sizeof(*c));
@@ -6279,121 +7200,121 @@ PASS12
 
 
   
-    case 199:
+    case 232:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2814 "parser.y"
+#line 3110 "parser.y"
     {PASS12 (yyval.classinfo_list)=list_new();list_append((yyval.classinfo_list), (yyvsp[(1) - (1)].classinfo));}
     }
     break;
 
 
   
-    case 200:
+    case 233:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2815 "parser.y"
+#line 3111 "parser.y"
     {PASS12 (yyval.classinfo_list)=(yyvsp[(1) - (3)].classinfo_list);list_append((yyval.classinfo_list),(yyvsp[(3) - (3)].classinfo));}
     }
     break;
 
 
   
-    case 201:
+    case 234:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2817 "parser.y"
+#line 3113 "parser.y"
     {PASS12 (yyval.classinfo)=(yyvsp[(1) - (1)].classinfo);}
     }
     break;
 
 
   
-    case 202:
+    case 235:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2818 "parser.y"
+#line 3114 "parser.y"
     {PASS12 (yyval.classinfo)=TYPE_ANY;}
     }
     break;
 
 
   
-    case 203:
+    case 236:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2819 "parser.y"
-    {PASS12 (yyval.classinfo)=TYPE_ANY;}
+#line 3115 "parser.y"
+    {PASS12 (yyval.classinfo)=TYPE_VOID;}
     }
     break;
 
 
   
-    case 204:
+    case 237:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2828 "parser.y"
+#line 3124 "parser.y"
     {PASS12 (yyval.classinfo)=(yyvsp[(2) - (2)].classinfo);}
     }
     break;
 
 
   
-    case 205:
+    case 238:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2829 "parser.y"
+#line 3125 "parser.y"
     {PASS12 (yyval.classinfo)=0;}
     }
     break;
 
 
   
-    case 206:
+    case 239:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2833 "parser.y"
+#line 3129 "parser.y"
     {(yyval.value_list).cc=0;(yyval.value_list).number=0;}
     }
     break;
 
 
   
-    case 207:
+    case 240:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2834 "parser.y"
+#line 3130 "parser.y"
     {(yyval.value_list)=(yyvsp[(2) - (3)].value_list);}
     }
     break;
 
 
   
-    case 208:
+    case 241:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2836 "parser.y"
+#line 3132 "parser.y"
     {(yyval.value_list).cc=0;(yyval.value_list).number=0;}
     }
     break;
 
 
   
-    case 211:
+    case 244:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2840 "parser.y"
+#line 3136 "parser.y"
     {(yyval.value_list).number=1;
                                                   (yyval.value_list).cc = (yyvsp[(1) - (1)].value).c;
                                                  }
@@ -6402,22 +7323,22 @@ PASS12
 
 
   
-    case 212:
+    case 245:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2844 "parser.y"
+#line 3140 "parser.y"
     {(yyval.value_list) = (yyvsp[(1) - (2)].value_list);}
     }
     break;
 
 
   
-    case 213:
+    case 246:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2845 "parser.y"
+#line 3141 "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);
@@ -6427,11 +7348,11 @@ PASS12
 
 
   
-    case 215:
+    case 248:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2851 "parser.y"
+#line 3147 "parser.y"
     {
     typedcode_t v = node_read((yyvsp[(2) - (4)].node));
     (yyval.value).c = v.c;
@@ -6444,13 +7365,23 @@ 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(is_getlocal((yyval.value).c)) {
+        (yyval.value).c = code_append((yyval.value).c, paramcode);
+        (yyval.value).c = abc_construct((yyval.value).c, (yyvsp[(4) - (4)].value_list).number);
+    } 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);
@@ -6469,11 +7400,11 @@ PASS12
 
 
   
-    case 216:
+    case 249:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2888 "parser.y"
+#line 3194 "parser.y"
     {
    
     typedcode_t v = node_read((yyvsp[(1) - (4)].node));
@@ -6490,17 +7421,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);
@@ -6519,8 +7450,8 @@ PASS12
         // 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;
+        (yyval.value).c = abc_coerce_a((yyval.value).c);
     }
 }
     }
@@ -6528,11 +7459,11 @@ PASS12
 
 
   
-    case 217:
+    case 250:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2938 "parser.y"
+#line 3244 "parser.y"
     {
     if(!state->cls) syntaxerror("super() not allowed outside of a class");
     if(!state->method) syntaxerror("super() not allowed outside of a function");
@@ -6558,11 +7489,11 @@ PASS12
 
 
   
-    case 218:
+    case 251:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2959 "parser.y"
+#line 3265 "parser.y"
     {
     typedcode_t v = node_read((yyvsp[(2) - (2)].node));
     (yyval.value).c = v.c;
@@ -6589,11 +7520,11 @@ PASS12
 
 
   
-    case 219:
+    case 252:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2981 "parser.y"
+#line 3287 "parser.y"
     {
     (yyval.code) = abc_returnvoid(0);
 }
@@ -6602,11 +7533,11 @@ PASS12
 
 
   
-    case 220:
+    case 253:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2984 "parser.y"
+#line 3290 "parser.y"
     {
     (yyval.code) = (yyvsp[(2) - (2)].value).c;
     (yyval.code) = abc_returnvalue((yyval.code));
@@ -6616,11 +7547,11 @@ PASS12
 
 
   
-    case 221:
+    case 254:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2991 "parser.y"
+#line 3297 "parser.y"
     {
     (yyval.value) = node_read((yyvsp[(1) - (1)].node));
 }
@@ -6629,11 +7560,11 @@ PASS12
 
 
   
-    case 222:
+    case 255:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2994 "parser.y"
+#line 3300 "parser.y"
     {
     (yyval.value) = node_read((yyvsp[(1) - (1)].node));
 }
@@ -6642,11 +7573,11 @@ PASS12
 
 
   
-    case 223:
+    case 256:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 2997 "parser.y"
+#line 3303 "parser.y"
     {
     (yyval.node) = mkmultinode(&node_comma, (yyvsp[(1) - (1)].node));
 }
@@ -6655,11 +7586,11 @@ PASS12
 
 
   
-    case 224:
+    case 257:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3000 "parser.y"
+#line 3306 "parser.y"
     {
     (yyval.node) = multinode_extend((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));
 }
@@ -6668,11 +7599,11 @@ PASS12
 
 
   
-    case 225:
+    case 258:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3003 "parser.y"
+#line 3309 "parser.y"
     { 
     (yyval.code) = node_exec((yyvsp[(1) - (1)].node)); 
 }
@@ -6681,11 +7612,11 @@ PASS12
 
 
   
-    case 226:
+    case 259:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3006 "parser.y"
+#line 3312 "parser.y"
     { 
     (yyval.code) = (yyvsp[(1) - (3)].code);
     (yyval.code) = code_append((yyval.code), node_exec((yyvsp[(3) - (3)].node))); 
@@ -6695,55 +7626,88 @@ PASS12
 
 
   
-    case 227:
+    case 260:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3011 "parser.y"
+#line 3317 "parser.y"
     {(yyval.value_list).cc=0;(yyval.value_list).number=0;}
     }
     break;
 
 
   
-    case 228:
+    case 261:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3012 "parser.y"
+#line 3318 "parser.y"
     {(yyval.value_list)=(yyvsp[(1) - (1)].value_list);}
     }
     break;
 
 
   
-    case 229:
+    case 262:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3014 "parser.y"
+#line 3320 "parser.y"
     {(yyval.code)=abc_pushstring(0,(yyvsp[(1) - (1)].id));}
     }
     break;
 
 
   
-    case 230:
+    case 263:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3015 "parser.y"
+#line 3321 "parser.y"
     {(yyval.code)=abc_pushstring2(0,&(yyvsp[(1) - (1)].str));}
     }
     break;
 
 
   
-    case 231:
+    case 264:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 3322 "parser.y"
+    {syntaxerror("dictionary keys must be strings");}
+    }
+    break;
+
+
+  
+    case 265:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 3323 "parser.y"
+    {syntaxerror("dictionary keys must be strings");}
+    }
+    break;
+
+
+  
+    case 266:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 3324 "parser.y"
+    {syntaxerror("dictionary keys must be strings");}
+    }
+    break;
+
+
+  
+    case 267:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3017 "parser.y"
+#line 3326 "parser.y"
     {
     (yyval.value_list).cc = 0;
     (yyval.value_list).cc = code_append((yyval.value_list).cc, (yyvsp[(1) - (3)].code));
@@ -6755,11 +7719,11 @@ PASS12
 
 
   
-    case 232:
+    case 268:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3023 "parser.y"
+#line 3332 "parser.y"
     {
     (yyval.value_list).cc = (yyvsp[(1) - (5)].value_list).cc;
     (yyval.value_list).number = (yyvsp[(1) - (5)].value_list).number+2;
@@ -6771,77 +7735,77 @@ PASS12
 
 
   
-    case 233:
+    case 269:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3032 "parser.y"
+#line 3341 "parser.y"
     {(yyval.node) = mkcodenode((yyvsp[(1) - (1)].value));}
     }
     break;
 
 
   
-    case 234:
+    case 270:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3033 "parser.y"
+#line 3342 "parser.y"
     {(yyval.node) = mkcodenode((yyvsp[(1) - (1)].value));}
     }
     break;
 
 
   
-    case 235:
+    case 271:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3034 "parser.y"
+#line 3343 "parser.y"
     {(yyval.node) = mkcodenode((yyvsp[(1) - (1)].value));}
     }
     break;
 
 
   
-    case 236:
+    case 272:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3035 "parser.y"
+#line 3344 "parser.y"
     {(yyval.node) = mkcodenode((yyvsp[(1) - (1)].value));}
     }
     break;
 
 
   
-    case 237:
+    case 273:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3036 "parser.y"
+#line 3345 "parser.y"
     {(yyval.node) = mkcodenode((yyvsp[(1) - (1)].value));}
     }
     break;
 
 
   
-    case 238:
+    case 274:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3037 "parser.y"
+#line 3346 "parser.y"
     {(yyval.node) = (yyvsp[(1) - (1)].node);}
     }
     break;
 
 
   
-    case 239:
+    case 275:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3039 "parser.y"
+#line 3348 "parser.y"
     { 
     (yyval.node) = mkconstnode((yyvsp[(1) - (1)].constant));
 }
@@ -6850,16 +7814,28 @@ PASS12
 
 
   
-    case 240:
+    case 276:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 3352 "parser.y"
+    {
+    (yyval.node) = (yyvsp[(1) - (1)].node);
+}
+    }
+    break;
+
+
+  
+    case 277:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3044 "parser.y"
+#line 3357 "parser.y"
     {
     typedcode_t v;
     v.c = 0;
-    namespace_t ns = {ACCESS_PACKAGE, ""};
-    multiname_t m = {QNAME, &ns, 0, "RegExp"};
+    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);
@@ -6878,11 +7854,30 @@ PASS12
 
 
   
-    case 241:
+    case 278:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 3375 "parser.y"
+    {
+    PASS1
+    state->method->need_arguments = 1;
+    PASS2
+    typedcode_t v;
+    v.c = abc_getlocal(0, state->method->need_arguments);
+    v.t = TYPE_ARRAY;
+    (yyval.node) = mkcodenode(v);
+}
+    }
+    break;
+
+
+  
+    case 279:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3064 "parser.y"
+#line 3386 "parser.y"
     {
     typedcode_t v;
     v.c = code_new();
@@ -6896,11 +7891,11 @@ PASS12
 
 
   
-    case 242:
+    case 280:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3074 "parser.y"
+#line 3396 "parser.y"
     {
     typedcode_t v;
     v.c = code_new();
@@ -6914,566 +7909,566 @@ PASS12
 
 
   
-    case 243:
+    case 281:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3083 "parser.y"
+#line 3405 "parser.y"
     {(yyval.node) = mknode2(&node_lt,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 244:
+    case 282:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3084 "parser.y"
+#line 3406 "parser.y"
     {(yyval.node) = mknode2(&node_gt,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 245:
+    case 283:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3085 "parser.y"
+#line 3407 "parser.y"
     {(yyval.node) = mknode2(&node_le,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 246:
+    case 284:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3086 "parser.y"
+#line 3408 "parser.y"
     {(yyval.node) = mknode2(&node_ge,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 247:
+    case 285:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3087 "parser.y"
+#line 3409 "parser.y"
     {(yyval.node) = mknode2(&node_eqeq,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 248:
+    case 286:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3088 "parser.y"
+#line 3410 "parser.y"
     {(yyval.node) = mknode2(&node_eqeqeq,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 249:
+    case 287:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3089 "parser.y"
+#line 3411 "parser.y"
     {(yyval.node) = mknode2(&node_noteqeq,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 250:
+    case 288:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3090 "parser.y"
+#line 3412 "parser.y"
     {(yyval.node) = mknode2(&node_noteq,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 251:
+    case 289:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3091 "parser.y"
+#line 3413 "parser.y"
     {(yyval.node) = mknode2(&node_oror,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 252:
+    case 290:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3092 "parser.y"
+#line 3414 "parser.y"
     {(yyval.node) = mknode2(&node_andand,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 253:
+    case 291:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3093 "parser.y"
+#line 3415 "parser.y"
     {(yyval.node) = mknode1(&node_not, (yyvsp[(2) - (2)].node));}
     }
     break;
 
 
   
-    case 254:
+    case 292:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3094 "parser.y"
+#line 3416 "parser.y"
     {(yyval.node) = mknode1(&node_bitnot, (yyvsp[(2) - (2)].node));}
     }
     break;
 
 
   
-    case 255:
+    case 293:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3095 "parser.y"
+#line 3417 "parser.y"
     {(yyval.node) = mknode2(&node_bitand, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 256:
+    case 294:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3096 "parser.y"
+#line 3418 "parser.y"
     {(yyval.node) = mknode2(&node_bitxor, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 257:
+    case 295:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3097 "parser.y"
+#line 3419 "parser.y"
     {(yyval.node) = mknode2(&node_bitor, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 258:
+    case 296:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3098 "parser.y"
+#line 3420 "parser.y"
     {(yyval.node) = mknode2(&node_shr, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 259:
+    case 297:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3099 "parser.y"
+#line 3421 "parser.y"
     {(yyval.node) = mknode2(&node_ushr, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 260:
+    case 298:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3100 "parser.y"
+#line 3422 "parser.y"
     {(yyval.node) = mknode2(&node_shl, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 261:
+    case 299:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3101 "parser.y"
+#line 3423 "parser.y"
     {(yyval.node) = mknode2(&node_div, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 262:
+    case 300:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3102 "parser.y"
+#line 3424 "parser.y"
     {(yyval.node) = mknode2(&node_mod, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 263:
+    case 301:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3103 "parser.y"
+#line 3425 "parser.y"
     {(yyval.node) = mknode2(&node_plus, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 264:
+    case 302:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3104 "parser.y"
+#line 3426 "parser.y"
     {(yyval.node) = mknode2(&node_minus, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 265:
+    case 303:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3105 "parser.y"
+#line 3427 "parser.y"
     {(yyval.node) = mknode2(&node_multiply, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 266:
+    case 304:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3106 "parser.y"
+#line 3428 "parser.y"
     {(yyval.node) = mknode2(&node_in, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 267:
+    case 305:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3107 "parser.y"
+#line 3429 "parser.y"
     {(yyval.node) = mknode2(&node_as, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 268:
+    case 306:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3108 "parser.y"
+#line 3430 "parser.y"
     {(yyval.node) = mknode2(&node_instanceof, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 269:
+    case 307:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3109 "parser.y"
+#line 3431 "parser.y"
     {(yyval.node) = mknode2(&node_is, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 270:
+    case 308:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3110 "parser.y"
-    {(yyval.node) = mknode1(&node_typeof, (yyvsp[(3) - (4)].node));}
+#line 3432 "parser.y"
+    {(yyval.node) = mknode1(&node_typeof, (yyvsp[(2) - (2)].node));}
     }
     break;
 
 
   
-    case 271:
+    case 309:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3111 "parser.y"
+#line 3433 "parser.y"
     {(yyval.node) = mknode1(&node_void, (yyvsp[(2) - (2)].node));}
     }
     break;
 
 
   
-    case 272:
+    case 310:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3112 "parser.y"
+#line 3434 "parser.y"
     { (yyval.node) = mkconstnode(constant_new_undefined());}
     }
     break;
 
 
   
-    case 273:
+    case 311:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3113 "parser.y"
+#line 3435 "parser.y"
     { (yyval.node)=(yyvsp[(2) - (3)].node);}
     }
     break;
 
 
   
-    case 274:
+    case 312:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3114 "parser.y"
+#line 3436 "parser.y"
     {(yyval.node) = mknode1(&node_neg, (yyvsp[(2) - (2)].node));}
     }
     break;
 
 
   
-    case 275:
+    case 313:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3115 "parser.y"
+#line 3437 "parser.y"
     {(yyval.node) = mknode2(&node_arraylookup, (yyvsp[(1) - (4)].node),(yyvsp[(3) - (4)].node));}
     }
     break;
 
 
   
-    case 276:
+    case 314:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3116 "parser.y"
+#line 3438 "parser.y"
     {(yyval.node) = mknode2(&node_muleq, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 277:
+    case 315:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3117 "parser.y"
+#line 3439 "parser.y"
     {(yyval.node) = mknode2(&node_modeq, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 278:
+    case 316:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3118 "parser.y"
+#line 3440 "parser.y"
     {(yyval.node) = mknode2(&node_shleq, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 279:
+    case 317:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3119 "parser.y"
+#line 3441 "parser.y"
     {(yyval.node) = mknode2(&node_shreq, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 280:
+    case 318:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3120 "parser.y"
+#line 3442 "parser.y"
     {(yyval.node) = mknode2(&node_ushreq, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 281:
+    case 319:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3121 "parser.y"
+#line 3443 "parser.y"
     { (yyval.node) = mknode2(&node_diveq, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 282:
+    case 320:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3122 "parser.y"
+#line 3444 "parser.y"
     { (yyval.node) = mknode2(&node_bitoreq, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 283:
+    case 321:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3123 "parser.y"
+#line 3445 "parser.y"
     { (yyval.node) = mknode2(&node_bitxoreq, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 284:
+    case 322:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3124 "parser.y"
+#line 3446 "parser.y"
     { (yyval.node) = mknode2(&node_bitandeq, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 285:
+    case 323:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3125 "parser.y"
+#line 3447 "parser.y"
     { (yyval.node) = mknode2(&node_pluseq, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 286:
+    case 324:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3126 "parser.y"
+#line 3448 "parser.y"
     { (yyval.node) = mknode2(&node_minuseq, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 287:
+    case 325:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3127 "parser.y"
+#line 3449 "parser.y"
     { (yyval.node) = mknode2(&node_assign, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
     }
     break;
 
 
   
-    case 288:
+    case 326:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3128 "parser.y"
+#line 3450 "parser.y"
     { (yyval.node) = mknode3(&node_tenary, (yyvsp[(1) - (5)].node), (yyvsp[(3) - (5)].node), (yyvsp[(5) - (5)].node));}
     }
     break;
 
 
   
-    case 289:
+    case 327:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3130 "parser.y"
+#line 3452 "parser.y"
     { (yyval.node) = mknode1(&node_rplusplus, (yyvsp[(1) - (2)].node));}
     }
     break;
 
 
   
-    case 290:
+    case 328:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3131 "parser.y"
+#line 3453 "parser.y"
     { (yyval.node) = mknode1(&node_rminusminus, (yyvsp[(1) - (2)].node));}
     }
     break;
 
 
   
-    case 291:
+    case 329:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3132 "parser.y"
+#line 3454 "parser.y"
     {(yyval.node) = mknode1(&node_lplusplus, (yyvsp[(2) - (2)].node)); }
     }
     break;
 
 
   
-    case 292:
+    case 330:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3133 "parser.y"
+#line 3455 "parser.y"
     {(yyval.node) = mknode1(&node_lminusminus, (yyvsp[(2) - (2)].node)); }
     }
     break;
 
 
   
-    case 293:
+    case 331:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3136 "parser.y"
+#line 3458 "parser.y"
     { if(!state->cls->info)
                   syntaxerror("super keyword not allowed outside a class");
               classinfo_t*t = state->cls->info->superclass;
               if(!t) t = TYPE_OBJECT;
-              memberinfo_t*f = findmember_nsset(t, (yyvsp[(3) - (3)].id), 1);
+              memberinfo_t*f = findmember_nsset(t, (yyvsp[(3) - (3)].id), 1, 0);
               MEMBER_MULTINAME(m, f, (yyvsp[(3) - (3)].id));
               typedcode_t v;
               v.c = 0;
@@ -7487,86 +8482,298 @@ PASS12
 
 
   
-    case 294:
+    case 332:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3150 "parser.y"
+#line 3472 "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 295:
+    case 333:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 3480 "parser.y"
+    {PASS12 new_state();state->xmlfilter=1;}
+    }
+    break;
+
+
+  
+    case 334:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3156 "parser.y"
+#line 3480 "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, state->vars);
+    old_state();
+    typedcode_t r;
+    r.c = c;
+    r.t = TYPE_XMLLIST;
+    (yyval.node) = mkcodenode(r);
+}
     }
     break;
 
 
   
-    case 296:
+    case 335:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 3534 "parser.y"
+    {(yyval.id)=(yyvsp[(1) - (1)].id);}
+    }
+    break;
+
+
+  
+    case 336:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 3535 "parser.y"
+    {(yyval.id)="*";}
+    }
+    break;
+
+
+  
+    case 338:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 3537 "parser.y"
+    {(yyval.id)="*";}
+    }
+    break;
+
+
+  
+    case 339:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3162 "parser.y"
+#line 3577 "parser.y"
     {
-              // namespace declaration TODO
-              (yyval.node) = mkdummynode();
-              as3_warning("ignored :: operator");
-           }
+    (yyval.node) = get_descendants((yyvsp[(1) - (5)].node), (yyvsp[(3) - (5)].id), (yyvsp[(5) - (5)].id), 0, 0);
+}
     }
     break;
 
 
   
-    case 297:
+    case 340:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3168 "parser.y"
+#line 3580 "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 298:
+    case 341:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3174 "parser.y"
+#line 3587 "parser.y"
     {
-              // filter TODO
-              (yyval.node) = mkdummynode();
-              as3_warning("ignored .() operator");
-           }
+    (yyval.node) = get_descendants((yyvsp[(1) - (5)].node), (yyvsp[(3) - (5)].id), (yyvsp[(5) - (5)].id), 1, 0);
+}
     }
     break;
 
 
   
-    case 299:
+    case 342:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 3590 "parser.y"
+    {
+    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 343:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 3601 "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 344:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 3609 "parser.y"
+    {
+    (yyval.node) = get_descendants((yyvsp[(1) - (6)].node), (yyvsp[(4) - (6)].id), (yyvsp[(6) - (6)].id), 0, 1);
+}
+    }
+    break;
+
+
+  
+    case 345:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 3613 "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 346:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 3620 "parser.y"
+    {
+    (yyval.node) = get_descendants((yyvsp[(1) - (6)].node), (yyvsp[(4) - (6)].id), (yyvsp[(6) - (6)].id), 1, 1);
+}
+    }
+    break;
+
+
+  
+    case 347:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 3624 "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 348:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 3634 "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 349:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3187 "parser.y"
+#line 3645 "parser.y"
     {
     typedcode_t v1 = node_read((yyvsp[(1) - (3)].node));
     (yyval.value).c = v1.c;
@@ -7576,11 +8783,16 @@ PASS12
         t = t->data;
         is_static = 1;
     }
-    if(t) {
+    if(TYPE_IS_XML(t) && !findmember_nsset(t, (yyvsp[(3) - (3)].id), 1, is_static)) {
+        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);
         }
-        memberinfo_t*f = findmember_nsset(t, (yyvsp[(3) - (3)].id), 1);
+        memberinfo_t*f = findmember_nsset(t, (yyvsp[(3) - (3)].id), 1, is_static);
         char noslot = 0;
         if(f && !is_static != !(f->flags&FLAG_STATIC))
            noslot=1;
@@ -7588,7 +8800,9 @@ PASS12
             (yyval.value).c = abc_getslot((yyval.value).c, f->slot);
         } else {
             if(!f) {
-                as3_softwarning("Access of undefined property '%s' in %s", (yyvsp[(3) - (3)].id), t->name);
+                if(!TYPE_IS_XMLLIST(t)) {
+                    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);
@@ -7617,7 +8831,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);
@@ -7629,11 +8843,11 @@ PASS12
 
 
   
-    case 300:
+    case 350:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3245 "parser.y"
+#line 3841 "parser.y"
     {
     PASS1
     /* Queue unresolved identifiers for checking against the parent
@@ -7643,137 +8857,29 @@ 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))) {
+
+    if(!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));
     }
    
-    /* 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
-
-    typedcode_t o;
-    o.t = 0;
-    o.c = 0;
     (yyval.node) = 0;
+    PASS2
 
-    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
-        o.c = abc_getlocal(o.c, v->index);
-        o.t = v->type;
-        (yyval.node) = mkcodenode(o);
-        break;
-    }
-    if((v = find_slot(state, (yyvsp[(1) - (1)].id)))) {
-        o.c = abc_getscopeobject(o.c, 1);
-        o.c = abc_getslot(o.c, v->index);
-        o.t = v->type;
-        (yyval.node) = mkcodenode(o);
-        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)))
-    {
-        // $1 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) {
-                (yyval.node) = mkconstnode(v->value);
-                break;
-            }
-        }
-       
-        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, (yyvsp[(1) - (1)].id)};
-                o.c = abc_findpropstrict2(o.c, &m);
-                o.c = abc_getproperty2(o.c, &m);
-                (yyval.node) = mkcodenode(o);
-                break;
-            } else if(f->slot>0) {
-                o.c = abc_getlocal_0(o.c);
-                o.c = abc_getslot(o.c, f->slot);
-                (yyval.node) = mkcodenode(o);
-                break;
-            } else {
-                namespace_t ns = {f->access, f->package};
-                multiname_t m = {QNAME, &ns, 0, (yyvsp[(1) - (1)].id)};
-                o.c = abc_getlocal_0(o.c);
-                o.c = abc_getproperty2(o.c, &m);
-                (yyval.node) = mkcodenode(o);
-                break;
-            }
-        }
-    } 
-    
-    /* look at actual classes, in the current package and imported */
-    if((a = find_class((yyvsp[(1) - (1)].id)))) {
-        o = push_class(a);
-        (yyval.node) = mkcodenode(o);
-        break;
-    }
-
-    /* look through package prefixes */
-    if(dict_contains(state->import_toplevel_packages, (yyvsp[(1) - (1)].id)) || 
-       registry_ispackage((yyvsp[(1) - (1)].id))) {
-        o.c = abc___pushpackage__(o.c, (yyvsp[(1) - (1)].id));
-        o.t = 0;
-        (yyval.node) = mkcodenode(o); //?
-        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)};
-
-        o.t = 0;
-        o.c = abc_findpropstrict2(o.c, &m);
-        o.c = abc_getproperty2(o.c, &m);
-        (yyval.node) = mkcodenode(o);
-        break;
-    }
+    (yyval.node) = resolve_identifier((yyvsp[(1) - (1)].id));
 }
     }
     break;
 
 
   
-    case 301:
+    case 351:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3378 "parser.y"
+#line 3875 "parser.y"
     {
     PASS12
     NEW(namespace_decl_t,n);
@@ -7786,11 +8892,11 @@ PASS12
 
 
   
-    case 302:
+    case 352:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3385 "parser.y"
+#line 3882 "parser.y"
     {
     PASS12
     NEW(namespace_decl_t,n);
@@ -7803,11 +8909,11 @@ PASS12
 
 
   
-    case 303:
+    case 353:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3392 "parser.y"
+#line 3889 "parser.y"
     {
     PASS12
     NEW(namespace_decl_t,n);
@@ -7820,14 +8926,14 @@ PASS12
 
 
   
-    case 304:
+    case 354:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3399 "parser.y"
+#line 3896 "parser.y"
     {
     PASS12
-    trie_put(active_namespaces, (yyvsp[(2) - (2)].namespace_decl)->name, (void*)(yyvsp[(2) - (2)].namespace_decl)->url);
+    dict_put(state->namespaces, (unsigned char*)(yyvsp[(2) - (2)].namespace_decl)->name, (void*)(yyvsp[(2) - (2)].namespace_decl)->url);
 
     namespace_t access = modifiers2access(&(yyvsp[(1) - (2)].flags));
     varinfo_t* var = varinfo_register_global(access.access, state->package, (yyvsp[(2) - (2)].namespace_decl)->name);
@@ -7836,6 +8942,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;
 }
@@ -7844,14 +8957,28 @@ PASS12
 
 
   
-    case 305:
+    case 355:
     if(as3_pass==2) {
 
 /* Line 1464 of skeleton.m4  */
-#line 3423 "parser.y"
+#line 3919 "parser.y"
+    {
+    (yyval.code) = 0;
+    (yyval.code) = code_append((yyval.code), node_read((yyvsp[(4) - (4)].node)).c);
+    (yyval.code) = abc_dxnslate((yyval.code));
+}
+    }
+    break;
+
+
+  
+    case 356:
+    if(as3_pass==2) {
+
+/* Line 1464 of skeleton.m4  */
+#line 3925 "parser.y"
     {
     PASS12
-    const char*url = (yyvsp[(3) - (3)].classinfo)->name;
 
     varinfo_t*s = (varinfo_t*)(yyvsp[(3) - (3)].classinfo);
     if(s->kind == INFOTYPE_UNRESOLVED) {
@@ -7864,9 +8991,9 @@ PASS12
         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);
-    url = s->value->ns->name;
 
-    trie_put(active_namespaces, (yyvsp[(3) - (3)].classinfo)->name, (void*)url);
+    const char*url = s->value->ns->name;
+    dict_put(state->namespaces, (unsigned char*)(yyvsp[(3) - (3)].classinfo)->name, (void*)url);
     add_active_url(url);
     (yyval.code)=0;
 }
@@ -7877,7 +9004,7 @@ PASS12
 
 
 /* Line 1464 of skeleton.m4  */
-#line 7881 "parser.tab.c"
+#line 9008 "parser.tab.c"
       default: break;
     }
   YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);