rubyx/test/risc/interpreter/helper.rb

24 lines
496 B
Ruby
Raw Normal View History

require_relative "../helper"
require "risc/interpreter"
2015-09-27 21:39:10 +02:00
module Risc
2017-01-03 21:42:40 +01:00
module Ticker
include InterpreterHelpers
include CompilerHelper
2017-01-03 21:42:40 +01:00
def setup
Risc.machine.boot
2017-01-03 21:42:40 +01:00
do_clean_compile
Vool::VoolCompiler.ruby_to_vool( @string_input )
Collector.collect_space
@interpreter = Interpreter.new
@interpreter.start Risc.machine.risc_init
2017-01-03 21:42:40 +01:00
end
2017-01-03 21:42:40 +01:00
# must be after boot, but before main compile, to define method
def do_clean_compile
end
end
2015-09-27 21:39:10 +02:00
end