rubyx/lib/mom/instruction.rb
Torsten Ruger 9a1e4a6f27 own statements class for mom
so we don’t have to deal with arrays (as a special case)
and use method sending as is good oo
2017-09-06 12:33:46 +03:00

28 lines
481 B
Ruby

module Mom
# Base class for MOM instructions
class Instruction
attr :next_instruction
# implement flatten as noop to avoid condition
def flatten
end
end
# A label with a name
class Label
attr_reader :name
def initialize(name)
@name = name
end
end
end
require_relative "simple_call"
require_relative "truth_check"
require_relative "jump"
require_relative "slot_load"
require_relative "return_sequence"
require_relative "statement"