rename LoadMaker to Assignment
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
module SlotLanguage
|
||||
# A LoadMaker makes SlotLoad. That means it stores the information
|
||||
# A Assignment makes SlotLoad. That means it stores the information
|
||||
# to be able to create a SlotLoad
|
||||
#
|
||||
# Just like the SlotLoad stores two Slots, here we store two SlotMakers
|
||||
#
|
||||
class LoadMaker
|
||||
class Assignment
|
||||
# The two SlotMakers that become Slots in to_slot
|
||||
attr_reader :left , :right
|
||||
|
@ -45,7 +45,7 @@ module SlotLanguage
|
||||
puts "lvasgn #{expression}" if DEBUG
|
||||
name = expression.children[0]
|
||||
value = process(expression.children[1])
|
||||
LoadMaker.new(SlotMaker.new(name),value)
|
||||
Assignment.new(SlotMaker.new(name),value)
|
||||
end
|
||||
alias :on_ivasgn :on_lvasgn
|
||||
|
||||
@ -99,14 +99,14 @@ module SlotLanguage
|
||||
receiver.add_slot_name(name)
|
||||
right = process kids.shift
|
||||
puts "Assign #{name} , #{receiver}" if DEBUG
|
||||
LoadMaker.new(receiver,right)
|
||||
Assignment.new(receiver,right)
|
||||
end
|
||||
end
|
||||
end
|
||||
require_relative "named_slot"
|
||||
require_relative "message_slot"
|
||||
require_relative "slot_maker"
|
||||
require_relative "load_maker"
|
||||
require_relative "assignment"
|
||||
require_relative "macro_maker"
|
||||
require_relative "goto"
|
||||
require_relative "equal_goto"
|
||||
|
@ -3,8 +3,8 @@ module SlotLanguage
|
||||
# variable in an object. This Language level "Maker" holds the information
|
||||
# (names of instance variables) to be able to create the Slot instance
|
||||
#
|
||||
# In the SlotLanguage this is used in the LoadMaker. Just as a Slotload stores
|
||||
# two slots to define what is loaded where, the LoadMaker, that creates a SlotLoad,
|
||||
# In the SlotLanguage this is used in the Assignment. Just as a Slotload stores
|
||||
# two slots to define what is loaded where, the Assignment, that creates a SlotLoad,
|
||||
# uses two SlotMakers.
|
||||
class SlotMaker
|
||||
# stores the (instance) names that allow us to create a Slot
|
||||
|
Reference in New Issue
Block a user