mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-10 21:03:04 +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>
|
||||
|
||||
* data/bison.c++: Remove a debug line.
|
||||
|
||||
@@ -1327,7 +1327,7 @@ readgram (void)
|
||||
symval = ssave;
|
||||
if (t1 == tok_colon)
|
||||
{
|
||||
complain (_("previous rule lacks an ending `;'"));
|
||||
warn (_("previous rule lacks an ending `;'"));
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1446,7 +1446,7 @@ readgram (void)
|
||||
else if (!xactions && !first_rhs && lhs->type_name != 0)
|
||||
complain (_("empty rule for typed nonterminal, and no action"));
|
||||
if (t == tok_two_percents || t == tok_eof)
|
||||
complain (_("previous rule lacks an ending `;'"));
|
||||
warn (_("previous rule lacks an ending `;'"));
|
||||
if (t == tok_semicolon)
|
||||
t = lex ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user