Simplify handling of ubiquitous tokens during reduce

This commit is contained in:
Max Brunsfeld 2014-08-08 08:46:01 -07:00
parent 41c4e7cd8f
commit 7ba3953f7e
7 changed files with 14 additions and 31 deletions

View file

@ -39,7 +39,7 @@ var x = {
(statement_block (var_declaration (identifier) (identifier)))))))
==========================================
parses comments
parses comments. TODO - leading comments
==========================================
// this is the beginning of the script.
// here we go.
@ -55,16 +55,14 @@ var thing = {
};
---
(program
(comment)
(comment)
(program (var_declaration (identifier) (object
(var_declaration (identifier) (object
(comment)
(comment)
(identifier) (function_expression
(formal_parameters (identifier) (comment))
(statement_block
(comment)
(expression_statement (function_call (identifier)))))))))
(expression_statement (function_call (identifier))))))))
==========================================
parses comments within expressions