Bison1.34 warnings for parse.y
Florian Krohm
florian@edamail.fishkill.ibm.com
Wed Mar 20 17:25:00 GMT 2002
>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.
>
>
>
More information about the Gcc
mailing list