7e0778dc70
soon to be obsolete with multi returns
22 lines
443 B
Ruby
22 lines
443 B
Ruby
module Register
|
|
module Builtin
|
|
class Object
|
|
module ClassMethods
|
|
|
|
# main entry point, ie __init__ calls this
|
|
# defined here as empty, to be redefined
|
|
def main context
|
|
function = MethodSource.create_method(:Object , :main , [])
|
|
return function
|
|
end
|
|
|
|
end
|
|
extend ClassMethods
|
|
end
|
|
end
|
|
end
|
|
|
|
require_relative "integer"
|
|
require_relative "kernel"
|
|
require_relative "word"
|