[antlr-interest] Preserving comments

Brent Yates brent.yates at gmail.com
Wed Aug 13 09:33:32 PDT 2008


Vitaliy,

Are the comment actions specific to the context they are detected in?  Is
so, then you may have issues (beyond parsing) in associating the comments
with the appropriate language structures.  There are many academic papers
which discuss this difficult problem.

On the other hand, if the comment actions are not context sensitive, then
you should be able to add the action to the comment rule and still mark the
comment as hidden so that it doesn't mess up your other rules.

Brent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080813/21b8d1ba/attachment.html 


More information about the antlr-interest mailing list