[Haskell-cafe] Parsing workflow
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe