mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2025-02-28 09:29:53 +00:00
Added isEndOfCommand and isExpressionSeparator.
This commit is contained in:
parent
50aab615cc
commit
e677fe4baf
@ -32,6 +32,10 @@ public class ApplesoftToken {
|
||||
return !isToken() && !isString();
|
||||
}
|
||||
|
||||
public boolean isEndOfCommand() {
|
||||
return isLineNumber() || isCommandSeparator();
|
||||
}
|
||||
|
||||
public boolean isToken() {
|
||||
return tokenString != null;
|
||||
}
|
||||
@ -40,6 +44,12 @@ public class ApplesoftToken {
|
||||
return stringValue != null;
|
||||
}
|
||||
|
||||
public boolean isExpressionSeparator() {
|
||||
return isCommandSeparator()
|
||||
|| ",".equals(stringValue)
|
||||
|| ";".equals(stringValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the line number.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user