rubyx/test/risc/interpreter/helper.rb

24 lines
462 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 AST::Sexp
include InterpreterHelpers
2017-01-03 21:42:40 +01:00
def setup
Risc.machine.boot
2017-01-03 21:42:40 +01:00
do_clean_compile
2017-01-14 18:52:16 +01:00
Vm.compile_ast( @input )
Collector.collect_space
@interpreter = Interpreter.new
@interpreter.start Risc.machine.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