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

Diff of /bison/src/print_graph.c

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

revision 1.37 by akim, Sat Jun 15 18:23:12 2002 UTC revision 1.38 by akim, Sat Jun 15 18:23:50 2002 UTC
# Line 93  print_core (struct obstack *oout, state_ Line 93  print_core (struct obstack *oout, state_
93            /* Look for lookaheads corresponding to this rule. */            /* Look for lookaheads corresponding to this rule. */
94            for (j = 0; j < state->nlookaheads; ++j)            for (j = 0; j < state->nlookaheads; ++j)
95              for (k = 0; k < ntokens; ++k)              for (k = 0; k < ntokens; ++k)
96                if (bitset_test (LA[state->lookaheadsp + j], k)                if (bitset_test (state->lookaheads[j], k)
97                    && LArule[state->lookaheadsp + j]->number == rule)                    && state->lookaheads_rule[j]->number == rule)
98                  nlookaheads++;                  nlookaheads++;
99            if (nlookaheads)            if (nlookaheads)
100              {              {
101                obstack_sgrow (oout, "  [");                obstack_sgrow (oout, "  [");
102                for (j = 0; j < state->nlookaheads; ++j)                for (j = 0; j < state->nlookaheads; ++j)
103                  for (k = 0; k < ntokens; ++k)                  for (k = 0; k < ntokens; ++k)
104                    if (bitset_test (LA[state->lookaheadsp + j], k)                    if (bitset_test (state->lookaheads[j], k)
105                        && LArule[state->lookaheadsp + j]->number == rule)                        && state->lookaheads_rule[j]->number == rule)
106                      obstack_fgrow2 (oout, "%s%s",                      obstack_fgrow2 (oout, "%s%s",
107                                      symbol_tag_get (symbols[k]),                                      symbol_tag_get (symbols[k]),
108                                      --nlookaheads ? ", " : "");                                      --nlookaheads ? ", " : "");

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38

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