From 9465b86dfa3968d9df85c80600b3f7e5476a4d39 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 6 Jun 2012 14:08:04 -0700 Subject: [PATCH] Remove UnaryAssigneeExpression: merge to parent. --- Cycript.yy.in | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/Cycript.yy.in b/Cycript.yy.in index f65cfd5..01a1e7f 100644 --- a/Cycript.yy.in +++ b/Cycript.yy.in @@ -440,10 +440,6 @@ int cylex(YYSTYPE *, cy::location *, void *); %type WhileStatement %type WithStatement -@begin C -%type UnaryAssigneeExpression -@end - @begin ObjectiveC %type CategoryStatement %type ClassExpression @@ -935,12 +931,6 @@ AssignmentExpression_ | "|=" AssignmentExpression { $$ = CYNew CYBitwiseOrAssign(NULL, $2); } ; -@begin C -LeftHandSideExpression - : LexSetRegExp UnaryAssigneeExpression { $$ = $2; } - ; -@end - AssignmentExpression : ConditionalExpression { $$ = $1; } | LeftHandSideExpression AssignmentExpression_ { $2->SetLeft($1); $$ = $2; } @@ -1451,8 +1441,8 @@ StatementListItem @begin C /* Cycript (C): Pointer Indirection/Addressing {{{ */ -UnaryAssigneeExpression - : "*" UnaryExpression { $$ = CYNew CYIndirect($2); } +LeftHandSideExpression + : LexSetRegExp "*" UnaryExpression { $$ = CYNew CYIndirect($3); } ; UnaryExpression_ -- 2.49.0