
31 Oct
2010
31 Oct
'10
12:23 p.m.
On 31 October 2010 16:15, Nils Schweinsberg
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