fixed root

This commit is contained in:
Torsten Ruger 2014-04-24 21:02:27 +03:00
parent f39eef38a1
commit 3f316cda63

View File

@ -45,7 +45,6 @@ module Vm
((name.as(:param) >> (comma >> name.as(:param)).repeat(0)).maybe).as(:params) >>
rparen
}
root :args
# rule(:root) { func.repeat(0) >> expression }
rule(:root){ func.repeat(0) >> expression | expression | args }
end
end