From: Robert Anisko Date: Mon, 4 Mar 2002 17:03:49 +0000 (+0000) Subject: * src/reader.c: Warn about lacking semi-colons, do not complain. X-Git-Tag: BISON-1_49a~110 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/fff9bf0b8dbe4b426acc5b93c2d1c4b7c8936193?hp=64dba31e7fe5ce7864fd4bf72633271c6076b6d4 * src/reader.c: Warn about lacking semi-colons, do not complain. --- diff --git a/ChangeLog b/ChangeLog index 8e13e58c..14f4ce69 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-03-04 Robert Anisko + + * src/reader.c: Warn about lacking semi-colons, do not complain. + 2002-03-04 Robert Anisko * data/bison.c++: Remove a debug line. diff --git a/src/reader.c b/src/reader.c index ce9c34f0..b23f0101 100644 --- a/src/reader.c +++ b/src/reader.c @@ -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 (); }