Torsten Rüger
0725f02e9a
start at Object get_interna_word using the pattern to replace the whole risc method with a single mom instruction. Copying the original risc code into the instrucitons to_risc also adding some very basic tests
19 lines
389 B
Ruby
19 lines
389 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})
|
|
return compiler
|
|
end
|
|
|
|
end
|
|
extend ClassMethods
|
|
end
|
|
end
|
|
end
|