X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/9ea4298b4c70c7a5994bdd6726dd188cda01b880..5e4a66baf079ba3a2ed6446fc6813acd31e945ec:/Parser.ypp.in diff --git a/Parser.ypp.in b/Parser.ypp.in index 27bcb3c..46d911b 100644 --- a/Parser.ypp.in +++ b/Parser.ypp.in @@ -664,9 +664,6 @@ _finline int yylex(cy::parser::semantic_type *semantic, CYLocation *location, CY @end /* }}} */ /* Token Priorities {{{ */ -%nonassoc "" -%left "{" - %nonassoc "if" %nonassoc "else" /* }}} */ @@ -1136,7 +1133,7 @@ UnaryExpression_ ; UnaryExpression - : %prec "" PostfixExpression LexOpenBrace { $$ = $1; } + : PostfixExpression LexOpenBrace { $$ = $1; } | LexSetRegExp UnaryExpression_ { $$ = $2; } ; /* }}} */ @@ -1717,7 +1714,7 @@ ClassTail ; ClassHeritage - : "extends" LeftHandSideExpression { $$ = CYNew CYClassTail($2); } + : "extends" AccessExpression { $$ = CYNew CYClassTail($2); } ; ClassHeritageOpt