From 43451328a5ae74ffa34356259ee02e3786f070c3 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Sat, 17 Oct 2026 06:10:05 +0000 Subject: fix(parser): accept optional DO after WHILE condition Co-Authored-By: Claude Opus 5.5 --- tests/i/while-do/program.cps | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/i/while-do/program.cps (limited to 'tests/i/while-do/program.cps') 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 -- cgit v1.3.1-4-g156e