rubyx/lib/risc/builtin/compile_helper.rb

15 lines
386 B
Ruby
Raw Normal View History

module Risc
module Builtin
module CompileHelper
def compiler_for( type , method_name , arguments , locals = {})
frame = Parfait::NamedList.type_for( locals ) #TODO fix locals passing/ using in builtin
args = Parfait::NamedList.type_for( arguments )
Risc::MethodCompiler.create_method(type , method_name , args, frame )
end
end
end
end