[antlr-interest] grammar inheritance & warnings
Lloyd Dupont
lloyd at nova-mind.com
Wed May 25 15:37:18 PDT 2005
speaking of v3.
where and when could we get it?
----- Original Message -----
From: "Terence Parr" <parrt at cs.usfca.edu>
To: "ANTLR Interest" <antlr-interest at antlr.org>
Sent: Thursday, May 26, 2005 2:56 AM
Subject: Re: [antlr-interest] grammar inheritance & warnings
>
> 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