[antlr-interest] @SuppressWarnings("all")
Greg Clemenson
greg at onvoq.com
Sun Sep 17 11:00:38 PDT 2006
In Antlr 3.0b4 I can't figure out how to get @SuppressWarnings("all")
just before the Parser or Lexer class definition in Java. Putting it
in the @parser::header section doesn't work, since the Java template
inserts additional import statements following the inserted
@SuppressWarnings("all"), causing a Java compile error. I was
thinking there might be some sort of @header::preamble section (also
@lexer::preamble) that could insert such things before the class
declarations. Perhaps there is already a mechanism for doing this,
but I just can't find it?
Thanks,
Greg
More information about the antlr-interest
mailing list