Torsten Rüger
fa0aa30386
Since Builtin generates risc, just like mom instructions, it was a design mistake to put builtin into risc in the first place. Now that borders are coming more into focus, it make much more sense to have the builtin in mom. In fact the instructions should be moved out and a seperate invocation mechanism used , so functions can be parsed, not generated (wip)
17 lines
349 B
Ruby
17 lines
349 B
Ruby
require_relative "../helper"
|
|
|
|
module Mom
|
|
module Builtin
|
|
class BootTest < MiniTest::Test
|
|
def setup
|
|
Parfait.boot!(Parfait.default_test_options)
|
|
@functions = Builtin.boot_functions
|
|
end
|
|
def get_compiler( name )
|
|
@functions.each.find{|meth|
|
|
meth.callable.name == name}
|
|
end
|
|
end
|
|
end
|
|
end
|