* 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:
Paul Eggert
2006-01-03 22:35:45 +00:00
parent 9ae1f0c6a9
commit 5466269793
3 changed files with 19 additions and 8 deletions

View File

@@ -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;