From 5e4a66baf079ba3a2ed6446fc6813acd31e945ec Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 16 Dec 2015 07:21:08 -0800 Subject: [PATCH] Avoid token precedence as Ruby blocks requirement. --- Parser.ypp.in | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 -- 2.50.0