added tertiary expression
[IRC.git] / Robust / src / Parse / java14.cup
index ad2e6a92c197b52e059eaa882a41698b3a77a3c8..d17ed6369f5283f948eb76ba0f9f93215e70da10 100644 (file)
@@ -120,12 +120,12 @@ non terminal ParseNode array_type;
 non terminal ParseNode name, simple_name, qualified_name;
 // 19.6) Packages
 non terminal ParseNode compilation_unit;
-//non terminal ParseNode package_declaration_opt, package_declaration;
-//non terminal ParseNode import_declarations_opt, import_declarations;
+non terminal ParseNode package_declaration_opt, package_declaration;
+non terminal ParseNode import_declarations_opt, import_declarations;
 non terminal ParseNode type_declarations_opt, type_declarations;
-//non terminal ParseNode import_declaration;
-//non terminal ParseNode single_type_import_declaration;
-//non terminal ParseNode type_import_on_demand_declaration;
+non terminal ParseNode import_declaration;
+non terminal ParseNode single_type_import_declaration;
+non terminal ParseNode type_import_on_demand_declaration;
 non terminal ParseNode type_declaration;
 // 19.7) Productions used only in the LALR(1) grammar
 non terminal ParseNode modifiers_opt, modifiers, modifier;
@@ -152,7 +152,7 @@ non terminal ParseNode method_body;
 // 19.8.5) Constructor Declarations
 non terminal ParseNode constructor_declaration, constructor_declarator;
 non terminal ParseNode constructor_body;
-//non terminal ParseNode explicit_constructor_invocation;
+non terminal ParseNode explicit_constructor_invocation;
 // 19.9.1) Interface Declarations
 //non terminal ParseNode interface_declaration;
 //non terminal ParseNode extends_interfaces_opt, extends_interfaces;
@@ -221,6 +221,9 @@ non terminal ParseNode expression_opt, expression;
 //non terminal ParseNode constant_expression;
 //failure aware computation keywords
 terminal FLAG;
+terminal OPTIONAL;
+terminal ISAVAILABLE;
+terminal EXTERNAL;
 terminal TAG;
 terminal TASK;
 terminal TASKEXIT;
@@ -243,6 +246,28 @@ non terminal ParseNode cons_checks_opt;
 non terminal ParseNode cons_checks;
 non terminal ParseNode cons_check;
 
+non terminal ParseNode tag_variable_declaration_statement;
+non terminal ParseNode tag_expression_list;
+non terminal ParseNode tag_expression;
+non terminal ParseNode tag_list;
+non terminal ParseNode tag_list_opt;
+non terminal ParseNode tag_change;
+
+//distributed transaction keywords
+terminal ATOMIC;
+terminal GLOBAL;
+terminal GETOFFSET;
+non terminal ParseNode atomic_statement;
+non terminal ParseNode getoffset_expression;
+
+//disjointness for Java
+terminal DISJOINT;
+
+//coarse-grain parallelization
+terminal SESE;
+non terminal ParseNode sese_statement;
+
+
 start with goal;
 
 
@@ -279,9 +304,71 @@ task_parameter ::=
                pn.addChild(name);
                pn.addChild("flag").addChild(exp);
                RESULT=pn;
+       :} 
+        | type:type variable_declarator_id:name LBRACE flag_expression:exp RBRACE LBRACE tag_expression_list:texp RBRACE {:
+               ParseNode pn=new ParseNode("task_parameter");
+               pn.addChild(type);
+               pn.addChild(name);
+               pn.addChild("flag").addChild(exp);
+               pn.addChild("tag").addChild(texp);
+               RESULT=pn;
+       :}
+        | type:type variable_declarator_id:name LBRACE RBRACE LBRACE tag_expression_list:texp RBRACE {:
+               ParseNode pn=new ParseNode("task_parameter");
+               pn.addChild(type);
+               pn.addChild(name);
+               pn.addChild("tag").addChild(texp);
+               RESULT=pn;
+       :}
+       | OPTIONAL task_parameter:fp {:
+               ParseNode pn=new ParseNode("task_parameter");
+               pn.addChild("optional").addChild(fp);
+               RESULT=pn;
+       :}              
+       
+       ;
+
+tag_expression_list ::= tag_expression:te {: 
+       ParseNode pn=new ParseNode("tag_expression_list");
+       pn.addChild(te);
+       RESULT=pn;
+       :}
+       | tag_expression_list:tel COMMA tag_expression:te {: 
+       tel.addChild(te);
+       RESULT=tel;
+       :}
+       ;
+
+tag_expression ::= IDENTIFIER:type IDENTIFIER:id {: 
+               ParseNode pn=new ParseNode("tag_expression");
+               pn.addChild("type").addChild(type);
+               pn.addChild("single").addChild(id);
+               RESULT=pn;
        :}
        ;
 
+tag_list_opt ::= LBRACE tag_list:fl RBRACE {:RESULT=fl;:}
+       | LBRACE RBRACE {: RESULT = new ParseNode("empty"); :}  
+       | {: RESULT = new ParseNode("empty"); :}
+       ;
+
+tag_list ::= tag_change:fc {: 
+               ParseNode pn=new ParseNode("tag_list");
+               pn.addChild(fc);
+               RESULT=pn;
+       :}
+       | tag_list:fl COMMA tag_change:fc {: 
+               fl.addChild(fc);
+               RESULT=fl;
+       :};
+
+tag_change ::= IDENTIFIER:id {: 
+               RESULT=new ParseNode("name").addChild(id).getRoot();
+       :}
+       | NOT IDENTIFIER:id {: 
+               RESULT=new ParseNode("not").addChild("name").addChild(id).getRoot();
+       :};
+
 flag_expression ::= 
        flag_andexpression:exp {: 
                RESULT=exp;
@@ -359,15 +446,24 @@ flag_effects ::= flag_effect:fe {:
                RESULT=fes;
        :};
 
-flag_effect ::= IDENTIFIER:id LBRACE flag_list:fl RBRACE {: 
+flag_effect ::= IDENTIFIER:id LBRACE flag_list:fl RBRACE tag_list_opt:tlo {: 
                ParseNode pn=new ParseNode("flag_effect");
                pn.addChild("name").addChild(id);
                pn.addChild(fl);
+               pn.addChild(tlo);
+               RESULT=pn;
+       :}
+       | IDENTIFIER:id LBRACE RBRACE LBRACE tag_list:tl RBRACE {: 
+               ParseNode pn=new ParseNode("flag_effect");
+               pn.addChild("name").addChild(id);
+               pn.addChild(tl);
                RESULT=pn;
        :};
 
 flag_list_opt ::= LBRACE flag_list:fl RBRACE {:RESULT=fl;:}
-       | {: RESULT = new ParseNode("empty"); :}
+       | LBRACE RBRACE {: RESULT = new ParseNode("empty"); :}  
+       | 
+       {: RESULT = new ParseNode("empty"); :}
        ;
 
 flag_list ::= flag_change:fc {: 
@@ -412,7 +508,7 @@ literal ::= INTEGER_LITERAL:integer_lit
        |       BOOLEAN_LITERAL:boolean_lit
        {:
                ParseNode pn=new ParseNode("literal");
-               pn.addChild("boolean").setLiteral(boolean_lit);
+               pn.addChild("boole\1aan").setLiteral(boolean_lit);
                RESULT=pn;
        :}
        |       CHARACTER_LITERAL:char_lit
@@ -500,26 +596,44 @@ qualified_name ::= name:name DOT IDENTIFIER:id {:
 
 // 19.6) Packages
 compilation_unit ::=
-//              package_declaration_opt
-//              import_declarations_opt
+                package_declaration_opt:pdo
+                import_declarations_opt:ido
                type_declarations_opt:tdo {: 
                ParseNode pn=new ParseNode("compilation_unit");
                pn.addChild(tdo);
+               pn.addChild("packages").addChild(pdo);
+               pn.addChild("imports").addChild(ido);
                RESULT=pn;
                :}
                ;
-//package_declaration_opt ::= package_declaration | ;
-//import_declarations_opt ::= import_declarations | ;
+package_declaration_opt ::= package_declaration:pdo {:
+               RESULT=pdo;
+       :} |
+       {: RESULT=new ParseNode("empty"); :}
+;
+
+import_declarations_opt ::= import_declarations:ido {: 
+               RESULT=ido;
+       :} | 
+       {: RESULT=new ParseNode("empty"); :}
+;
 type_declarations_opt   ::= type_declarations:tds {:
                RESULT=tds;
                :}   | 
        {: RESULT=new ParseNode("empty"); :}
        ;
 
-//import_declarations ::=
-//               import_declaration
-//       |       import_declarations import_declaration
-//       ;
+import_declarations ::=
+               import_declaration:id {: 
+               ParseNode pn=new ParseNode("import_decls_list");
+               pn.addChild(id);
+               RESULT=pn;
+       :}
+       |       import_declarations:ids import_declaration:id {: 
+               ids.addChild(id);
+               RESULT=ids;
+       :}
+       ;
 
 type_declarations ::= 
                type_declaration:td {:
@@ -533,19 +647,31 @@ type_declarations ::=
                :}
        ;
 
-//package_declaration ::=
-//               PACKAGE name SEMICOLON
-//       ;
-//import_declaration ::=
-//               single_type_import_declaration
-//       |       type_import_on_demand_declaration
-//       ;
-//single_type_import_declaration ::=
-//               IMPORT name SEMICOLON
-//       ;
-//type_import_on_demand_declaration ::=
-//               IMPORT name DOT MULT SEMICOLON
-//       ;
+package_declaration ::=
+               PACKAGE name:name SEMICOLON {: 
+       ParseNode pn=new ParseNode("package");
+       pn.addChild(name);
+       RESULT=pn;
+       :}
+       ;
+import_declaration ::=
+               single_type_import_declaration:sid {: RESULT=sid; :}
+       |       type_import_on_demand_declaration:iod {: RESULT=iod; :}
+       ;
+single_type_import_declaration ::=
+               IMPORT name:name SEMICOLON {: 
+       ParseNode pn=new ParseNode("import_single");
+       pn.addChild(name);
+       RESULT=pn;
+:}
+       ;
+type_import_on_demand_declaration ::=
+               IMPORT name:name DOT MULT SEMICOLON {:
+       ParseNode pn=new ParseNode("import_ondemand");
+       pn.addChild(name);
+       RESULT=pn;
+       :}       
+       ;
 
 type_declaration ::=
                class_declaration:cd 
@@ -584,8 +710,9 @@ modifier ::=
        STATIC {: RESULT=new ParseNode("static"); :} |
 //     ABSTRACT |
        FINAL {: RESULT=new ParseNode("final"); :}|
-       NATIVE {: RESULT=new ParseNode("native"); :}
-//     SYNCHRONIZED | 
+       NATIVE {: RESULT=new ParseNode("native"); :} |
+       SYNCHRONIZED {: RESULT=new ParseNode("synchronized"); :} |
+       ATOMIC {: RESULT=new ParseNode("atomic"); :}
 //     TRANSIENT | 
 //     VOLATILE |
 //     STRICTFP // note that semantic analysis must check that the
@@ -683,6 +810,12 @@ flag_declaration ::=
                ParseNode pn=new ParseNode("flag_declaration");
                pn.addChild("name").addChild(id);
                RESULT=pn;
+       :}      |
+               EXTERNAL FLAG IDENTIFIER:id SEMICOLON {: 
+               ParseNode pn=new ParseNode("flag_declaration");
+               pn.addChild("name").addChild(id);
+               pn.addChild("external");
+               RESULT=pn;
        :}
        ;
 
@@ -694,6 +827,14 @@ field_declaration ::=
                pn.addChild("type").addChild(type);
                pn.addChild("variables").addChild(var);
                RESULT=pn;
+       :} |
+               modifiers_opt:mo GLOBAL type:type variable_declarators:var SEMICOLON {: 
+               ParseNode pn=new ParseNode("field_declaration");
+               pn.addChild("modifier").addChild(mo);
+               pn.addChild("type").addChild(type);
+               pn.addChild("variables").addChild(var);
+               pn.addChild("global");
+               RESULT=pn;
        :}
        ;
 
@@ -792,6 +933,12 @@ formal_parameter ::=
                pn.addChild(name);
                RESULT=pn;
        :}
+       |
+               TAG variable_declarator_id:name {:
+               ParseNode pn=new ParseNode("tag_parameter");
+               pn.addChild(name);
+               RESULT=pn;
+       :}
 //     |       FINAL type variable_declarator_id
        ;
 //throws_opt ::=       
@@ -824,6 +971,16 @@ constructor_declaration ::=
                pn.addChild(cd);
                pn.addChild("body").addChild(body);
                RESULT=pn;
+       :} |
+               modifiers_opt:mo GLOBAL constructor_declarator:cd
+//throws_opt 
+                       constructor_body:body   {:
+               ParseNode pn=new ParseNode("constructor_declaration");
+               pn.addChild("global");
+               pn.addChild("modifiers").addChild(mo);
+               pn.addChild(cd);
+               pn.addChild("body").addChild(body);
+               RESULT=pn;
        :}
        ;
 constructor_declarator ::=
@@ -835,8 +992,17 @@ constructor_declarator ::=
        :}
        ;
 constructor_body ::=
-//             LBRACE explicit_constructor_invocation:eci block_statements:bs RBRACE |
-//             LBRACE explicit_constructor_invocation RBRACE |
+               LBRACE explicit_constructor_invocation:eci block_statements:bs RBRACE {: 
+                       ParseNode pn=new ParseNode("constructor_body");
+                       pn.addChild(eci);
+                       pn.addChild(bs);
+                       RESULT=pn;
+       :} |
+               LBRACE explicit_constructor_invocation:eci RBRACE {: 
+                       ParseNode pn=new ParseNode("constructor_body");
+                       pn.addChild(eci);
+                       RESULT=pn;
+       :} |
                LBRACE block_statements:block RBRACE {: 
                ParseNode pn=new ParseNode("constructor_body");
                pn.addChild(block);
@@ -844,12 +1010,17 @@ constructor_body ::=
        :}
        |       LBRACE RBRACE {: RESULT=new ParseNode("empty"); :}
        ;
-//explicit_constructor_invocation ::=
+explicit_constructor_invocation ::=
 //             THIS LPAREN argument_list_opt RPAREN SEMICOLON
-//     |       SUPER LPAREN argument_list_opt RPAREN SEMICOLON
+//     |       
+SUPER LPAREN argument_list_opt:alo RPAREN SEMICOLON {: 
+       ParseNode pn=new ParseNode("superinvoke");
+       pn.addChild(alo);
+       RESULT=pn;
+:}
 //     |       primary DOT THIS LPAREN argument_list_opt RPAREN SEMICOLON
 //     |       primary DOT SUPER LPAREN argument_list_opt RPAREN SEMICOLON
-//     ;
+       ;
 
 // 19.9) Interfaces
 
@@ -928,7 +1099,10 @@ block_statements ::=
        :}
        ;
 block_statement ::=
-               local_variable_declaration_statement:lvds {: 
+       tag_variable_declaration_statement:tvds {:
+               RESULT=tvds;
+       :}              
+       |       local_variable_declaration_statement:lvds {: 
                RESULT=lvds;
        :}
        |       statement:statement {: 
@@ -937,6 +1111,14 @@ block_statement ::=
 //     |       class_declaration
 //     |       interface_declaration
        ;
+tag_variable_declaration_statement ::=
+               TAG IDENTIFIER:id EQ NEW TAG LPAREN IDENTIFIER:type RPAREN SEMICOLON {: 
+               ParseNode pn=new ParseNode("tag_declaration");
+               pn.addChild("single").addChild(id);
+               pn.addChild("type").addChild(type);
+               RESULT=pn;
+       :}
+       ;
 local_variable_declaration_statement ::=
                local_variable_declaration:lvd SEMICOLON {: 
                RESULT=lvd;
@@ -977,6 +1159,8 @@ statement_without_trailing_substatement ::=
        |       continue_statement:st {: RESULT=st; :}
        |       return_statement:st {: RESULT=st; :}
        |       task_exitstatement:st {: RESULT=st; :}
+       |       atomic_statement:st {: RESULT=st; :}
+       |       sese_statement:st {: RESULT=st; :}
 //     |       synchronized_statement
 //     |       throw_statement
 //     |       try_statement
@@ -1154,6 +1338,24 @@ return_statement ::=
 //synchronized_statement ::=
 //             SYNCHRONIZED LPAREN expression RPAREN block
 //     ;
+atomic_statement ::=
+               ATOMIC block:blk {: 
+       RESULT=(new ParseNode("atomic")).addChild(blk).getRoot();
+       :}
+       ;
+sese_statement ::=
+
+//            SESE variable_declarator_id:id LBRACE statement:st RBRACE {: 
+
+              SESE block:blk {: 
+              ParseNode pn = new ParseNode("sese");
+
+//            pn.addChild("identifier").addChild(id);
+
+              pn.addChild("body").addChild(blk);
+              RESULT=pn;
+       :}
+       ;
 //try_statement ::=
 //             TRY block catches
 //     |       TRY block catches_opt finally
@@ -1192,6 +1394,11 @@ primary_no_new_array ::=
        |       field_access:exp {: RESULT=exp; :}
        |       method_invocation:exp {: RESULT=exp; :}
        |       array_access:exp {: RESULT=exp; :}
+       |       ISAVAILABLE LPAREN IDENTIFIER:id RPAREN {: 
+               ParseNode pn=new ParseNode("isavailable");
+               pn.addChild(id);
+               RESULT=pn;
+       :}
 //     |       primitive_type DOT CLASS
 //     |       VOID DOT CLASS
 //     |       array_type DOT CLASS
@@ -1205,7 +1412,41 @@ class_instance_creation_expression ::=
                pn.addChild(args);
                pn.addChild(feo);
                RESULT=pn;
+       :} 
+       //Global object
+       | GLOBAL NEW class_or_interface_type:type LPAREN argument_list_opt:args RPAREN flag_list_opt:feo {: 
+               ParseNode pn=new ParseNode("createobject");
+               pn.addChild(type);
+               pn.addChild(args);
+               pn.addChild(feo);
+               pn.addChild("global");
+               RESULT=pn;
+       :}
+       // Objects we want to track in disjointness analysis
+       | DISJOINT IDENTIFIER:id NEW class_or_interface_type:type LPAREN argument_list_opt:args RPAREN flag_list_opt:feo {: 
+               ParseNode pn=new ParseNode("createobject");
+               pn.addChild(type);
+               pn.addChild(args);
+               pn.addChild(feo);
+               pn.addChild("disjoint").addChild(id);
+               RESULT=pn;
+       :}
+       | NEW class_or_interface_type:type LPAREN argument_list_opt:args RPAREN LBRACE RBRACE LBRACE tag_list:tl RBRACE {: 
+               ParseNode pn=new ParseNode("createobject");
+               pn.addChild(type);
+               pn.addChild(args);
+               pn.addChild(tl);
+               RESULT=pn;
        :}
+       | NEW class_or_interface_type:type LPAREN argument_list_opt:args RPAREN LBRACE flag_list:fl RBRACE LBRACE tag_list:tl RBRACE {: 
+               ParseNode pn=new ParseNode("createobject");
+               pn.addChild(type);
+               pn.addChild(args);
+               pn.addChild(fl);
+               pn.addChild(tl);
+               RESULT=pn;
+       :}
+
 //     |       NEW class_or_interface_type LPAREN argument_list_opt RPAREN class_body
 //     |       primary DOT NEW IDENTIFIER
 //                     LPAREN argument_list_opt RPAREN {: 
@@ -1220,7 +1461,7 @@ class_instance_creation_expression ::=
        ;
 cons_argument_list_opt ::=
        {: RESULT=new ParseNode("empty"); :}
-       |       argument_list:args {: RESULT=args; :}
+       |       cons_argument_list:args {: RESULT=args; :}
        ;
 
 cons_argument_list ::=
@@ -1271,6 +1512,38 @@ array_creation_uninit ::=
                pn.addChild("dims_opt").setLiteral(dims);
                RESULT=pn;
        :}
+       |       GLOBAL NEW primitive_type:type dim_exprs:dimexpr dims_opt:dims {: 
+               ParseNode pn=new ParseNode("createarray");
+               pn.addChild(type);
+               pn.addChild(dimexpr);
+               pn.addChild("dims_opt").setLiteral(dims);
+               pn.addChild("global");
+               RESULT=pn;
+               :}
+       |       DISJOINT IDENTIFIER:id NEW primitive_type:type dim_exprs:dimexpr dims_opt:dims {: 
+               ParseNode pn=new ParseNode("createarray");
+               pn.addChild(type);
+               pn.addChild(dimexpr);
+               pn.addChild("dims_opt").setLiteral(dims);
+               pn.addChild("disjoint").addChild(id);
+               RESULT=pn;
+               :}
+       |       GLOBAL NEW class_or_interface_type:type dim_exprs:dimexpr dims_opt:dims {: 
+               ParseNode pn=new ParseNode("createarray");
+               pn.addChild(type);
+               pn.addChild(dimexpr);
+               pn.addChild("dims_opt").setLiteral(dims);
+               pn.addChild("global");
+               RESULT=pn;
+               :}
+       |       DISJOINT IDENTIFIER:id NEW class_or_interface_type:type dim_exprs:dimexpr dims_opt:dims {: 
+               ParseNode pn=new ParseNode("createarray");
+               pn.addChild(type);
+               pn.addChild(dimexpr);
+               pn.addChild("dims_opt").setLiteral(dims);
+               pn.addChild("disjoint").addChild(id);           
+               RESULT=pn;
+               :}
        ;
 //array_creation_init ::=
 //             NEW primitive_type dims array_initializer
@@ -1319,7 +1592,15 @@ method_invocation ::=
                pn.addChild(args);
                RESULT=pn;
        :}
-//     |       SUPER DOT IDENTIFIER LPAREN argument_list_opt RPAREN
+       |       SUPER DOT IDENTIFIER:id LPAREN argument_list_opt:args RPAREN {: 
+               ParseNode name=new ParseNode("name");
+               name.addChild("base").addChild("name").addChild("identifier").addChild("super");
+               name.addChild("identifier").addChild(id);
+               ParseNode pn=new ParseNode("methodinvoke1");
+               pn.addChild(name);
+               pn.addChild(args);
+               RESULT=pn;
+       :}
 //     |       name DOT SUPER DOT IDENTIFIER LPAREN argument_list_opt RPAREN
        ;
 array_access ::=
@@ -1342,6 +1623,7 @@ array_access ::=
 //             RESULT=pn;
 //     :}
        ;
+
 postfix_expression ::=
                primary:exp {: 
        RESULT=exp; :}
@@ -1378,7 +1660,8 @@ predecrement_expression ::=
 unary_expression_not_plus_minus ::=
                postfix_expression:exp {: 
                RESULT=exp; :}
-//     |       COMP unary_expression
+       |       COMP unary_expression:exp
+               {: RESULT=(new ParseNode("comp")).addChild(exp).getRoot(); :}
        |       NOT unary_expression:exp 
                {: RESULT=(new ParseNode("not")).addChild(exp).getRoot(); :}
        |       cast_expression:exp {: RESULT=exp; :}
@@ -1454,7 +1737,12 @@ shift_expression ::=
                pn.addChild(exp2);
                RESULT=pn;
        :}
-//     |       shift_expression URSHIFT additive_expression
+       |       shift_expression:exp1 URSHIFT additive_expression:exp2 {:
+               ParseNode pn=new ParseNode("urightshift");
+               pn.addChild(exp1);      
+               pn.addChild(exp2);      
+               RESULT=pn;
+       :}
        ;
 relational_expression ::=
                shift_expression:exp {: 
@@ -1556,14 +1844,31 @@ conditional_or_expression ::=
 conditional_expression ::=
                conditional_or_expression:condor {: 
                        RESULT=condor; :}
-//     |       conditional_or_expression QUESTION expression 
-//                     COLON conditional_expression
-       ;
+       |       conditional_or_expression:condor QUESTION expression:exptrue
+                       COLON conditional_expression:expfalse {: 
+                       ParseNode pn=new ParseNode("tert");
+                       pn.addChild("cond").addChild(condor);
+                       pn.addChild("trueexpr").addChild(exptrue);
+                       pn.addChild("falseexpr").addChild(expfalse);
+                       RESULT=pn;
+                       :}
+       ;
+getoffset_expression ::=
+        GETOFFSET LBRACE class_or_interface_type:type COMMA IDENTIFIER:id RBRACE {:
+        ParseNode pn = new ParseNode("getoffset");
+        pn.addChild(type);
+        pn.addChild("field").addChild(id);
+        RESULT = pn;
+      :}
+   ;
 assignment_expression ::=
                conditional_expression:expr {: 
                        RESULT=expr; :} |
                assignment:assign {: 
-                       RESULT=assign; :}
+                       RESULT=assign; :}             |
+        getoffset_expression:expr {:
+            RESULT=expr; :}
        ;
 // semantic check necessary here to ensure a valid left-hand side.
 // allowing a parenthesized variable here on the lhs was introduced in
@@ -1586,7 +1891,7 @@ assignment_operator ::=
        |       MINUSEQ {: RESULT=new ParseNode("minuseq"); :}
        |       LSHIFTEQ {: RESULT=new ParseNode("lshifteq"); :}
        |       RSHIFTEQ {: RESULT=new ParseNode("rshifteq"); :}
-//     |       URSHIFTEQ {: RESULT=new ParseNode("urshifteq"); :}
+       |       URSHIFTEQ {: RESULT=new ParseNode("urshifteq"); :}
        |       ANDEQ {: RESULT=new ParseNode("andeq"); :}
        |       XOREQ {: RESULT=new ParseNode("xoreq"); :}
        |       OREQ {: RESULT=new ParseNode("oreq"); :}