rename self to receiver
just because it is a keyword and can’t be used
This commit is contained in:
@ -21,7 +21,7 @@ module Mom
|
||||
# The first element is either a known type name (Capitalized symbol of the class name) ,
|
||||
# or the symbol :message
|
||||
# And subsequent symbols must be instance variables on the previous type.
|
||||
# Examples: [:message , :self] or [:Space : :next_message]
|
||||
# Examples: [:message , :receiver] or [:Space : :next_message]
|
||||
#
|
||||
# @right: depends on the derived Class
|
||||
#
|
||||
|
@ -2,8 +2,14 @@ module Mom
|
||||
|
||||
#SlotMove is a SlotLoad where the right side is a slot, just like the left.
|
||||
class SlotMove < SlotLoad
|
||||
def to_risc(compiler)
|
||||
|
||||
def initialize(left , right)
|
||||
right = SlotDefinition.new(right.shift , right) if right.is_a? Array
|
||||
super(left , right)
|
||||
end
|
||||
|
||||
def to_risc(context)
|
||||
Risc::Label.new(self,"SlotMove")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user