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-28 20:37:42 +01:00
|
|
|
compiler = Soml::Compiler.new.create_method(:Object , :main , []).init_method
|
|
|
|
return compiler.method
|
2015-06-29 20:03:58 +02:00
|
|
|
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"
|