Builtin is no more, final conversions done

All preloading where it needs to be
(some)tests for the preload
split compiler test
remembered binary tests (usually just run on travis)
This commit is contained in:
2019-09-13 20:34:41 +03:00
parent 8af17a69ea
commit 1ee01622c3
15 changed files with 74 additions and 34 deletions

View File

@ -6,7 +6,7 @@ module Vool
def setup
Parfait.boot!(Parfait.default_test_options)
@code = Macro.boot_methods({})
@code = Builtin.boot_methods({})
end
def as_ruby
@ruby = Ruby::RubyCompiler.compile(@code)

View File

@ -7,6 +7,9 @@ module Mom
@a = arg
@b = b
end
def to_risc(compiler)
Risc.label("some" , "thing")
end
end
end
@ -30,6 +33,10 @@ module Vool
assert_equal Vool::IntegerConstant , @ins.b.class
assert_equal 1 , @ins.b.value
end
def test_to_risc
comp = @compiler.to_risc
assert_equal Risc::MethodCompiler , comp.class
assert_equal :main , comp.callable.name
end
end
end