small clean

This commit is contained in:
Torsten Ruger
2015-09-27 14:07:02 +03:00
parent dba94827ec
commit 94c08f7129
6 changed files with 5 additions and 19 deletions

View File

@ -17,8 +17,7 @@ module Bosl
#
# Everything in ruby is an expression, ie returns a value. So the effect of every compile
# is that a value is put into the ReturnSlot of the current Message.
# The compile method (so every compile method) returns the value that it deposits which
# may be unknown Unknown value.
# The compile method (so every compile method) returns the value that it deposits.
#
# The process uses a visitor pattern (from AST::Processor) to dispatch according to the
# type the expression. So a s(:if xx) will become an on_if(node) call.

View File

@ -72,9 +72,5 @@ module Bosl
r
end
def on_variable expression
method.source.add_code InstanceGet.new(expression.name)
Virtual::Return.new( Unknown )
end
end
end