change method and frame around in calling, easier to understand static first

This commit is contained in:
Torsten Ruger
2014-07-24 14:56:27 +03:00
parent e408b0e4b9
commit e427bcef43
9 changed files with 29 additions and 29 deletions

View File

@ -13,7 +13,7 @@ module VirtualHelper
parts = Parser::Transform.new.apply(syntax)
machine = Virtual::Machine.new
main = Virtual::MethodDefinition.main
expressions = parts.compile(machine.frame , main )
expressions = parts.compile( main, machine.frame )
should = YAML.load(@output.gsub("RETURN_MARKER" , "\n"))
assert_equal should , expressions , expressions.to_yaml.gsub("\n" , "RETURN_MARKER") + "\n" + expressions.to_yaml
end