Add prefix math operators +, - to javascript grammar
This commit is contained in:
parent
b97e4f1de8
commit
1bdd87535a
3 changed files with 10586 additions and 9600 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue