projects
/
cycript.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f8fca8
)
Add an initial (inefficient) version of ?: syntax.
author
Jay Freeman (saurik)
<saurik@saurik.com>
Mon, 20 Jan 2014 16:18:29 +0000
(08:18 -0800)
committer
Jay Freeman (saurik)
<saurik@saurik.com>
Mon, 20 Jan 2014 16:18:29 +0000
(08:18 -0800)
Cycript.yy.in
patch
|
blob
|
blame
|
history
diff --git
a/Cycript.yy.in
b/Cycript.yy.in
index a11643f13e89573e01cd27a71c9538af67afaaf4..57b1ac60d4d49a1976769f4e469b79682d2e7d64 100644
(file)
--- 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 {{{ */