restrict the root, but expand for testing

This commit is contained in:
Torsten Ruger
2015-10-09 12:39:31 +03:00
parent 486e24514b
commit 77cb8ce90a
2 changed files with 8 additions and 2 deletions

View File

@ -31,8 +31,7 @@ module Parser
include Operators
include ModuleDef
rule(:root_body) {( class_definition | function_definition |
expression | operator_expression | call_site )}
rule(:root_body) {( class_definition | function_definition )}
rule(:root) { root_body.repeat.as(:expression_list) }
end
end