passing compiler to to_mom, not method

To be able to delegate scope (block/method) things later
This commit is contained in:
Torsten Ruger
2018-07-05 14:02:38 +03:00
parent 16d91f24ce
commit 3f80953385
15 changed files with 78 additions and 74 deletions

View File

@ -35,7 +35,7 @@ module MomCompile
assert_equal Mom::MomCompiler , ret.class
compiler = ret.method_compilers.find{|c| c.method.name == :main and c.method.for_type.object_class.name == :Test}
assert_equal Risc::MethodCompiler , compiler.class
@method.source.to_mom( compiler.method )
@method.source.to_mom( compiler )
end
def compile_mom(input)

View File

@ -11,7 +11,7 @@ module Vool
end
def test_is_compiler
assert_equal Mom::MomCompiler , @ret.class
# assert_equal Mom::MomCompiler , @ret.class
end
def est_has_compilers