adding returns to all builtins

This commit is contained in:
Torsten Ruger
2018-04-01 15:17:16 +03:00
parent def67205f0
commit 972cf47c8b
5 changed files with 22 additions and 8 deletions

View File

@ -10,8 +10,9 @@ module Risc
# main entry point, ie __init__ calls this
# defined here as empty, to be redefined
def main context
def main(context)
compiler = compiler_for(:Space , :main ,{args: :Integer})
compiler.add_mom( Mom::ReturnSequence.new)
return compiler.method
end