From fff9bf0b8dbe4b426acc5b93c2d1c4b7c8936193 Mon Sep 17 00:00:00 2001 From: Robert Anisko Date: Mon, 4 Mar 2002 17:03:49 +0000 Subject: [PATCH] * src/reader.c: Warn about lacking semi-colons, do not complain. --- ChangeLog | 4 ++++ src/reader.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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 (); } -- 2.45.2