mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-10-24 08:28:12 +00:00
* tests/input.at (Invalid $n, Invalid @n): Add the ending `;'.
* tests/output.at (AT_CHECK_OUTPUT): Likewise. * tests/headers.at (AT_TEST_CPP_GUARD_H): Ditto. * tests/semantic.at (Parsing Guards): Similarly. * src/reader.at (readgram): Complain if the last rule is not ended with a semi-colon.
This commit is contained in:
1 parent
65ccf9fc1d
commit
bfcf1f3af0
7 files changed
+20
-7
No files matched your search
@@ -1445,6 +1445,8 @@ readgram (void)
|
||||
/* Warn if there is no default for $$ but we need one. */
|
||||
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 `;'"));
|
||||
if (t == tok_semicolon)
|
||||
t = lex ();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user