X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2Fparser.y;h=3e3abd3692b205e2658be627b4d240806047df4d;hb=d2bcd477230b4ac8d7e69fc253d94250b13eb37a;hp=06b5a4fe2ba56aca9e00a8248aba22716fe79e16;hpb=c1b77b2459e0b8687428e6f4932797b869caace1;p=swftools.git diff --git a/lib/as3/parser.y b/lib/as3/parser.y index 06b5a4f..3e3abd3 100644 --- a/lib/as3/parser.y +++ b/lib/as3/parser.y @@ -243,7 +243,7 @@ extern int a3_lex(); %left new2 %left '[' ']' "new" '{' "{ (dictionary)" '.' ".." "::" '@' -%nonassoc T_IDENTIFIER +%left T_IDENTIFIER %left above_identifier %left below_else %nonassoc "else" @@ -1899,6 +1899,8 @@ FOR_INIT : VARIABLE_DECLARATION FOR_INIT : VOIDEXPRESSION // TODO: why doesn't an %prec above_identifier resolve the r-r conflict here? +// (I don't see any easy way to revolve this conflict otherwise, as we +// can't touch VAR_READ without upsetting the precedence about "return") FOR_IN_INIT : "var" T_IDENTIFIER MAYBETYPE { $$=$2;new_variable($2,$3,1); }