[Haskell-cafe] Re: [Parsec] Backtracking with try does not work for me?

Stephane Bortzmeyer bortzmeyer at nic.fr
Tue Aug 1 16:08:16 EDT 2006


On Tue, Aug 01, 2006 at 09:41:40AM +0100,
 Chris Kuklewicz <haskell at list.mightyreason.com> wrote 
 a message of 105 lines which said:

> The problem is mentioned here:
> 
> http://www.cs.uu.nl/people/daan/download/parsec/parsec.html#notFollowedBy

notFollowedBy seems to work for me and is quite simple, even for my
brain. Thanks.

> The first would be to test whether "bb" is followed by "eof" or
> "comma" before accepting it.

notFollowedBy actually does the opposite (checking that there are no
more letters).



More information about the Haskell-Cafe mailing list