
26 Aug
2007
26 Aug
'07
4:14 a.m.
Chris Casinghino wrote:
On 8/25/07, Andrew Coppin
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?