From: Jay Freeman (saurik) Date: Mon, 20 Jan 2014 16:18:29 +0000 (-0800) Subject: Add an initial (inefficient) version of ?: syntax. X-Git-Tag: v0.9.500~20 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/c2faf0d3294cf48cf5032885f15befe532901d47?hp=4f8fca8fa217661b5f75b1bb4c610c345d87fe98 Add an initial (inefficient) version of ?: syntax. --- diff --git a/Cycript.yy.in b/Cycript.yy.in index a11643f..57b1ac6 100644 --- a/Cycript.yy.in +++ b/Cycript.yy.in @@ -1019,6 +1019,7 @@ LogicalORExpression ConditionalExpression : LogicalORExpression { $$ = $1; } | LogicalORExpression "?" LexPushInOff AssignmentExpression ":" LexPopIn AssignmentExpression { $$ = CYNew CYCondition($1, $4, $7); } + | LogicalORExpression "?" LexPushInOff LexSetRegExp ":" LexPopIn AssignmentExpression { $$ = CYNew CYCondition($1, $1, $7); } ; /* }}} */ /* 11.13 Assignment Operators {{{ */