2016-12-16 23:15:27 +01:00
|
|
|
require_relative "../helper"
|
2017-01-19 08:02:29 +01:00
|
|
|
require "risc/interpreter"
|
2015-09-27 21:39:10 +02:00
|
|
|
|
2017-01-19 08:02:29 +01:00
|
|
|
module Risc
|
2017-01-03 21:42:40 +01:00
|
|
|
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
|
2017-01-19 08:02:29 +01:00
|
|
|
Risc.machine.boot
|
2017-01-03 21:42:40 +01:00
|
|
|
do_clean_compile
|
2018-03-11 12:32:42 +01:00
|
|
|
#FIXME Vm.compile_ast( @input )
|
2017-01-04 20:35:50 +01:00
|
|
|
Collector.collect_space
|
|
|
|
@interpreter = Interpreter.new
|
2017-01-19 08:02:29 +01:00
|
|
|
@interpreter.start Risc.machine.init
|
2017-01-03 21:42:40 +01:00
|
|
|
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
|