Package com.gengoai.parsing
-
Interface Summary Interface Description Expression An expression encapsulates the result of parsingGrammarRegistrable Lexer A Lexer tokenizes a string or resource into tokens.PostfixHandler Handler for postfix and infix expressions.PrefixHandler Handler for prefix expressions.TokenDef Defines aTag
and pattern representing a terminal token to be lexed.TokenStream A stream of tokens extracted via aLexer
allowing for single token look-ahead. -
Class Summary Class Description AbstractTokenStream Abstract base token stream providing extracted tokens from aLexer
.BaseExpression Abstract Base Class for Expressions to implement.BinaryInfixOperatorExpression AnExpression
representing a binary operation, eg.Evaluator<O> An evaluator provides a switch-like interface for evaluating expressions.Grammar A grammar representing the rules for parsing.ListExpression The type List expression.Parser An implementation of a Pratt Parser inspired by Pratt Parsers: Expression Parsing Made Easy.ParserGenerator Generates aParser
objects that uses a pre-definedGrammar
to parse theParserToken
s extracted using the pre-definedLexer
.ParserToken A token and its associated metadata extracted via aLexer
TokenExpression UnaryOperatorExpression AnExpression
unary operator which contains a single expression valueValueExpression Generic value expression in which the value is stored using aVal
to support arbitrary types. -
Enum Summary Enum Description CommonTypes A enum of common Parser Token Types. -
Exception Summary Exception Description ParseException Exception class indicating an error in parsing.