[antlr-interest] comments in translation

Adrian Mihalcea adrian.mihalcea at gmail.com
Wed Jul 20 23:42:51 PDT 2005


Hi all

I'm trying to build a translator that deals also with original
comments in the input language. Is it possible to pass the comments to
the next or previous token instead of just throwing them away with
SKIP? Is there a special token kind or something?

There is probably an easy well known way to do this and I would
welcome a pointer to the right place in the documentation even though
a straight hint will be very appreciated.

Thank you for the time,
Adrian


More information about the antlr-interest mailing list