roots operator expressions

This commit is contained in:
Torsten Ruger
2014-06-26 13:33:42 +03:00
parent 95dcee4a63
commit 8c1b82fe4c
2 changed files with 78 additions and 2 deletions

View File

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