10 REM PC-BASIC test: expression errors
20 OPEN "output.txt" FOR OUTPUT AS 1
25 ON ERROR GOTO 1000
100 PRINT#1, 0 NOT 0
110 PRINT#1, 1%0
120 PRINT#1, (1)%0
130 PRINT#1, ---
140 PRINT#1, (-)
150 PRINT#1, -
160 PRINT#1, +
170 PRINT#1, NOT
180 PRINT#1, *
190 PRINT#1, mod
200 PRINT#1, 1*
210 PRINT#1, (1*)
220 PRINT#1, *+
230 PRINT#1, a[
240 PRINT#1, a[]
250 PRINT#1, a[1,]
260 PRINT#1, spc(
270 PRINT#1, spc()
280 PRINT#1, call
900 CLOSE
910 END
1000 PRINT#1, "Error:", ERR, ERL
1010 RESUME NEXT
