[antlr-interest] Remembering Skipped Tokens

jason heddings rocket at heddway.com
Thu Mar 1 22:03:18 PST 2007


Hello again-
 
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.
 
--jah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070301/288b4edb/attachment.html 


More information about the antlr-interest mailing list