diff --git a/manual.md b/manual.md index 7429809..227d5e6 100644 --- a/manual.md +++ b/manual.md @@ -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.** diff --git a/testsuite/tests/stmt-print.bas b/testsuite/tests/stmt-print.bas index 8dda4ba..fdc1a98 100644 --- a/testsuite/tests/stmt-print.bas +++ b/testsuite/tests/stmt-print.bas @@ -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 diff --git a/testsuite/tests/stmt-print.chk b/testsuite/tests/stmt-print.chk index 82d30f1..93756e1 100644 --- a/testsuite/tests/stmt-print.chk +++ b/testsuite/tests/stmt-print.chk @@ -86,3 +86,6 @@ ABCDEFGHI 1234 ABCDEFGHI 12345 ABCDEFGHI 123456 x yye +1-2 +1123 +x123y