add lib and interpreter skeleton
This commit is contained in:
parent
f4dfbb5845
commit
aa2303ddaa
@ -9,6 +9,7 @@ require "react/source"
|
|||||||
|
|
||||||
run Opal::Server.new {|s|
|
run Opal::Server.new {|s|
|
||||||
s.append_path 'app'
|
s.append_path 'app'
|
||||||
|
s.append_path 'lib'
|
||||||
s.append_path File.dirname(::React::Source.bundled_path_for("react-with-addons.js"))
|
s.append_path File.dirname(::React::Source.bundled_path_for("react-with-addons.js"))
|
||||||
s.main = 'debugger'
|
s.main = 'debugger'
|
||||||
s.debug = true
|
s.debug = true
|
||||||
|
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
|
Loading…
Reference in New Issue
Block a user