Skip to content

Commit 583f1d0

Browse files
committed
Document that new version can omit semicolons in print.
Also, add a test to the test-suite.
1 parent 570a981 commit 583f1d0

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

manual.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,6 +1166,12 @@ Console Print and Input Statements
11661166
with the value of each character in
11671167
the original string before printing.
11681168

1169+
*Advanced:* When writing abbreviated
1170+
code, you can omit the semicolon in
1171+
almost all places, and just join the
1172+
values together. Avoid doing this in
1173+
common code for better readability.
1174+
11691175

11701176
**Writes A Character To Screen**
11711177
**PUT _num_ / PU.**

testsuite/tests/stmt-print.bas

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ exec print1
8383
? rtab(4) "x"; rtab(4) "yy";
8484
? "e"
8585

86+
' Test without separators (extension)
87+
?1"-"2
88+
A=123
89+
?1A
90+
?"x"A"y"
91+
8692
proc print1
8793
? "in proc"
8894
endproc

testsuite/tests/stmt-print.chk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,6 @@ ABCDEFGHI 1234
8686
ABCDEFGHI 12345
8787
ABCDEFGHI 123456
8888
x yye
89+
1-2
90+
1123
91+
x123y

0 commit comments

Comments
 (0)