rubyx/lib/risc/builtin/compile_helper.rb

15 lines
360 B
Ruby
Raw Normal View History

module Risc
module Builtin
module CompileHelper
2018-06-29 12:03:19 +02:00
def compiler_for( clazz_name , method_name , arguments , locals = {})
frame = Parfait::NamedList.type_for( locals )
args = Parfait::NamedList.type_for( arguments )
2018-06-29 12:03:19 +02:00
Risc::MethodCompiler.compiler_for_class(clazz_name , method_name , args, frame )
end
end
end
end