Add throw statements to js grammar

This commit is contained in:
Max Brunsfeld 2014-07-03 08:20:43 -07:00
parent 67590eddc7
commit c85841364e
3 changed files with 34381 additions and 31413 deletions

View file

@ -90,6 +90,14 @@ try {
(finally_clause
(statement_block (expression_statement (function_call (identifier)))))))
===========================================
parses throw statements
===========================================
throw new Error("wtf");
---
(program
(throw_statement (constructor_call (function_call (identifier) (string)))))
===========================================
parses indented code after blocks
===========================================