
23 Nov
2008
23 Nov
'08
4:47 a.m.
On Sat, Nov 22, 2008 at 9:46 AM, Changying Li
Hi. I read 'write yourself a scheme in 48 hours' and try to modify its code. now part of code is :
parseList :: Parser LispVal parseList = liftM List $ sepEndBy parseExpr spaces
<|> do char '(' skipMany space x <- (try parseList) <|> parseDottedList char ')' return x
parseList is succeeding and returning (1); then "char ')'" is failing (because the next character in the input is the '.' -- ryan