2015-06-29 20:03:58 +02:00
|
|
|
module Register
|
|
|
|
module Builtin
|
|
|
|
class Object
|
|
|
|
module ClassMethods
|
2015-05-04 22:03:52 +02:00
|
|
|
|
2015-06-29 20:03:58 +02:00
|
|
|
# main entry point, ie __init__ calls this
|
|
|
|
# defined here as empty, to be redefined
|
|
|
|
def main context
|
2015-10-22 17:16:29 +02:00
|
|
|
function = MethodSource.create_method(:Object, :Integer , :main , [])
|
2015-06-29 20:03:58 +02:00
|
|
|
return function
|
|
|
|
end
|
2014-06-03 13:49:02 +02:00
|
|
|
|
|
|
|
end
|
2015-06-29 20:03:58 +02:00
|
|
|
extend ClassMethods
|
2014-06-03 13:49:02 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2015-06-29 20:03:58 +02:00
|
|
|
|
2014-08-28 15:44:27 +02:00
|
|
|
require_relative "integer"
|
2014-09-10 20:35:52 +02:00
|
|
|
require_relative "kernel"
|
2015-07-01 20:45:41 +02:00
|
|
|
require_relative "word"
|