[antlr-interest] @SuppressWarnings

Hendrik Maryns qwizv9b02 at sneakemail.com
Sat Feb 7 06:04:50 PST 2009


Op 06-02-09 16:53 heeft Dennis Benzinger Dennis.Benzinger-at-gmx.net
|news.gmane.org| als volgt van zich laten horen:
> Hi Hendrik!
> 
> Am 06.02.2009 16:39, Hendrik Maryns schrieb:
>> Hi all,
>>
>> I’d like to have ANTLR put a @SuppressWarnings("all") at the top of each
>> file it generates, such that I do not see the warnings in the Eclipse
>> Problem view.
>>
>> Any neat way of doing this?
>> [...]
> 
> Try putting that in the @header section in your grammar.

Nope, this leads to

Syntax error on token(s), misplaced construct(s)

since the @header part appears before the imports of the antlr-runtime.

(You get this:

  package de.uni_tuebingen.sfb.lichtenstein.formulas.parsing;

  @SuppressWarnings("all")


import org.antlr.runtime.*;
import java.util.Stack;
import java.util.List;
import java.util.ArrayList;
)

Cheers, H.
-- 
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
www.lieverleven.be
http://catb.org/~esr/faqs/smart-questions.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 257 bytes
Desc: OpenPGP digital signature
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20090207/c9cb765a/attachment.bin 


More information about the antlr-interest mailing list