A parser.
Matched results are accumulated while 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
true
.Use many if there is no stop condition.
Use takeWhileP if the stop condition is expressed as a parser.