/[bison]/bison/src/parse-gram.y
ViewVC logotype

Diff of /bison/src/parse-gram.y

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.40 by akim, Tue Apr 29 12:57:36 2003 UTC revision 1.41 by eggert, Wed May 14 19:26:16 2003 UTC
# Line 332  grammar: Line 332  grammar:
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"));
# Line 341  rules_or_grammar_declaration: Line 341  rules_or_grammar_declaration:
341      {      {
342        yyerrok;        yyerrok;
343      }      }
 | ";"  
344  ;  ;
345    
346  rules:  rules:
# Line 351  rules: Line 350  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:

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26