fr.umlv.tatoo.runtime.parser
Class AcceptAction<T,P,V>
java.lang.Object
fr.umlv.tatoo.runtime.parser.Action<T,P,V>
fr.umlv.tatoo.runtime.parser.AcceptAction<T,P,V>
- Type Parameters:
T
- type of terminals.P
- type of productions.V
- type of versions.
public class AcceptAction<T,P,V>
- extends Action<T,P,V>
Accept action class.
- Author:
- Julien Cervelle
doPerform
public <N> ActionReturn doPerform(Parser<T,N,P,V> parser,
T terminal)
- Description copied from class:
Action
- Performs necessary computations required by the action.
- Specified by:
doPerform
in class Action<T,P,V>
- Type Parameters:
N
- type of non-terminals.- Parameters:
parser
- the parser object.terminal
- terminal on which the shift is performed.
- Returns:
- NEXT if action consumed terminal, and KEEP else.
toString
public String toString()
- Overrides:
toString
in class Object
getInstance
public static <T,P,V> AcceptAction<T,P,V> getInstance()
- Returns the singleton instance of accept action.
- Type Parameters:
T
- type of terminals.P
- type of productions.V
- type of versions.
- Returns:
- the singleton instance of accept action.