6754518daf
will need much less, many more things can be expressed in soml
22 lines
453 B
Ruby
22 lines
453 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, :Integer , :main , [])
|
|
return function
|
|
end
|
|
|
|
end
|
|
extend ClassMethods
|
|
end
|
|
end
|
|
end
|
|
|
|
require_relative "integer"
|
|
require_relative "kernel"
|
|
require_relative "word"
|