[antlr-interest] Preserve source code comments

Juancarlo Añez apalala at gmail.com
Thu Oct 18 10:07:45 PDT 2012

I know this question has been asked before, but the threads about it are
old and inconclusive.

I need to associate source code comments with the nearest parsed token.
Everything else I need to do I can do post-parsing.

Could I get away with using a custom token type that grabs the nearest
comment on its constructor?

All I need is a basic recipe.


Juancarlo *Añez*

More information about the antlr-interest mailing list