/[bison]/bison/src/gram.c
ViewVC logotype

Diff of /bison/src/gram.c

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

revision 1.20 by akim, Sun Apr 7 17:36:38 2002 UTC revision 1.21 by akim, Sun Apr 7 17:42:12 2002 UTC
# Line 1  Line 1 
1  /* Allocate input grammar variables for bison,  /* Allocate input grammar variables for bison,
2     Copyright 1984, 1986, 1989, 2001, 2002 Free Software Foundation, Inc.     Copyright (C) 1984, 1986, 1989, 2001, 2002 Free Software Foundation, Inc.
3    
4     This file is part of Bison, the GNU Compiler Compiler.     This file is part of Bison, the GNU Compiler Compiler.
5    
# Line 20  Line 20 
20    
21    
22  #include "system.h"  #include "system.h"
23    #include "quotearg.h"
24  #include "gram.h"  #include "gram.h"
25  #include "symtab.h"  #include "symtab.h"
26  #include "reader.h"  #include "reader.h"
# Line 77  ritem_print (FILE *out) Line 78  ritem_print (FILE *out)
78    fputs ("RITEM\n", out);    fputs ("RITEM\n", out);
79    for (i = 0; i < nritems; ++i)    for (i = 0; i < nritems; ++i)
80      if (ritem[i] >= 0)      if (ritem[i] >= 0)
81        fprintf (out, "  %s", symbols[ritem[i]]->tag);        fprintf (out, "  %s", quotearg_style (escape_quoting_style,
82                                                symbols[ritem[i]]->tag));
83      else      else
84        fprintf (out, "  (rule %d)\n", -ritem[i] - 1);        fprintf (out, "  (rule %d)\n", -ritem[i] - 1);
85    fputs ("\n\n", out);    fputs ("\n\n", out);

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

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