|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GrammarMatcher
Interface defining matchers for custom grammatical elements.
GrammarMatchers match syntax elements at the same precedence level as brackets
they can examine the next two tokens in the input using the Lookahead2Iterator
and call the GrammarParser.parseSubExpression()
to parse expression fragments.
Method Summary | |
---|---|
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. |
Method Detail |
---|
Node match(Lookahead2Iterator<Token> it, GrammarParser parser) throws ParseException
it
- An iterator inspecting the inputparser
- the parser to use when evaluating sub expressions
ParseException
- if there is a syntactical error in the input.void init(Jep jep)
jep
- the current jep instance.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |