This commit is contained in:
Torsten Ruger 2015-10-18 17:20:25 +03:00
parent 6c7e4c0fe2
commit ae21feb6dc
2 changed files with 2 additions and 2 deletions

View File

@ -202,7 +202,7 @@ module Interpreter
else else
raise "unimplemented '#{@instruction.operator}' #{@instruction}" raise "unimplemented '#{@instruction.operator}' #{@instruction}"
end end
puts "#{@instruction} == #{result}" #puts "#{@instruction} == #{result}"
right = set_register(@instruction.left , result) right = set_register(@instruction.left , result)
true true
end end

View File

@ -30,7 +30,7 @@ module Phisol
raise "Already in method #{@method}" if @method raise "Already in method #{@method}" if @method
@method = @clazz.get_instance_method( name ) @method = @clazz.get_instance_method( name )
if(@method) if(@method)
puts "Warning, redefining method #{name}" unless name == :main #puts "Warning, redefining method #{name}" unless name == :main
#TODO check args / type compatibility #TODO check args / type compatibility
@method.source.init @method @method.source.init @method
else else