use of com.googlecode.aviator.lexer.token.CharToken in project aviatorscript by killme2008.
the class ExpressionParser method isOPVariable.
public boolean isOPVariable(final Token<?> token) {
if (token.getType() != TokenType.Char) {
return false;
}
CharToken charToken = (CharToken) token;
move(true);
if (expectChar(',') || expectChar(')')) {
back();
String lexeme = String.valueOf(charToken.getCh());
if (lexeme.equals("-")) {
lexeme = "-sub";
}
return this.instance.containsFunction(lexeme);
} else {
back();
return false;
}
}
Aggregations