Add prefix math operators +, - to javascript grammar

This commit is contained in:
Max Brunsfeld 2014-05-02 07:42:13 -07:00
parent b97e4f1de8
commit 1bdd87535a
3 changed files with 10586 additions and 9600 deletions

View file

@ -11,14 +11,14 @@ print(isDone() ? stuff : otherStuff);
==========================================
parses mathematical operators
==========================================
a + b * c - d / e
-a + b * c - d / +e
---
(program (expression_statement
(math_op
(identifier)
(math_op (identifier))
(math_op
(math_op (identifier) (identifier))
(math_op (identifier) (identifier))))))
(math_op (identifier) (math_op (identifier)))))))
==========================================
parses boolean operators