mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-22 10:43:02 +00:00
* src/reader.c: Warn about lacking semi-colons, do not complain.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2002-03-04 Robert Anisko <robert@lrde.epita.fr>
|
||||||
|
|
||||||
|
* src/reader.c: Warn about lacking semi-colons, do not complain.
|
||||||
|
|
||||||
2002-03-04 Robert Anisko <robert@lrde.epita.fr>
|
2002-03-04 Robert Anisko <robert@lrde.epita.fr>
|
||||||
|
|
||||||
* data/bison.c++: Remove a debug line.
|
* data/bison.c++: Remove a debug line.
|
||||||
|
|||||||
@@ -1327,7 +1327,7 @@ readgram (void)
|
|||||||
symval = ssave;
|
symval = ssave;
|
||||||
if (t1 == tok_colon)
|
if (t1 == tok_colon)
|
||||||
{
|
{
|
||||||
complain (_("previous rule lacks an ending `;'"));
|
warn (_("previous rule lacks an ending `;'"));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1446,7 +1446,7 @@ readgram (void)
|
|||||||
else if (!xactions && !first_rhs && lhs->type_name != 0)
|
else if (!xactions && !first_rhs && lhs->type_name != 0)
|
||||||
complain (_("empty rule for typed nonterminal, and no action"));
|
complain (_("empty rule for typed nonterminal, and no action"));
|
||||||
if (t == tok_two_percents || t == tok_eof)
|
if (t == tok_two_percents || t == tok_eof)
|
||||||
complain (_("previous rule lacks an ending `;'"));
|
warn (_("previous rule lacks an ending `;'"));
|
||||||
if (t == tok_semicolon)
|
if (t == tok_semicolon)
|
||||||
t = lex ();
|
t = lex ();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user