mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 21:33:04 +00:00
* doc/bison.texinfo (Bison Options): Say more accurately what
--yacc does. * src/parse-gram.y (rules_or_grammar_declaration): Don't complain about declarations in the grammar when in Yacc mode, as POSIX does not require a diagnostic when the grammar uses extensions.
This commit is contained in:
@@ -391,10 +391,6 @@ grammar:
|
||||
rules_or_grammar_declaration:
|
||||
rules
|
||||
| grammar_declaration ";"
|
||||
{
|
||||
if (yacc_flag)
|
||||
complain_at (@$, _("POSIX forbids declarations in the grammar"));
|
||||
}
|
||||
| error ";"
|
||||
{
|
||||
yyerrok;
|
||||
|
||||
Reference in New Issue
Block a user