bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: {maint} yacc.c: initialize yylval in pure-parser mode


From: Paul Eggert
Subject: Re: {maint} yacc.c: initialize yylval in pure-parser mode
Date: Sat, 01 Sep 2012 06:26:53 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0

On 09/01/2012 02:26 AM, Akim Demaille wrote:
> If one writes a parser that does not manipulate semantic
> values, these warnings are legitimate from the point
> of view of the compiler, but do not help and are not
> legitimate from the point of view of the Bison user.

This is the key point, I expect.

So why don't we modify Bison so that, if one writes
a parser like that, the generated parser doesn't
use yylval or semantic values at all?  That way,
the warnings will continue to be useful, and we
won't need to add this useless initialization
to the code.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]