Object dogfood, compiling parfiat to binary

Object is the first (obviously) Parfait object to parse and fully compile to binary.
No tests yet, but almost 500 lines of real world code with 17  methods, not bad
This commit is contained in:
Torsten Rüger 2019-08-18 20:41:49 +03:00
parent ee8927b059
commit 4f3d117e40

View File

@ -17,8 +17,16 @@ module RubyX
assert_equal :Object , vool.name assert_equal :Object , vool.name
end end
def test_mom def test_mom
vool = compiler.ruby_to_mom source mom = compiler.ruby_to_mom source
assert_equal Mom::MomCollection , vool.class assert_equal Mom::MomCollection , mom.class
end
def test_risc
risc = compiler.ruby_to_risc source
assert_equal Risc::RiscCollection , risc.class
end
def test_binary
risc = compiler.ruby_to_binary source , :interpreter
assert_equal Risc::Linker , risc.class
end end
end end
end end