Handling whitespace with parser combinator parsers

Manuel M. T. Chakravarty chak@cse.unsw.edu.au
Thu, 22 Nov 2001 19:41:23 +1100


"Herman Graal" <herman_graal@europe.com> wrote,

> Is there any good alternatives to having to "sprinkle" whitespace parsers all over a parser implemented with parser combinators?
> 
> It kind of decreases the readability... ;-)
> 
> I'm interested in any ideas. Would like a full picture of the different solutions out there?
> 
> Are people actually doing both lexing and parsing in the same framework? If so, how do you handle whitespace?

  http://www.cse.unsw.edu.au/~chak/haskell/ctk/index.html#CTKlight

includes both lexer and parser combinators.

Cheers,
Manuel