rubyx/test/register/interpreter/helper.rb

24 lines
478 B
Ruby
Raw Normal View History

require_relative "../helper"
require "register/interpreter"
2015-09-27 21:39:10 +02:00
2017-01-03 21:42:40 +01:00
module Register
module Ticker
include AST::Sexp
include InterpreterHelpers
2017-01-03 21:42:40 +01:00
def setup
Register.machine.boot
do_clean_compile
2017-01-14 18:52:16 +01:00
Vm.compile_ast( @input )
Collector.collect_space
@interpreter = Interpreter.new
2017-01-03 21:42:40 +01:00
@interpreter.start Register.machine.init
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