|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
R - type of rules.B - type of buffer.T - type of terminals.N - type of non terminals.P - type of productions.public interface ToolsListener<R,B,T,N,P>
| Method Summary | |
|---|---|
void |
accept(N nonTerminal)
Called when the parser accept a start non terminal. |
void |
comment(R rule,
B buffer)
Called when the lexer recognizes a rule tagged as comment. |
void |
reduce(P production)
Called when the parser reduce a production. |
void |
shift(T terminal,
R rule,
B buffer)
Called when the analyzer recognized a terminal. |
| Method Detail |
|---|
void comment(R rule,
B buffer)
rule - the rule recognized by the lexer.buffer - the buffer currently used by the lexer.
void shift(T terminal,
R rule,
B buffer)
terminal - the terminal shifted by the parser.rule - the rule recognized by the lexer.buffer - the buffer currently used by the lexer.LexerListener.ruleVerified(Object, int, Object),
ParserListener.shift(Object)void reduce(P production)
production - production reduced by the parser.void accept(N nonTerminal)
nonTerminal - non terminal accepted by the parser.ParserListener.accept(Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||