adds explicit load_self instruction

This commit is contained in:
Torsten Ruger
2014-07-15 18:27:13 +03:00
parent 930740e1db
commit 4d725ea1ae
5 changed files with 40 additions and 13 deletions

View File

@ -12,7 +12,8 @@ module VirtualHelper
syntax = parser.parse_with_debug(@string_input)
parts = Parser::Transform.new.apply(syntax)
machine = Virtual::Machine.new
expressions = parts.compile(machine.frame , Virtual::Method.main )
main = Virtual::Method.main
expressions = parts.compile(machine.frame , main )
assert_equal @output , expressions
end