]> git.saurik.com Git - cycript.git/commitdiff
Cycript's C++11 lambda semantics require the &.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 7 Jan 2014 04:06:05 +0000 (20:06 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 7 Jan 2014 04:09:06 +0000 (20:09 -0800)
Cycript.yy.in

index 0425b2150ce6ed8125b784f63cdd3ef65e003149..3f3fccea8e11d97b10b8f7a06fd5ec6a6f4f765a 100644 (file)
@@ -1628,7 +1628,7 @@ TypedParameterListOpt
     ;
 
 PrimaryExpression
-    : "[" LexPushInOff LexSetRegExp "=" "]" LexPopIn "(" LexPushInOff TypedParameterListOpt ")" LexPopIn "->" ModifiedType BRACE LexPushInOff FunctionBody "}" LexPopIn { $$ = CYNew CYLambda($13, $9, $16); }
+    : "[" LexPushInOff LexSetRegExp "&" LexSetRegExp "]" LexPopIn "(" LexPushInOff TypedParameterListOpt ")" LexPopIn "->" ModifiedType BRACE LexPushInOff FunctionBody "}" LexPopIn { $$ = CYNew CYLambda($14, $10, $17); }
     ;
 /* }}} */
 /* Cycript (C): Type Definitions {{{ */