rubyx/test/risc/interpreter/helper.rb
Torsten Ruger 34903829ca fix interpreter test harness and start testing
interpreter on debug for now
2018-03-22 18:54:40 +02:00

24 lines
486 B
Ruby

require_relative "../helper"
require "risc/interpreter"
module Risc
module Ticker
include AST::Sexp
include InterpreterHelpers
def setup
Risc.machine.boot
do_clean_compile
Vool::VoolCompiler.ruby_to_vool( @string_input )
Collector.collect_space
@interpreter = Interpreter.new
@interpreter.start Risc.machine.init
end
# must be after boot, but before main compile, to define method
def do_clean_compile
end
end
end