Module
Text.Parsing.Applicative.Repetition
- Package
- purescript-parsing-repetitionDEPRECATED
- Repository
- markfarrell/purescript-parsing-repetition
#greedy Source
greedy :: forall m a f b. 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.
#many1 Source
many1 :: forall m a f b. Monad m => Applicative f => Monoid (f b) => ParserT a m b -> ParserT a m (f b)
Consumes the current input with a parser p
as many times as successful, with at least one occurrence of p
.
Produces the accumulated result, without the guarantee of being stack-safe for large input.