public class SequenceParser extends ListParser
parsers| Constructor | Description |
|---|---|
SequenceParser(Parser... parsers) |
| Modifier and Type | Method | Description |
|---|---|---|
SequenceParser |
copy() |
Returns a shallow copy of the receiver.
|
Result |
parseOn(Context context) |
Primitive method doing the actual parsing.
|
SequenceParser |
seq(Parser... others) |
Returns a parser that accepts the receiver followed by
others. |
getChildren, replaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, and, callCC, delimitedBy, end, end, flatten, hasEqualChildren, hasEqualProperties, isEqualTo, isEqualTo, map, matches, matchesSkipping, neg, neg, not, not, optional, optional, or, parse, permute, pick, plus, plusGreedy, plusLazy, repeat, repeatGreedy, repeatLazy, separatedBy, settable, star, starGreedy, starLazy, times, token, toString, trim, trim, trimpublic SequenceParser(Parser... parsers)
public Result parseOn(Context context)
Parserpublic SequenceParser seq(Parser... others)
Parserothers. The resulting parser
returns a list of the parse result of the receiver followed by the parse result of
others. Calling this method on an existing sequence code not nest this sequence into a new one,
but instead augments the existing sequence with others.public SequenceParser copy()
ParserCopyright © 2018 PetitParser. All rights reserved.