GreedyRepeatingParser, LazyRepeatingParserpublic abstract class LimitedRepeatingParser extends RepeatingParser
| Modifier and Type | Field | Description |
|---|---|---|
protected Parser |
limit |
delegatemax, min, UNBOUNDED| Constructor | Description |
|---|---|
LimitedRepeatingParser(Parser delegate,
Parser limit,
int min,
int max) |
| 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. |
copy, parseOnclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, and, callCC, delimitedBy, end, end, flatten, hasEqualChildren, isEqualTo, isEqualTo, map, matches, matchesSkipping, neg, neg, not, not, optional, optional, or, parse, permute, pick, plus, plusGreedy, plusLazy, repeat, repeatGreedy, repeatLazy, separatedBy, seq, settable, star, starGreedy, starLazy, times, token, trim, trim, trimhasEqualProperties, toStringprotected Parser limit
public List<Parser> getChildren()
ParsergetChildren in class DelegateParserpublic void replace(Parser source, Parser target)
Parsersource with target. Does nothing if the parser
does not exist.replace in class DelegateParserCopyright © 2018 PetitParser. All rights reserved.