giles
f200418d91
HS: break/continue/until — loop control flow via guard/raise
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>
2026-04-20 17:58:58 +00:00
..
2026-04-20 17:58:58 +00:00
2026-04-08 19:56:38 +00:00
2026-04-15 11:56:15 +00:00
2026-04-18 22:07:38 +00:00
2026-04-20 17:58:58 +00:00
2026-04-20 17:58:58 +00:00
2026-04-08 12:03:12 +00:00
2026-04-08 12:03:12 +00:00
2026-04-18 20:46:01 +00:00