[Haskell-cafe] followedBy parser in Parsec

Stephan Friedrichs deduktionstheorem at web.de
Thu Nov 27 13:37:28 EST 2008

Paul Keir wrote:
> Is there a way in Parsec to check what the next token is, and if it is
> what you're hoping for, leave it there.

Maybe you're looking for 'lookAhead'?

> [...]



Früher hieß es ja: Ich denke, also bin ich.
Heute weiß man: Es geht auch so.

 - Dieter Nuhr

More information about the Haskell-Cafe mailing list