use compiler to generate methods and their instructions

This commit is contained in:
Torsten Ruger
2015-10-28 21:37:42 +02:00
parent 99a695907c
commit 191be8d2f6
4 changed files with 33 additions and 33 deletions

View File

@ -6,8 +6,8 @@ module Register
# main entry point, ie __init__ calls this
# defined here as empty, to be redefined
def main context
function = MethodSource.create_method(:Object , :main , [])
return function
compiler = Soml::Compiler.new.create_method(:Object , :main , []).init_method
return compiler.method
end
end