[Haskell-cafe] Parsing R5RS Scheme with Parsec

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Tue Oct 2 10:47:41 EDT 2007


On Oct 2, 2007, at 10:36 , Alex Queiroz wrote:

>      This does not work. The parser chokes in parseLeftList, because
> it finds a single dot which is not the beginning of "...".

Sorry, just woke up and still not quite tracking right, so I modified  
the wrong snippet of code.  The trick is to wrap parseLeftList in a  
try, so the parser retries the next alternative when it fails.

-- 
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH




More information about the Haskell-Cafe mailing list