24 lines
496 B
Ruby
Raw Normal View History

require_relative "../helper"
require "risc/interpreter"
2015-09-27 22:39:10 +03:00
module Risc
2017-01-03 22:42:40 +02:00
module Ticker
include InterpreterHelpers
include CompilerHelper
2017-01-03 22:42:40 +02:00
def setup
Risc.machine.boot
2017-01-03 22:42:40 +02:00
do_clean_compile
Vool::VoolCompiler.ruby_to_vool( @string_input )
Collector.collect_space
@interpreter = Interpreter.new
@interpreter.start Risc.machine.risc_init
2017-01-03 22:42:40 +02:00
end
2017-01-03 22:42:40 +02:00
# must be after boot, but before main compile, to define method
def do_clean_compile
end
end
2015-09-27 22:39:10 +03:00
end