copied list code from risc instructions

This commit is contained in:
Torsten Ruger
2017-09-08 13:10:22 +03:00
parent 9189e56e77
commit 985dc9904d
4 changed files with 62 additions and 5 deletions

View File

@@ -2,21 +2,21 @@ module Mom
# Base class for MOM instructions
class Instruction
attr :next_instruction
include Common::List
# implement flatten as noop to avoid condition
def flatten
def flatten( options = {} )
return self
end
end
# A label with a name
class Label
class Label < Instruction
attr_reader :name
def initialize(name)
@name = name
end
end
end
require_relative "simple_call"