[Haskell-cafe] Parsing workflow

Ozgur Akgun ozgurakgun at gmail.com
Sun Oct 31 12:23:10 EDT 2010


On 31 October 2010 16:15, Nils Schweinsberg <ml at n-sch.de> wrote:

> This is exactly what gives me headaches. It's hard to tell where you need
> try/lookAhead and where you don't need them. And I don't really feel
> comfortable wrapping everything into try blocks...


I always thought this was an obvious decision: when combining 2 parsers `a`
 and `b` (i.e. a <|> b), if parser `a` fails without consuming any input do
not wrap it in a try, otherwise do.

Am I missing something?

Ozgur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20101031/b13f0821/attachment.html


More information about the Haskell-Cafe mailing list