fr.umlv.tatoo.runtime.tools.builder
Class Builder.ParserTableBuilder<T,N,P,V>

java.lang.Object
  extended by fr.umlv.tatoo.runtime.tools.builder.Builder.ParserTableBuilder<T,N,P,V>
Type Parameters:
T - type of terminals.
N - type of non-terminals.
P - type of productions.
V - type of versions.
Enclosing class:
Builder

public static class Builder.ParserTableBuilder<T,N,P,V>
extends Object

Parser builder that is able to configure a parser listener.


Method Summary
 Builder.ParserBuilder<T,N,P,V> debugListener()
          Set a debug listener that will trace all calls to parser listener.
 Builder.ParserBuilder<T,N,P,V> listener(ParserListener<? super T,? super N,? super P> listener)
          Set the parser listener wich will be called by the parser when a token is shifted, a production is reduced or a start non terminal is accepted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

debugListener

public Builder.ParserBuilder<T,N,P,V> debugListener()
Set a debug listener that will trace all calls to parser listener. This method is for debugging purpose only.

Returns:
a parser builder

listener

public Builder.ParserBuilder<T,N,P,V> listener(ParserListener<? super T,? super N,? super P> listener)
Set the parser listener wich will be called by the parser when a token is shifted, a production is reduced or a start non terminal is accepted.

Parameters:
listener - a parser listener
Returns:
a parser builder