2016-12-16 23:15:27 +01:00
|
|
|
require_relative "../helper"
|
2015-11-18 11:00:30 +01:00
|
|
|
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
|
2017-01-16 16:43:39 +01:00
|
|
|
include InterpreterHelpers
|
2015-11-08 13:30:28 +01:00
|
|
|
|
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 )
|
2017-01-04 20:35:50 +01:00
|
|
|
Collector.collect_space
|
|
|
|
@interpreter = Interpreter.new
|
2017-01-03 21:42:40 +01:00
|
|
|
@interpreter.start Register.machine.init
|
|
|
|
end
|
2016-12-21 21:35:36 +01:00
|
|
|
|
2017-01-03 21:42:40 +01:00
|
|
|
# must be after boot, but before main compile, to define method
|
|
|
|
def do_clean_compile
|
2015-11-08 13:30:28 +01:00
|
|
|
end
|
|
|
|
|
2015-10-16 18:04:17 +02:00
|
|
|
end
|
2015-09-27 21:39:10 +02:00
|
|
|
end
|