Uses of Class
com.gengoai.parsing.ParserToken
-
Packages that use ParserToken Package Description com.gengoai.config Configuration based on json-like syntax that integrates with command line parser, applications, and loggingcom.gengoai.parsing -
-
Uses of ParserToken in com.gengoai.config
Methods in com.gengoai.config that return ParserToken Modifier and Type Method Description ParserToken
ConfigScanner. next()
Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs. -
Uses of ParserToken in com.gengoai.parsing
Fields in com.gengoai.parsing declared as ParserToken Modifier and Type Field Description static ParserToken
TokenStream. EOF_TOKEN
Special token signaling the End-of-File (i.e.Methods in com.gengoai.parsing that return ParserToken Modifier and Type Method Description ParserToken
AbstractTokenStream. consume()
ParserToken
Parser. consume()
ParserToken
TokenStream. consume()
Consumes a token from the stream.default ParserToken
TokenStream. consume(Tag target)
Consume a token from the stream expecting the tag to be an instance of the given target type.ParserToken
AbstractTokenStream. peek()
ParserToken
Parser. peek()
ParserToken
TokenStream. peek()
Peeks at the next token on the stream.ParserToken
AbstractTokenStream. token()
ParserToken
Parser. token()
ParserToken
TokenStream. token()
Returns the last token extracted via the call to consume.Methods in com.gengoai.parsing that return types with arguments of type ParserToken Modifier and Type Method Description protected abstract List<ParserToken>
AbstractTokenStream. next()
Gets the next available token.Methods in com.gengoai.parsing with parameters of type ParserToken Modifier and Type Method Description Optional<PostfixHandler>
Grammar. getPostfixHandler(ParserToken token)
Gets the postfix handler associated with theTag
of the givenParserToken
Optional<PrefixHandler>
Grammar. getPrefixHandler(ParserToken token)
Gets the prefix handler associated with theTag
of the givenParserToken
Expression
PostfixHandler. handle(Parser parser, ParserToken token, Expression left)
Handles the given postfix (or infix) token using the given parserExpression
PrefixHandler. handle(Parser parser, ParserToken token)
Handles the given prefix token using the given parserboolean
Grammar. isIgnored(ParserToken token)
Checks if the given token should be ignored during parsingExpression
Parser. parseExpression(ParserToken precedence)
Parses the token stream to get the next expressionExpression
Parser. parseExpression(ParserToken token, boolean isRightAssociative)
Parses the token stream to get the next expression<T extends Expression>
TParser. parseExpression(ParserToken precedence, Class<T> tClass)
int
Grammar. precedenceOf(ParserToken token)
Determines the precedence of theTag
of the givenParserToken
Method parameters in com.gengoai.parsing with type arguments of type ParserToken Modifier and Type Method Description static PrefixHandler
ValueExpression. handler(SerializableFunction<ParserToken,Object> converter)
Creates a generic handler which uses the givenSerializableFunction
to convert theParserToken
to a value.Constructors in com.gengoai.parsing with parameters of type ParserToken Constructor Description BinaryInfixOperatorExpression(ParserToken token, Expression left, Expression right)
Instantiates a new BinaryInfixOperatorExpression.TokenExpression(@NonNull ParserToken token)
UnaryOperatorExpression(ParserToken token, Expression value, boolean isPrefix)
Instantiates a new Prefix operator expression.
-