Change Mom to SlotMachine

rather large commit, but essentially a simple rename
Rationale in docs and blogs
This commit is contained in:
2019-10-03 20:55:41 +03:00
parent fd8a3e9cc5
commit c43436f35a
170 changed files with 481 additions and 480 deletions

View File

@ -14,12 +14,12 @@ module Risc
# Must pass the callable (method/block)
# Also start instuction, usually a label is mandatory
def initialize( callable , mom_label)
def initialize( callable , slot_label)
raise "No method" unless callable
@callable = callable
@regs = []
@constants = []
@current = @risc_instructions = mom_label.risc_label(self)
@current = @risc_instructions = slot_label.risc_label(self)
reset_regs
end
attr_reader :risc_instructions , :constants , :callable , :current