public abstract static class Translet.LimesParser<A> extends Translet.Parser<A>
CoTuple
.Modifier and Type | Field and Description |
---|---|
protected Translet.Parser<? extends A> |
p1 |
protected Translet.Parser<? extends A> |
p2 |
protected Translet.Parser<? extends A> |
p3 |
protected Translet.Parser<? extends A> |
p4 |
Constructor and Description |
---|
LimesParser(Translet.Parser<? extends A> p1,
Translet.Parser<? extends A> p2,
Translet.Parser<? extends A> p3,
Translet.Parser<? extends A> p4)
Constructor called only by sub-classs constructors.
|
Modifier and Type | Method and Description |
---|---|
String |
unparse(Object key)
Reverse the parsing process (as far as possible) and deliver a
string representation which when parsed delivered the parse result.
|
protected A |
wrapResult(int index,
Translet.State<?> resultState)
Cast the result of a successful sub-parser to the limes type
|
executeStoring, isTerminal, mparse, name, name, parseEpsilon, parseOneState, stripOpt, toString, toString
protected Translet.Parser<? extends A> p1
protected Translet.Parser<? extends A> p2
protected Translet.Parser<? extends A> p3
protected Translet.Parser<? extends A> p4
public LimesParser(Translet.Parser<? extends A> p1, Translet.Parser<? extends A> p2, Translet.Parser<? extends A> p3, Translet.Parser<? extends A> p4)
public String unparse(Object key)
Translet.Parser
unparse
in class Translet.Parser<A>
protected A wrapResult(int index, Translet.State<?> resultState)
wrapResult
in class Translet.Parser<A>
resultState
- the result object to be wrapped