lib/antelope/generator/templates/ruby.ant in antelope-0.3.0 vs lib/antelope/generator/templates/ruby.ant in antelope-0.3.2
- old
+ new
@@ -72,10 +72,10 @@
last = stack.pop(production[1]).first.first
stack.pop
when :reduce
production = PRODUCTIONS[action.last]
removing = stack.pop(production[1])
- value = instance_exec(*removing.map(&:first), &production[2])
+ value = instance_exec(removing.map(&:first), &production[2])
goto = ACTION_TABLE[stack.last.last][production[0]]
stack.push([value, goto.last])
when :state
stack.push([input.shift, action.last])
else