Skip to content

Commit

Permalink
Document that new version can omit semicolons in print.
Browse files Browse the repository at this point in the history
Also, add a test to the test-suite.
  • Loading branch information
dmsc committed Dec 9, 2024
1 parent 570a981 commit 583f1d0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -1166,6 +1166,12 @@ Console Print and Input Statements
with the value of each character in
the original string before printing.

*Advanced:* When writing abbreviated
code, you can omit the semicolon in
almost all places, and just join the
values together. Avoid doing this in
common code for better readability.


**Writes A Character To Screen**
**PUT _num_ / PU.**
Expand Down
6 changes: 6 additions & 0 deletions testsuite/tests/stmt-print.bas
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ exec print1
? rtab(4) "x"; rtab(4) "yy";
? "e"

' Test without separators (extension)
?1"-"2
A=123
?1A
?"x"A"y"

proc print1
? "in proc"
endproc
3 changes: 3 additions & 0 deletions testsuite/tests/stmt-print.chk
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,6 @@ ABCDEFGHI 1234
ABCDEFGHI 12345
ABCDEFGHI 123456
x yye
1-2
1123
x123y

0 comments on commit 583f1d0

Please sign in to comment.