fr.umlv.tatoo.runtime.parser
Interface ParserListener<T,N,P>

Type Parameters:
T - type of terminals.
N - type of non terminals.
P - type of productions.
All Known Implementing Classes:
AbstractToolsProcessor

public interface ParserListener<T,N,P>

Parser action listener.

Author:
Julien Cervelle
See Also:
ErrorRecoveryListener, BranchingParserListener

Method Summary
 void accept(N nonTerminal)
          Notifies that the accept action is performed by the parser on the start non terminaL.
 void reduce(P production)
          Notifies that a reduce action is performed by the parser.
 void shift(T terminal)
          Notifies that a shift action is performed by the parser.
 

Method Detail

shift

void shift(T terminal)
Notifies that a shift action is performed by the parser.

Parameters:
terminal - shifted terminal.

reduce

void reduce(P production)
Notifies that a reduce action is performed by the parser.

Parameters:
production - reduced production.

accept

void accept(N nonTerminal)
Notifies that the accept action is performed by the parser on the start non terminaL.

Parameters:
nonTerminal - accepted non terminal.