Chris Casinghino wrote:
On 8/25/07, Andrew Coppin <[EMAIL PROTECTED]> 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?

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to