summaryrefslogtreecommitdiff
path: root/docs/help.txt
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-19 00:33:17 +0200
committerPaul Buetow <paul@buetow.org>2026-02-19 00:33:17 +0200
commit147153bf6aadd52d32f6beffc17f610c837ce17f (patch)
tree8041cea988dc11bc0cefeedd7d895fe9bdb02274 /docs/help.txt
parent7a0407c03a0af18a38fcea4312796f18a276e541 (diff)
Implement break and next for while/until loops
TT_BREAK and TT_NEXT were already tokenised; this wires them up: - _program(): guard statement loop with ct == CONTROL_NONE so a break/next flag set inside a loop body stops block execution and propagates upward - _control(): add TT_BREAK and TT_NEXT cases that set CONTROL_BREAK / CONTROL_NEXT on p_interpret->ct and return immediately - while/until loop: replace the commented-out switch with active if/else logic that clears the flag and either stops iteration (break) or lets the loop re-evaluate its condition (next) Add examples/break_next.fy to exercise both keywords in while and until loops; expected output: 5 / 12 / 7. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'docs/help.txt')
-rw-r--r--docs/help.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/help.txt b/docs/help.txt
index 3921ea2..4ccd7a7 100644
--- a/docs/help.txt
+++ b/docs/help.txt
@@ -1,4 +1,4 @@
-Fype Superalpha Build 9669
+Fype Superalpha Build 9671
(c) Paul C. Buetow (2005 - 2008) <fype@dev.buetow.org>
-e Executes given code string (see synopses)
-h Prints this help