Skip to content

Commit 189aeda

Browse files
committed
Output from m100-decomment JMPTST.DO -
1 parent 044d824 commit 189aeda

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

samples/JMPTST-decommented.DO

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
1 ' Test for m100-jumps.lex which
2+
2 ' emits all lines which are targets
3+
3 ' of GOTO or similar commands.
4+
4 '
5+
5 ' Line numbers <500 should be printed. >= 500 should not.
6+
6 '
7+
7 ' When testing m100-decommenter,
8+
8 ' lines 500--1000 will be removed.
9+
9 '
10+
10 REM ERL Equals
11+
20 REM ERL Less than
12+
30 REM ERL Less than or equal to
13+
40 REM ERL Greater than
14+
50 REM ERL Greater than or equal to
15+
60 REM Equals ERL
16+
70 REM Less than ERL
17+
80 REM Less than or equal to ERL
18+
90 REM Greater than ERL
19+
100 REM Greater than or equal to ERL
20+
110 REM LLIST 110-
21+
120 REM 120-130
22+
130 REM 120-130
23+
140 REM -140
24+
150 REM ALL CATS ARE GREY
25+
160 REM RUN 160
26+
170 REM GOSUB 170
27+
180 REM ON A GO TO 1,2,3, 180, 4,5,6
28+
190 REM ON COM GOSUB 1,2,3, 190, 7,8,9
29+
200 REM DATA GOTO 530: GOTO 200
30+
1010 IF ERL = 10 THEN PRINT "Equals works"
31+
1020 IF ERL < 20 THEN PRINT "Less than works"
32+
1030 IF ERL <= 30 THEN PRINT "Less than or equal works"
33+
1040 IF ERL > 40 THEN PRINT "Greater than works"
34+
1050 IF ERL >= 50 THEN PRINT "Greater than or equal works"
35+
1060 IF ERL = 60 THEN PRINT "Equals works"
36+
1070 IF ERL < 70 THEN PRINT "Less than works"
37+
1080 IF ERL <= 80 THEN PRINT "Less than or equal works"
38+
1090 IF ERL > 90 THEN PRINT "Greater than works"
39+
1100 IF ERL >= 100 THEN PRINT "Greater than or equal works"
40+
1110 LLIST 110 -
41+
1120 LLIST 120 - 130
42+
1130 LLIST -
43+
1140 LLIST - 140
44+
1150 GOTO 150
45+
1160 RUN 160
46+
1170 GOSUB 170
47+
1180 ON A GO TO 1,2,3, 180, 4,5,6
48+
1190 ON COM GOSUB 1,2,3, 190, 7,8,9
49+
1200 DATA ":GOTO 530",GOTO 530: GOTO 200
50+
1510 DATA GOTO 510
51+
1520 DATA "GOTO 520"

0 commit comments

Comments
 (0)