remove to_mom / create_objects dichotomy

wsa supposed to be clearer, but even to me seems confusing now.
This commit is contained in:
Torsten Ruger
2018-06-26 20:46:58 +03:00
parent c6a903073a
commit f0ba863721
6 changed files with 20 additions and 31 deletions

View File

@ -4,7 +4,7 @@ module Risc
class TestPadding < MiniTest::Test
def setup
Risc.machine.boot unless Risc.machine.booted
Risc.machine.boot
end
def test_small

View File

@ -26,7 +26,7 @@ module MomCompile
# but here we return the intermediate mom instructions that are otherwise not available
statements = Vool::RubyCompiler.compile as_test_main( input )
statements = statements.normalize
res = statements.create_objects
res = statements.to_mom(nil)
assert_equal Parfait::Class , statements.clazz.class , statements
@method = statements.clazz.get_method(:main)
assert_equal Parfait::VoolMethod , @method.class