|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.umlv.tatoo.runtime.parser.Action<T,P,V>
T
- type of terminals.P
- type of productions.V
- type of versions.public abstract class Action<T,P,V>
Parser actions (shift/reduce/accept/error) super-class.
ShiftAction
,
ReduceAction
,
AcceptAction
,
ErrorAction
,
EnterAction
,
ExitAction
Constructor Summary | |
---|---|
Action()
|
Method Summary | ||
---|---|---|
abstract
|
doPerform(Parser<T,N,P,V> parser,
T terminal)
Performs necessary computations required by the action. |
|
boolean |
isError(V version)
Indicates if the action is an error. |
|
boolean |
isShift(V version)
Indicates if the action is a shift. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Action()
Method Detail |
---|
public abstract <N> ActionReturn doPerform(Parser<T,N,P,V> parser, T terminal)
N
- type of non-terminals.parser
- the parser object.terminal
- terminal on which the shift is performed.
public boolean isError(V version)
version
- version of the action to consider, see VersionedAction
.
true
if the action is an errror.public boolean isShift(V version)
version
- version of the action to consider, see VersionedAction
.
true
if the action is an shift.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |