add lib and interpreter skeleton
This commit is contained in:
10
lib/interpreter.rb
Normal file
10
lib/interpreter.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
class Interpreter
|
||||
|
||||
attr_accessor :instruction
|
||||
attr_accessor :registers
|
||||
|
||||
def initialize
|
||||
@registers = (0...12).collect{|i| "r#{i}"}
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user