[antlr-interest] Remembering Skipped Tokens
rocket at heddway.com
Thu Mar 1 22:03:18 PST 2007
If I can get this one, I think I'm up and running...
I have set up a token in my lexer for matching whitespace, and set the type
to Token.SKIP to make the parser easier to write. However, in order to
check proper syle, I need to keep whitespace information in my resulting
AST. Is there an easy way to do this, so I don't have to put (WS)* in every
parser rule I write?
I'm enjoying my new challenge (creating a flexible style checker). I hope
to be able to share my results sometime, and maybe you all can provide some
suggestions for improvements.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the antlr-interest