[Haskell-cafe] Overlaping Parsec rules

Christian Maeder Christian.Maeder at dfki.de
Mon Mar 7 14:33:22 CET 2011

Am 07.03.2011 14:20, schrieb Stephen Tetley:
> Hi Klaus
> Unless you have very specific white-space considerations, you really
> want to be using Parsec's Token and LanguageDef modules.

Well, I would want to use Parsec's Token and LanguageDef modules just to
get the white spaces (and comments to be ignored) right.

Simply skip spaces and comments after every lexical token (by your own
wrapper function like "Text.ParserCombinators.Parsec.Token.lexeme").


> There are examples in the "legacy" Parsec 2.0 distribution available
> from Daan Leijen's old website:
> http://legacy.cs.uu.nl/daan/parsec.html
> Best wishes
> Stephen

More information about the Haskell-Cafe mailing list