[Haskell-cafe] No newlines in the whitespace for Parsec lexeme
parsers
Andrew Coppin
andrewcoppin at btinternet.com
Wed Mar 26 07:47:09 EDT 2008
Paul Keir wrote:
>
> Hi,
>
> I'm looking to parse a Fortran dialect using Parsec, and was hoping to
> use the ParsecToken module. Fortran though is unlike the Parsec
> examples, and prohibits default line continuation (requiring instead
> an explicit ampersand token &). The lexical parsers of the ParsecToken
> module skip whitespace after each symbol parsed (lexeme parsers);
> including the newline.
>
If you mean Text.ParserCombinators.Parsec.Token, can't you just change
the setting of whiteSpace in TokenParser?
More information about the Haskell-Cafe
mailing list