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
|
2017-01-16 16:43:39 +01:00
|
|
|
include InterpreterHelpers
|
2018-03-23 10:36:20 +01:00
|
|
|
include CompilerHelper
|
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-22 17:54:40 +01:00
|
|
|
Vool::VoolCompiler.ruby_to_vool( @string_input )
|
2017-01-04 20:35:50 +01:00
|
|
|
Collector.collect_space
|
|
|
|
@interpreter = Interpreter.new
|
2018-03-25 18:36:00 +02:00
|
|
|
@interpreter.start Risc.machine.risc_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
|