rubyx/lib/risc/builtin/space.rb

19 lines
389 B
Ruby
Raw Normal View History

module Risc
2015-11-30 15:09:12 +01:00
module Builtin
class Space
module ClassMethods
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)
compiler = compiler_for(:Space , :main ,{args: :Integer})
return compiler
2015-11-30 15:09:12 +01:00
end
end
extend ClassMethods
end
end
end