Fix GOSUB/GOTO EXPR$ parsing
This commit is contained in:
@@ -1006,6 +1006,7 @@ class Parser
|
|||||||
if(!e)
|
if(!e)
|
||||||
syntaxError();
|
syntaxError();
|
||||||
node = new Goto(e, lex.location);
|
node = new Goto(e, lex.location);
|
||||||
|
return node;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case TokenType.Gosub:
|
case TokenType.Gosub:
|
||||||
@@ -1019,6 +1020,7 @@ class Parser
|
|||||||
if(!e)
|
if(!e)
|
||||||
syntaxError();
|
syntaxError();
|
||||||
node = new Gosub(e, lex.location);
|
node = new Gosub(e, lex.location);
|
||||||
|
return node;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case TokenType.If:
|
case TokenType.If:
|
||||||
|
|||||||
Reference in New Issue
Block a user