[Haskell-cafe] Parsing workflow

Erik de Castro Lopo mle+hs at mega-nerd.com
Sun Oct 31 17:50:51 EDT 2010


Nils Schweinsberg 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...

In my experience, try blocks should only be used at the very inner
most parts of the parser. That is avoid wrapping large combinator
functions in try blocks.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


More information about the Haskell-Cafe mailing list