fix boot to include blocks correctly

This commit is contained in:
Torsten Ruger
2018-07-27 10:48:45 +03:00
parent 4839e0d245
commit e1d5592c55
3 changed files with 19 additions and 4 deletions

View File

@ -13,6 +13,14 @@ module Risc
end
alias :do_setup :setup
def yielder
"def yielder; yield ; end"
end
def block_main( main , extra = yielder)
in_Space("#{extra} ; def main(arg) ; #{main} ; end")
end
# check the given array of instructions is what the interpreter actually does
# possible second argument ignores the given amount, usually up until main
def check_chain( should , start_at = 0 )