2017-01-19 08:02:29 +01:00
|
|
|
module Risc
|
2015-11-30 15:09:12 +01:00
|
|
|
module Builtin
|
|
|
|
class Space
|
|
|
|
module ClassMethods
|
2018-03-18 17:38:35 +01:00
|
|
|
include CompileHelper
|
2015-11-30 15:09:12 +01:00
|
|
|
|
|
|
|
# main entry point, ie __init__ calls this
|
|
|
|
# defined here as empty, to be redefined
|
2018-04-01 14:17:16 +02:00
|
|
|
def main(context)
|
2018-03-18 17:38:35 +01:00
|
|
|
compiler = compiler_for(:Space , :main ,{args: :Integer})
|
2018-04-01 14:17:16 +02:00
|
|
|
compiler.add_mom( Mom::ReturnSequence.new)
|
2018-06-30 22:16:17 +02:00
|
|
|
return compiler
|
2015-11-30 15:09:12 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
extend ClassMethods
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|