fx ruby send args
This commit is contained in:
@ -15,5 +15,10 @@ module Vool
|
||||
at_depth(depth , "#{@name} = #{@value}")
|
||||
end
|
||||
|
||||
|
||||
def chain_assign(assign , compiler)
|
||||
return assign unless @value.is_a?(SendStatement)
|
||||
@value.to_mom(compiler) << assign
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -8,11 +8,7 @@ module Vool
|
||||
from = @value.slot_definition(compiler)
|
||||
return chain_assign( Mom::SlotLoad.new(to,from) , compiler)
|
||||
end
|
||||
|
||||
def chain_assign(assign , compiler)
|
||||
return assign unless @value.is_a?(SendStatement)
|
||||
@value.to_mom(compiler) << assign
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
@ -27,6 +27,9 @@ module Vool
|
||||
@statements << o
|
||||
self
|
||||
end
|
||||
def prepend(o)
|
||||
@statements = [o] + @statements
|
||||
end
|
||||
|
||||
# create mom instructions
|
||||
def to_mom( compiler )
|
||||
|
Reference in New Issue
Block a user