Add returns, deletes and bool operators to js grammar
This commit is contained in:
parent
61692c8bb1
commit
801f4bd0a8
4 changed files with 16460 additions and 10321 deletions
|
|
@ -19,3 +19,14 @@ a + b * c - d / e
|
|||
(math_op
|
||||
(math_op (identifier) (identifier))
|
||||
(math_op (identifier) (identifier))))))
|
||||
|
||||
==========================================
|
||||
parses boolean operators
|
||||
=========================================
|
||||
!a || !(b && c)
|
||||
---
|
||||
(program (expression_statement
|
||||
(bool_op
|
||||
(bool_op (identifier))
|
||||
(bool_op
|
||||
(expression (bool_op (identifier) (identifier)))))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue