implement greater than

This commit is contained in:
Torsten Ruger
2018-04-19 22:57:31 +03:00
parent be3d125b82
commit 04359546b7
5 changed files with 38 additions and 16 deletions

View File

@ -184,7 +184,7 @@ module Risc
Risc.operators.each do |op|
obj.instance_type.add_method Builtin::Integer.operator_method(op)
end
[:putint, :div4, :div10 , :<].each do |f| #div4 is just a forward declaration
[:putint, :div4, :div10 , :<, :>].each do |f| #div4 is just a forward declaration
obj.instance_type.add_method Builtin::Integer.send(f , nil)
end
end