Parser: - Add break, continue, exit/halt as parsed commands - Handle bottom-tested repeat: repeat <body> until <cond> - Handle bottom-tested repeat: repeat <body> while <cond> Compiler: - break → (raise "hs-break"), continue → (raise "hs-continue") - repeat-until/repeat-while → hs-repeat-until/hs-repeat-while - for loops use hs-for-each (break/continue aware) instead of for-each Runtime: - hs-repeat-times, hs-repeat-forever, hs-repeat-while: wrap body in guard to catch hs-break (exit loop) and hs-continue (next iteration) - Add hs-repeat-until: bottom-tested do-until loop with guard - Add hs-for-each: break/continue aware iteration over lists Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
52 KiB
52 KiB