Add ternary expressions to javascript grammar

This commit is contained in:
Max Brunsfeld 2014-04-23 22:07:44 -07:00
parent 5313bb5257
commit 7be8d469b8
4 changed files with 6912 additions and 6019 deletions

View file

@ -0,0 +1,9 @@
==========================================
parses ternary expressions
==========================================
print(isDone() ? stuff : otherStuff);
---
(program (expression_statement
(function_call
(identifier)
(ternary (function_call (identifier)) (identifier) (identifier)))))