X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/3fe283c53edc2a98d0164d893a4a667245da8e78..13c7f2fb8fc0619c8da1b5c8a697f7894479b070:/Cycript.yy.in diff --git a/Cycript.yy.in b/Cycript.yy.in index c8a1862..3a31f1e 100644 --- a/Cycript.yy.in +++ b/Cycript.yy.in @@ -1054,11 +1054,11 @@ AssignmentExpression /* 11.14 Comma Operator {{{ */ Expression_ : "," Expression { $$ = $2; } - | { $$ = CYNew CYCompound(); } + | { $$ = NULL; } ; Expression - : AssignmentExpression Expression_ { $2->AddPrev($1); $$ = $2; } + : AssignmentExpression Expression_ { $$ = CYNew CYCompound($1, $2); } ; ExpressionOpt @@ -1449,7 +1449,7 @@ IntegerType IntegerTypeOpt : IntegerType { $$ = $1; } - | + | { $$ = CYNew CYTypeVariable("int"); } ; PrimitiveType @@ -1470,7 +1470,7 @@ EncodedType ; PrimaryExpression - : AtEncode "(" EncodedType ")" { $$ = $3; } + : "@encode" "(" EncodedType ")" { $$ = $3; } ; /* }}} */ /* Cycript (Objective-C): @class Declaration {{{ */ @@ -1481,7 +1481,7 @@ ClassSuperOpt ; ClassFieldListOpt - : Expression Identifier ";" ClassFieldListOpt { $$ = CYNew CYField($1, $2, $4); } + : TypedIdentifier ";" ClassFieldListOpt { $$ = CYNew CYField($1, $3); } | LexSetRegExp { $$ = NULL; } ;