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 |
|
|
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" |
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); |