A parser.
Matched results are accumulated until the result of this function is true
.
Current value matched by the parser.
Number of matches so far (including the current value).
Data object (tokens and options).
Parser position in the tokens array (before the current value matched).
Parser position in the tokens array (after the current value matched).
Generated using TypeDoc
Make a Matcher that returns all (0 or more) sequential matches of the same given parser while the test function equates to
false
(that is until it equates totrue
for the first time).Use many if there is no stop condition.
Use takeUntilP if the stop condition is expressed as a parser.
Implementation is based on takeWhile.