Add returns, deletes and bool operators to js grammar

This commit is contained in:
Max Brunsfeld 2014-04-25 22:08:11 -07:00
parent 61692c8bb1
commit 801f4bd0a8
4 changed files with 16460 additions and 10321 deletions

View file

@ -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)))))))