
26 Mar
2008
26 Mar
'08
7:47 a.m.
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?