]> git.saurik.com Git - cycript.git/commitdiff
Remove UnaryAssigneeExpression: merge to parent.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 6 Jun 2012 21:08:04 +0000 (14:08 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 6 Jun 2012 21:12:21 +0000 (14:12 -0700)
Cycript.yy.in

index f65cfd518d205c1f8898eda6996ab97b39d4cdba..01a1e7ffa22df9753f67983f32c3972a049960c2 100644 (file)
@@ -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_