[antlr-interest] Preserving comments

Vitaliy Vitaliy at dbsophic.com
Thu Aug 14 07:18:23 PDT 2008


Hi Brent,



Unfortunately the actions must be context sensitive.

What's the best way to tackle this practically?



Thanks so much for your help!



Vitaliy



From: Brent Yates [mailto:brent.yates at gmail.com]
Sent: Wednesday, August 13, 2008 18:34
To: Vitaliy
Cc: antlr-interest at antlr.org
Subject: Re: [antlr-interest] Preserving comments



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



__________ Information from ESET NOD32 Antivirus, version of virus signature database 3353 (20080813) __________



The message was checked by ESET NOD32 Antivirus.



http://www.eset.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080814/6ac221d5/attachment.html 


More information about the antlr-interest mailing list