Package eu.bandm.tscore.base
Class Translet.OrLimesParser<A>
java.lang.Object
eu.bandm.tscore.base.Translet.Parser<R>
eu.bandm.tscore.base.Translet.DisjunctionParser<A>
eu.bandm.tscore.base.Translet.LimesParser<A>
eu.bandm.tscore.base.Translet.OrLimesParser<A>
- Enclosing class:
- Translet
Realizes disjunction which is nondeterministic and returns an upper limit class.
-
Field Summary
Fields inherited from class eu.bandm.tscore.base.Translet.LimesParser
p1, p2, p3, p4
-
Constructor Summary
ConstructorDescriptionOrLimesParser
(Translet.Parser<? extends A> p1, Translet.Parser<? extends A> p2, Translet.Parser<? extends A> p3, Translet.Parser<? extends A> p4) Constructor called by factory methods. -
Method Summary
Modifier and TypeMethodDescriptionname
(boolean full, Map<Translet.Recursive, String> names) Returns a user-readable text representation.parseOneState
(Translet.State<?> inState, Set<Translet.Alternative> alternatives) Try to parse all sub-parsers byTranslet.disj_testOneBranch(DisjunctionParser,Parser,List,int,State,Set,Set)
.Methods inherited from class eu.bandm.tscore.base.Translet.LimesParser
unparse, wrapResult
Methods inherited from class eu.bandm.tscore.base.Translet.Parser
executeStoring, isTerminal, mparse, name, parseEpsilon, stripOpt, toString, toString
-
Constructor Details
-
OrLimesParser
public OrLimesParser(Translet.Parser<? extends A> p1, Translet.Parser<? extends A> p2, Translet.Parser<? extends A> p3, Translet.Parser<? extends A> p4) Constructor called by factory methods.
-
-
Method Details
-
parseOneState
public Set<Translet.State<A>> parseOneState(Translet.State<?> inState, Set<Translet.Alternative> alternatives) Try to parse all sub-parsers byTranslet.disj_testOneBranch(DisjunctionParser,Parser,List,int,State,Set,Set)
. If no single alternative is hit, simply null is returned and a new Alternative is created one level above. If some sub-parsers are not hit, one new Alternative is constructed, joining them to a new disjunction.- Specified by:
parseOneState
in classTranslet.Parser<A>
-
name
Description copied from class:Translet.Parser
Returns a user-readable text representation. This is in most cases, but not always, source text to construct the parser.- Specified by:
name
in classTranslet.Parser<A>
- Parameters:
full
- whether storage constructs do appear in the rendering.names
- a map for managing the renderings of recursive calls
-