332 |
body of the grammar. */ |
body of the grammar. */ |
333 |
rules_or_grammar_declaration: |
rules_or_grammar_declaration: |
334 |
rules |
rules |
335 |
| grammar_declaration |
| grammar_declaration ";" |
336 |
{ |
{ |
337 |
if (yacc_flag) |
if (yacc_flag) |
338 |
complain_at (@$, _("POSIX forbids declarations in the grammar")); |
complain_at (@$, _("POSIX forbids declarations in the grammar")); |
341 |
{ |
{ |
342 |
yyerrok; |
yyerrok; |
343 |
} |
} |
|
| ";" |
|
344 |
; |
; |
345 |
|
|
346 |
rules: |
rules: |
350 |
rhses.1: |
rhses.1: |
351 |
rhs { grammar_rule_end (@1); } |
rhs { grammar_rule_end (@1); } |
352 |
| rhses.1 "|" rhs { grammar_rule_end (@3); } |
| rhses.1 "|" rhs { grammar_rule_end (@3); } |
353 |
|
| rhses.1 ";" |
354 |
; |
; |
355 |
|
|
356 |
rhs: |
rhs: |