/[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.17 by akim, Sun Jun 30 17:27:57 2002 UTC revision 1.18 by akim, Tue Jul 9 14:48:01 2002 UTC
# Line 30  Line 30 
30    
31  %{  %{
32  #include "system.h"  #include "system.h"
33    #include "complain.h"
34  #include "muscle_tab.h"  #include "muscle_tab.h"
35  #include "files.h"  #include "files.h"
36  #include "getargs.h"  #include "getargs.h"
# Line 338  grammar: Line 339  grammar:
339  rules_or_grammar_declaration:  rules_or_grammar_declaration:
340    rules    rules
341  | grammar_declaration ";"  | grammar_declaration ";"
342        {
343          if (yacc_flag)
344            complain_at (@$, _("POSIX forbids declarations in the grammar"));
345        }
346    | error ";"
347        {
348          yyerrok;
349        }
350  ;  ;
351    
352  rules:  rules:
# Line 453  void Line 462  void
462  gram_error (gram_control_t *control ATTRIBUTE_UNUSED,  gram_error (gram_control_t *control ATTRIBUTE_UNUSED,
463              location_t *yylloc, const char *msg)              location_t *yylloc, const char *msg)
464  {  {
465    LOCATION_PRINT (stderr, *yylloc);    complain_at (*yylloc, "%s", msg);
   fprintf (stderr, ": %s\n", msg);  
466  }  }

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

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