This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bison1.34 warnings for parse.y
- From: Florian Krohm <florian at edamail dot fishkill dot ibm dot com>
- To: pcarlini at unitus dot it (Paolo Carlini)
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 20 Mar 2002 20:00:36 -0500 (EST)
- Subject: Re: Bison1.34 warnings for parse.y
>From the bison-1.34 NEWS file:
* A missing `;' ending a rule triggers a warning
In accordance with POSIX, and in agreement with other
Yacc implementations, Bison will mandate this semicolon in a near
future. This eases the implementation of a Bison parser of Bison
grammars by making this grammar LALR(1) instead of LR(2). To
facilitate the transition, this release introduces a warning.
So, yes, it's right.
Florian
>
> Hi all,
>
> just noticed that bison1.34 emits the following warnings for parse.y:
>
> parse.y:600: warning: previous rule lacks an ending `;'
> parse.y:649: warning: previous rule lacks an ending `;'
> parse.y:1046: warning: previous rule lacks an ending `;'
> parse.y:1053: warning: previous rule lacks an ending `;'
> parse.y:1069: warning: previous rule lacks an ending `;'
> parse.y:1084: warning: previous rule lacks an ending `;'
> parse.y:1503: warning: previous rule lacks an ending `;'
> parse.y:2192: warning: previous rule lacks an ending `;'
> parse.y:2253: warning: previous rule lacks an ending `;'
> parse.y:2686: warning: previous rule lacks an ending `;'
>
> Is it right?
>
> Ciao, Paolo.
>
>
>