[antlr-interest] Labels Expanded w/in Action Comments
Foust
javafoust at gmail.com
Wed Aug 13 02:29:33 PDT 2008
$references are being expanded within action code comments.
Did this issue get added to the bug database?
I received some responses that this is the intended behavior, but surely you
don't expect people to delete their action code when debugging, rather than
just commenting it out?
The issue here is the line comment (//), since some attribute references
(like 'text') are expanded to several lines, making the resultant code not
compilable.
I'm sure that there are several possible solutions, but one would be to
directly support the C/C++/Java line comment in Antlr, unless turned off by
an option. Another solution would be to allow language specific definition
of line and block comments. Good editors do this.
Brent
More information about the antlr-interest
mailing list