[antlr-interest] grammar inheritance & warnings

Terence Parr parrt at cs.usfca.edu
Wed May 25 09:56:38 PDT 2005


On May 25, 2005, at 12:45 AM, Ric Klaren wrote:

> 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.

In v3 those warnings are not issued.  They are truly annoying.

Ter



More information about the antlr-interest mailing list