2016-12-15 18:20:54 +01:00
|
|
|
|
2017-01-19 08:02:29 +01:00
|
|
|
module Risc
|
2016-12-15 18:20:54 +01:00
|
|
|
module Builtin
|
|
|
|
module CompileHelper
|
|
|
|
|
2018-03-18 17:38:35 +01:00
|
|
|
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 )
|
2018-03-25 18:37:51 +02:00
|
|
|
Risc::MethodCompiler.create_method(type , method_name , args, frame )
|
2016-12-15 18:20:54 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|