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

Udo Stenzel u.stenzel at web.de
Tue Aug 1 17:34:08 EDT 2006

Stephane Bortzmeyer wrote:
> > 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).

Are you sure that you don't actually want

*> many1 letter `sepBy1` comma

?  Just asking, because somehow I have a feeling that the next step is
to accept 'a,c,b'...

The Force is what holds everything together.  It has its dark side, and
it has its light side.  It's sort of like cosmic duct tape.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org//pipermail/haskell-cafe/attachments/20060801/41b80645/attachment.bin

More information about the Haskell-Cafe mailing list