From 3f316cda633ce92b68c79acc00d4c83e89ebeb1f Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Thu, 24 Apr 2014 21:02:27 +0300 Subject: [PATCH] fixed root --- lib/vm/parser.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/vm/parser.rb b/lib/vm/parser.rb index 4ec12f35..b9d43b63 100644 --- a/lib/vm/parser.rb +++ b/lib/vm/parser.rb @@ -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