269 |
{ |
{ |
270 |
length = rule_rhs_length (&rules[r]); |
length = rule_rhs_length (&rules[r]); |
271 |
nritems -= length + 1; |
nritems -= length + 1; |
|
nitems -= length + 1; |
|
272 |
} |
} |
273 |
} |
} |
274 |
} |
} |
382 |
|
|
383 |
fprintf (out, "REDUCED GRAMMAR\n\n"); |
fprintf (out, "REDUCED GRAMMAR\n\n"); |
384 |
fprintf (out, |
fprintf (out, |
385 |
"ntokens = %d, nvars = %d, nsyms = %d, nrules = %d, nitems = %d\n\n", |
"ntokens = %d, nvars = %d, nsyms = %d, nrules = %d, nritems = %d\n\n", |
386 |
ntokens, nvars, nsyms, nrules, nitems); |
ntokens, nvars, nsyms, nrules, nritems); |
387 |
fprintf (out, "Variables\n---------\n\n"); |
fprintf (out, "Variables\n---------\n\n"); |
388 |
fprintf (out, "Value Sprec Sassoc Tag\n"); |
fprintf (out, "Value Sprec Sassoc Tag\n"); |
389 |
for (i = ntokens; i < nsyms; i++) |
for (i = ntokens; i < nsyms; i++) |