getting better, but somethings off

This commit is contained in:
Torsten Ruger
2014-05-05 09:35:40 +03:00
parent a61170942f
commit 7c0aa8ae7d
10 changed files with 138 additions and 51 deletions

View File

@ -22,13 +22,11 @@ class TestRunner < MiniTest::Test
tree = Parser::Transform.new.apply(syntax)
program = Vm::Program.new "Arm"
expression = tree.to_value
compiled = expression.compile( program.context )
# do some stuff with mains and what not ??
program.wrap_as_main compiled
puts program.to_yaml
value = tree.to_value
program.wrap_as_main value
compiled = program.compile( program.context )
program.verify
# puts program.to_yaml
puts program.to_yaml
end
end