rubyx/test/risc/interpreter/helper.rb
Torsten Ruger c51e593335 test return in interpreter
passes but does not return. dodgy
2018-03-23 11:36:20 +02:00

25 lines
513 B
Ruby

require_relative "../helper"
require "risc/interpreter"
module Risc
module Ticker
include AST::Sexp
include InterpreterHelpers
include CompilerHelper
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