2016-12-15 19:20:54 +02:00
|
|
|
|
2017-01-19 09:02:29 +02:00
|
|
|
module Risc
|
2016-12-15 19:20:54 +02:00
|
|
|
module Builtin
|
|
|
|
module CompileHelper
|
|
|
|
|
2018-03-18 22:08:35 +05:30
|
|
|
def compiler_for( type , method_name , arguments , locals = {})
|
2018-05-14 20:50:52 +03:00
|
|
|
frame = Parfait::NamedList.type_for( locals )
|
2018-03-18 22:08:35 +05:30
|
|
|
args = Parfait::NamedList.type_for( arguments )
|
2018-03-25 19:37:51 +03:00
|
|
|
Risc::MethodCompiler.create_method(type , method_name , args, frame )
|
2016-12-15 19:20:54 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|