[antlr-interest] grammar inheritance & warnings

Ric Klaren ric.klaren at gmail.com
Wed May 25 00:45:09 PDT 2005


Hi,

On 5/25/05, stefan <stefan at amiq.ro> wrote:
>      I have two grammars, let's say A & B like :
> 
> A extends TreeParser;
> ...................
> B extends A; // it only modifies existing rules
> ...................
> 
>      In the generation phase I get a lot of messages like:
> 
> [antlr] /path/to/expandedB.g:1319:33: warning:Rule 'some_rule' returns a
> value.
> 
>      Is there a way to turn off all those messages?

Other than adding dummy assignments no.

Cheers,

Ric


More information about the antlr-interest mailing list