add some multi method tests
This commit is contained in:
@ -79,12 +79,19 @@ module Risc
|
||||
classes
|
||||
end
|
||||
|
||||
# do the setup, compile and run the input to the end
|
||||
# do the setup, compile and run the input (a main) to the end
|
||||
def run_main(input)
|
||||
@string_input = as_main(input)
|
||||
do_setup
|
||||
run_all
|
||||
end
|
||||
|
||||
# wrap the input in Space (main is assumed to be part of it)
|
||||
def run_space(input)
|
||||
@string_input = in_Space(input)
|
||||
do_setup
|
||||
run_all
|
||||
end
|
||||
def run_all
|
||||
@interpreter.tick while(@interpreter.instruction)
|
||||
end
|
||||
|
Reference in New Issue
Block a user