Package eu.bandm.tscore.base
Class Translet.DisjunctionParser<R>
java.lang.Object
eu.bandm.tscore.base.Translet.Parser<R>
eu.bandm.tscore.base.Translet.DisjunctionParser<R>
- Type Parameters:
R
- the result type of the parser, either aCoTuple
or a limes.
- Direct Known Subclasses:
Translet.CoTupleParser
,Translet.LimesParser
- Enclosing class:
- Translet
Common superclass for Parsers which accept one of many alternatives.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract R
wrapResult
(int index, Translet.State<?> resultState) Wrap the result of a disjunction, either by creating an instance of a subclass ofCoTuple
, or by casting it up into the limes class.Methods inherited from class eu.bandm.tscore.base.Translet.Parser
executeStoring, isTerminal, mparse, name, name, parseEpsilon, parseOneState, stripOpt, toString, toString, unparse
-
Constructor Details
-
DisjunctionParser
public DisjunctionParser()
-
-
Method Details
-
wrapResult
Wrap the result of a disjunction, either by creating an instance of a subclass ofCoTuple
, or by casting it up into the limes class.- Parameters:
index
- the index of the accepted variantresultState
- the result object to be wrapped
-