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