[antlr-interest] Preserve source code comments

Terence Parr parrt at cs.usfca.edu
Thu Oct 18 10:28:07 PDT 2012


 This is what hidden channels are for :) 

http://www.antlr.org/wiki/pages/viewpage.action?pageId=557063

T
On Oct 18, 2012, at 10:07 AM, Juancarlo Añez wrote:

> 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.
> 
> TIA,
> 
> -- 
> Juancarlo *Añez*
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address



More information about the antlr-interest mailing list