Logo
Explore Help
Sign In
andrew/akbasic
1
0
Fork 0
You've already forked akbasic
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
5b7b7d2ed9721060bac16525f06b0530ddca3906
akbasic/tests/language/statements/multiple_per_line.txt

15 lines
62 B
Plaintext
Raw Normal View History

Consume the COLON token: a line can hold several statements The token has existed since the scanner was written and nothing read it, so 10 PRINT A$ : REM ... was a parse error. Leading separators are consumed before each statement and an empty statement yields a NULL leaf rather than an error, so a trailing colon and a run of them are both legal. BASIC 7.0 scopes everything after THEN to the condition, which the reference had no opinion about because it never got here. The rule is not "skip when false": the rest of the line belongs to whichever arm was written last. A whole FOR/NEXT on one line still does not loop -- block skipping works by source line. Recorded in TODO.md as what group A has to fix first. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-31 11:46:10 -04:00
A
B
3
C
D
E
TRUE-1
TRUE-2
T
E
E-TAIL
AFTER A BARE PRINT
DONE
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 73ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API