[Haskell-cafe] Re: Parsec is being weird at me
Andrew Coppin
andrewcoppin at btinternet.com
Sun Aug 26 04:14:05 EDT 2007
Chris Casinghino wrote:
> On 8/25/07, Andrew Coppin <andrewcoppin at btinternet.com> wrote:
>
>>
>> I thought the whole *purpose* of the endBy combinator was to keep
>> applying one parser until the other one succeeds?
>>
>
>
> I don't think this is a lookahead problem, but rather just a
> misreading of the spec of endBy. Here it is:
>
> (endBy p sep) parses zero or more occurrences of p, seperated and
> ended by sep. Returns a list of values returned by p.
>
> The key text is "seperated and ended by sep". Not just ended by.
>
...so then what does sepEndBy do?
More information about the Haskell-Cafe
mailing list