From: Jay Freeman (saurik) <saurik@saurik.com> Date: Wed, 6 Jun 2012 21:08:04 +0000 (-0700) Subject: Remove UnaryAssigneeExpression: merge to parent. X-Git-Tag: v0.9.456~20 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/9465b86dfa3968d9df85c80600b3f7e5476a4d39 Remove UnaryAssigneeExpression: merge to parent. --- 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 <statement_> WhileStatement %type <statement_> WithStatement -@begin C -%type <expression_> UnaryAssigneeExpression -@end - @begin ObjectiveC %type <statement_> CategoryStatement %type <expression_> 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_