add lib and interpreter skeleton

This commit is contained in:
Torsten Ruger
2015-07-23 13:15:44 +03:00
parent f4dfbb5845
commit aa2303ddaa
2 changed files with 11 additions and 0 deletions

10
lib/interpreter.rb Normal file
View File

@@ -0,0 +1,10 @@
class Interpreter
attr_accessor :instruction
attr_accessor :registers
def initialize
@registers = (0...12).collect{|i| "r#{i}"}
end
end