16 May 21:39
Re: Proving my point
From: Philippa Cowderoy <flippa <at> flippac.org>
Subject: Re: Proving my point
Newsgroups: gmane.comp.lang.haskell.cafe
Date: 2008-05-16 19:39:53 GMT
Subject: Re: Proving my point
Newsgroups: gmane.comp.lang.haskell.cafe
Date: 2008-05-16 19:39:53 GMT
On Fri, 16 May 2008, Achim Schneider wrote:
> "test.l" (line 7, column 1):
> unexpected end of input
> expecting "(", Lambda abstraction, Let binding, Atom, end of input or
> Function application
>
> I obviously don't know anything about Parsec's inner workings. I'm
> going to investigate as soon as I stopped despairing.
>
One gotcha here, which really wants fixing: if the show instance for your
token type returns "", Parsec assumes that's EOF for error purposes. Guess
who ran into that with a separate token for layout-inserted braces?
--
--
flippa <at> flippac.org
Sometimes you gotta fight fire with fire. Most
of the time you just get burnt worse though.
RSS Feed