minor
This commit is contained in:
parent
6c7e4c0fe2
commit
ae21feb6dc
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user