2014-06-13 23:19:12 +02:00
|
|
|
#integer related kernel functions
|
2015-06-29 20:03:58 +02:00
|
|
|
module Register
|
|
|
|
module Builtin
|
|
|
|
module Integer
|
|
|
|
module ClassMethods
|
2015-10-18 16:20:19 +02:00
|
|
|
include AST::Sexp
|
2015-08-07 15:46:55 +02:00
|
|
|
|
2015-11-13 19:46:27 +01:00
|
|
|
def mod4 context
|
|
|
|
compiler = Soml::Compiler.new.create_method(:Integer,:mod4 ).init_method
|
2015-10-28 20:37:42 +01:00
|
|
|
return compiler.method
|
2015-08-05 17:49:37 +02:00
|
|
|
end
|
2015-11-11 19:41:02 +01:00
|
|
|
def putint context
|
|
|
|
compiler = Soml::Compiler.new.create_method(:Integer,:putint ).init_method
|
2015-10-28 20:37:42 +01:00
|
|
|
return compiler.method
|
2015-08-05 17:49:37 +02:00
|
|
|
end
|
2015-11-11 19:41:02 +01:00
|
|
|
|
2015-06-29 20:03:58 +02:00
|
|
|
end
|
|
|
|
extend ClassMethods
|
2014-09-11 14:08:56 +02:00
|
|
|
end
|
2014-06-13 23:19:12 +02:00
|
|
|
end
|
2015-05-24 12:31:33 +02:00
|
|
|
end
|