ChoiceParser, SequenceParserpublic abstract class ListParser extends Parser
| Constructor | Description |
|---|---|
ListParser(Parser... parsers) |
| Modifier and Type | Method | Description |
|---|---|---|
List<Parser> |
getChildren() |
Returns a list of directly referring parsers.
|
void |
replace(Parser source,
Parser target) |
Replaces the referring parser
source with target. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, and, callCC, copy, delimitedBy, end, end, flatten, hasEqualChildren, hasEqualProperties, isEqualTo, isEqualTo, map, matches, matchesSkipping, neg, neg, not, not, optional, optional, or, parse, parseOn, permute, pick, plus, plusGreedy, plusLazy, repeat, repeatGreedy, repeatLazy, separatedBy, seq, settable, star, starGreedy, starLazy, times, token, toString, trim, trim, trimprotected final Parser[] parsers
public ListParser(Parser... parsers)
public void replace(Parser source, Parser target)
Parsersource with target. Does nothing if the parser
does not exist.public List<Parser> getChildren()
ParsergetChildren in class ParserCopyright © 2018 PetitParser. All rights reserved.