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

@ -20,6 +20,7 @@ module Risc
end
def putint(context)
compiler = compiler_for(:Integer,:putint ,{})
compiler.add_mom( Mom::ReturnSequence.new)
return compiler.method
end