rubyx/lib/risc/builtin/space.rb
Torsten Ruger 91a99b1239 let boot_functions return the compilers
methods are still added, but this is a good step to removing the risc/cpu level from the methods
2018-06-30 23:16:17 +03:00

21 lines
443 B
Ruby

module Risc
module Builtin
class Space
module ClassMethods
include CompileHelper
# main entry point, ie __init__ calls this
# defined here as empty, to be redefined
def main(context)
compiler = compiler_for(:Space , :main ,{args: :Integer})
compiler.add_mom( Mom::ReturnSequence.new)
return compiler
end
end
extend ClassMethods
end
end
end