public abstract static class Translet.CoTupleParser<A,B,C,D> extends Translet.Parser<CoTuple<A,B,C,D>>
CoTuple
(ORn and PRIORn).
Currently maximally four(4) sub-parsers are supported.
CoTuple
.Modifier and Type | Field and Description |
---|---|
protected Translet.Parser<A> |
p1 |
protected Translet.Parser<B> |
p2 |
protected Translet.Parser<C> |
p3 |
protected Translet.Parser<D> |
p4 |
Constructor and Description |
---|
CoTupleParser(Translet.Parser<A> p1,
Translet.Parser<B> p2,
Translet.Parser<C> p3,
Translet.Parser<D> p4)
Constructor called only by sub-class constructors.
|
Modifier and Type | Method and Description |
---|---|
protected CoTuple<A,B,C,D> |
wrapResult(int index,
Translet.State<?> resultState)
Wraps the result of a successful sub-parser into the CoTuple typ.e
|
executeStoring, isTerminal, mparse, name, name, parseEpsilon, parseOneState, stripOpt, toString, toString, unparse
protected Translet.Parser<A> p1
protected Translet.Parser<B> p2
protected Translet.Parser<C> p3
protected Translet.Parser<D> p4
public CoTupleParser(Translet.Parser<A> p1, Translet.Parser<B> p2, Translet.Parser<C> p3, Translet.Parser<D> p4)
protected CoTuple<A,B,C,D> wrapResult(int index, Translet.State<?> resultState)
wrapResult
in class Translet.Parser<CoTuple<A,B,C,D>>
resultState
- the result object to be wrapped