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

Type Parameters:
T - type of terminal.
N - type of non-terminal.
All Known Implementing Classes:
AbstractToolsProcessor

public interface ErrorRecoveryListener<T,N>

Parser error recovery listener.

Author:
Remi Forax

Method Summary
 void popNonTerminalOnError(N nonTerminal)
          Notifies listener that error recovery has discarded a non-terminal and that corresponding metadata should be discarded.
 void popTerminalOnError(T terminal)
          Notifies listener that error recovery has discarded a terminal and that corresponding metadata should be discarded.
 

Method Detail

popNonTerminalOnError

void popNonTerminalOnError(N nonTerminal)
Notifies listener that error recovery has discarded a non-terminal and that corresponding metadata should be discarded.

Parameters:
nonTerminal - the non-terminal.

popTerminalOnError

void popTerminalOnError(T terminal)
Notifies listener that error recovery has discarded a terminal and that corresponding metadata should be discarded.

Parameters:
terminal - the terminal.