move interpreter to register

seems more where it belongs, since it interprets the register machine
instructions
This commit is contained in:
Torsten Ruger
2015-11-18 12:00:30 +02:00
parent 40d81681b5
commit 2bc2d4486f
5 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
require_relative '../../helper'
require "interpreter/interpreter"
require "register/interpreter"
# Fragments are small programs that we run through the interpreter and really only check
# - the no. of instructions processed
@ -16,7 +16,7 @@ module Fragments
machine = Register.machine.boot
machine.parse_and_compile @string_input
machine.collect
@interpreter = Interpreter::Interpreter.new
@interpreter = Register::Interpreter.new
@interpreter.start machine.init
count = 0
begin