diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-17 06:10:05 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-17 06:10:05 +0000 |
| commit | 43451328a5ae74ffa34356259ee02e3786f070c3 (patch) | |
| tree | 8415ddf9af1ab030f36f9aee13e5f644b671862e /tests/i/while-do/program.cps | |
| parent | bc990a0917b401e16a0ab57affd868d5ef51cdec (diff) | |
fix(parser): accept optional DO after WHILE condition
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/i/while-do/program.cps')
| -rw-r--r-- | tests/i/while-do/program.cps | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/i/while-do/program.cps b/tests/i/while-do/program.cps new file mode 100644 index 0000000..58d6319 --- /dev/null +++ b/tests/i/while-do/program.cps @@ -0,0 +1,6 @@ +DECLARE X : INTEGER +X <- 0 +WHILE X < 2 DO + X <- X + 1 +ENDWHILE +OUTPUT X |
