mirror of
https://github.com/AppleCommander/bastools.git
synced 2025-02-02 14:30:10 +00:00
Allowing blank lines...
This commit is contained in:
parent
b715dbc536
commit
fc2a0ca979
@ -55,6 +55,10 @@ public class Parser {
|
||||
|
||||
public int expectNumber() {
|
||||
Token c = tokens.remove();
|
||||
while (c.type == Type.EOL) {
|
||||
// Allow blank lines...
|
||||
c = tokens.remove();
|
||||
}
|
||||
if (c.type != Type.NUMBER) {
|
||||
throw new RuntimeException("Expected a number in line #" + c.line);
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
10 GOTO 100
|
||||
|
||||
20 REM DRAW CIRCLE ROUTINE
|
||||
30 FOR A = 0 TO PT
|
||||
40 X = X(A) * SZ:Y = Y(A) * SZ
|
||||
@ -8,6 +9,7 @@
|
||||
80 HPLOT XO - X,YO - Y
|
||||
90 NEXT A
|
||||
95 RETURN
|
||||
|
||||
100 REM MAIN PROGRAM
|
||||
110 HGR
|
||||
115 C(0)=1:C(1)=2:C(2)=3:C(3)=5:C(4)=6:C(5)=7
|
||||
|
Loading…
x
Reference in New Issue
Block a user