mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2024-06-26 17:29:50 +00:00
don't include goto, gosub, on
This commit is contained in:
parent
d801e85736
commit
6e70142f59
|
@ -43,7 +43,10 @@ public class SubLine
|
||||||
if (Utility.isHighBitSet (firstByte))
|
if (Utility.isHighBitSet (firstByte))
|
||||||
doToken (firstByte);
|
doToken (firstByte);
|
||||||
else if (Utility.isDigit (firstByte))
|
else if (Utility.isDigit (firstByte))
|
||||||
|
{
|
||||||
doDigit ();
|
doDigit ();
|
||||||
|
return;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
doAlpha ();
|
doAlpha ();
|
||||||
|
|
||||||
|
@ -137,8 +140,13 @@ public class SubLine
|
||||||
|
|
||||||
if (!Utility.isLetter ((byte) var.charAt (0)))
|
if (!Utility.isLetter ((byte) var.charAt (0)))
|
||||||
{
|
{
|
||||||
if (!constants.contains (var))
|
if (is (ApplesoftConstants.TOKEN_GOTO) || is (ApplesoftConstants.TOKEN_GOSUB)
|
||||||
constants.add (Integer.parseInt (var));
|
|| is (ApplesoftConstants.TOKEN_ON))
|
||||||
|
return;
|
||||||
|
|
||||||
|
int varInt = Integer.parseInt (var);
|
||||||
|
if (!constants.contains (varInt))
|
||||||
|
constants.add (varInt);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user