many machine boot became obsolete or just neede parfait to boot actual linker functionality pending
29 lines
593 B
Ruby
29 lines
593 B
Ruby
require_relative "../helper"
|
|
|
|
module RubyX
|
|
module RubyXHelper
|
|
def setup
|
|
Parfait.boot!
|
|
Risc.boot!
|
|
end
|
|
def ruby_to_risc(input , platform)
|
|
mom = ruby_to_mom(input)
|
|
mom.translate(platform)
|
|
end
|
|
def ruby_to_vool(input)
|
|
RubyXCompiler.new(input).ruby_to_vool
|
|
end
|
|
def ruby_to_mom(input)
|
|
RubyXCompiler.new(input).ruby_to_mom
|
|
end
|
|
def compile_in_test input
|
|
vool = ruby_to_vool in_Test(input)
|
|
vool.to_mom(nil)
|
|
itest = Parfait.object_space.get_class_by_name(:Test)
|
|
assert itest
|
|
itest
|
|
end
|
|
|
|
end
|
|
end
|