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

View File

@ -9,6 +9,7 @@ require "react/source"
run Opal::Server.new {|s|
s.append_path 'app'
s.append_path 'lib'
s.append_path File.dirname(::React::Source.bundled_path_for("react-with-addons.js"))
s.main = 'debugger'
s.debug = true

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