hi,

I was using Antlr-3.1 to build a small language and the lexer and parser
Antlr generated contained some warnings such as never used local variables
or never used imported classes. So I decided to use the
@SuppressWarnings() construct to suppress all these warnings. But I had
difficulty finding a place in the grammar file to add this construct. I
tried to add them in the @header {} block, but the @SuppressWarnings()
will appear right after the package header in the generated parser and
causes a syntax error. If I added the construct in the @members {} block,
the construct doesn't have any effect. Actually, the construct should be
added after the imports but before the class declarations. Is there a way
in Antlr so that I can insert this construct to the right place? Thank you
very much!

Regards,
Yi

-- 



List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

--

You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.


Reply via email to