public static class Translet.FramedParser<A> extends Translet.Parser<A>
Translet.State
object, discarding the frame.Modifier and Type | Field and Description |
---|---|
protected Translet.Parser<A> |
p1
The central parser, result of which will become the result of this.
|
protected Translet.Parser<?> |
sep0
The left frame subparser.
|
protected Translet.Parser<?> |
sep1
The right frame subparser.
|
Constructor and Description |
---|
FramedParser(Translet.Parser<?> sep0,
Translet.Parser<A> p1,
Translet.Parser<?> sep1) |
Modifier and Type | Method and Description |
---|---|
Format |
name(boolean full,
Map<Translet.Recursive,String> names)
Returns a user-readable text representation.
|
Set<Translet.State<A>> |
parseOneState(Translet.State<?> inState,
Set<Translet.Alternative> alternatives)
Calculate a set of possible successor states by applying this parser
to the incoming state and append all altenatives found underways to
the parameter "alternatives".
|
String |
unparse(Object key)
Reverse the parsing process (as far as possible) and deliver a
string representation which when parsed delivered the parse result.
|
executeStoring, isTerminal, mparse, name, parseEpsilon, stripOpt, toString, toString, wrapResult
protected Translet.Parser<?> sep0
protected Translet.Parser<A> p1
protected Translet.Parser<?> sep1
public FramedParser(Translet.Parser<?> sep0, Translet.Parser<A> p1, Translet.Parser<?> sep1)
public String unparse(Object key)
Translet.Parser
unparse
in class Translet.Parser<A>
public Set<Translet.State<A>> parseOneState(Translet.State<?> inState, Set<Translet.Alternative> alternatives)
Translet.Parser
parseOneState
in class Translet.Parser<A>
public Format name(boolean full, Map<Translet.Recursive,String> names)
Translet.Parser
name
in class Translet.Parser<A>
full
- whether storage constructs do appear in the rendering.names
- a map for managing the renderings of recursive calls