[Haskell-cafe] Error recovery in Happy

Stephen Tetley stephen.tetley at gmail.com
Tue Mar 8 16:54:11 CET 2011

I'd join comments in with tokens so each token has a comment -
possibly the empty string, then the parser can decide what to do with
the comment part of token - e.g retaining it for functions, ignoring
it for everything else.

You may have to write a two-pass lexer to do this.

More information about the Haskell-Cafe mailing list