[Haskell-cafe] Re: Parsec is being weird at me

Andrew Coppin andrewcoppin at btinternet.com
Sun Aug 26 04:14:33 EDT 2007


Chris Casinghino wrote:
> On 8/25/07, Chris Casinghino <chris.casinghino at gmail.com> wrote:
>   
>> I'm not sure there is a built in combinator for what you want,
>>
>>     
>
> I guess I should have looked harder.  What you want is manyTill:
>
> "manyTill  :: GenParser tok st a -> GenParser tok st end -> GenParser tok st [a]
>
> (manyTill p end) applies parser p zero or more times until parser end
> succeeds. Returns the list of values returned by p."
>   

Yeah, OK, that looks good...



More information about the Haskell-Cafe mailing list