public class ListGrammarMatcher extends java.lang.Object implements GrammarMatcher
Constructor and Description |
---|
ListGrammarMatcher(Token open,
Token close,
Token comma)
Create a ListGrammarMatcher
|
Modifier and Type | Method and Description |
---|---|
void |
init(Jep jep)
Delayed initialisation, this methods is called whenever components of the jep instance are changed.
|
Node |
match(Lookahead2Iterator<Token> it,
GrammarParser parser)
Test whether the input matches this pattern.
|
public void init(Jep jep)
GrammarMatcher
init
in interface GrammarMatcher
jep
- the current jep instance.public Node match(Lookahead2Iterator<Token> it, GrammarParser parser) throws ParseException
GrammarMatcher
match
in interface GrammarMatcher
it
- An iterator inspecting the inputparser
- the parser to use when evaluating sub expressionsParseException
- if there is a syntactical error in the input.Copyright © 2018 Singular Systems http://www.singularsys.com/jep