Module
Text.Parsing.Applicative.Repetition
- Package
- purescript-parsing-repetitionDEPRECATED
- Repository
- markfarrell/purescript-parsing-repetition
#greedy Source
greedy :: forall b f a m. Monad m => Applicative f => Monoid (f b) => ParserT a m b -> ParserT a m (Tuple Int (f b))
Consumes the current input with a parser p
as many times as successful.
Produces a pair of the number of successful repetitions of p
, and the accumulated result.
Not guaranteed to be stack-safe for large input.