public interface GrammarParser
GrammarMatcher
Modifier and Type | Method and Description |
---|---|
Node |
parse(java.util.Iterator<Token> it)
Main entry point used by the ConfigurableParser
|
Node |
parsePrefixSuffix()
Callback function used by GrammerMatchers where the matcher expects
a simple number, variable, or function call with optional, prefix or suffix operator.
|
Node |
parseSubExpression()
Parse sub expressions.
|
void |
setIterator(Lookahead2Iterator<Token> it)
Set the iterator used by the
parseSubExpression() |
Node parse(java.util.Iterator<Token> it) throws ParseException
it
- iterator with the list of tokensParseException
- if the input cannot be parsedNode parseSubExpression() throws ParseException
GrammarMatcher
to parse sub expressions, for instance to parse function arguments.ParseException
- if the input cannot be parsedNode parsePrefixSuffix() throws ParseException
ParseException
- if the input cannot be parsedvoid setIterator(Lookahead2Iterator<Token> it)
parseSubExpression()
it
- the iteratorCopyright © 2018 Singular Systems http://www.singularsys.com/jep