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

Diff of /bison/src/LR0.c

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

revision 1.75 by akim, Sun Jun 30 17:33:37 2002 UTC revision 1.76 by akim, Sun Jun 30 17:34:52 2002 UTC
# Line 196  new_state (symbol_number_t symbol, size_ Line 196  new_state (symbol_number_t symbol, size_
196    
197    if (trace_flag)    if (trace_flag)
198      fprintf (stderr, "Entering new_state, state = %d, symbol = %d (%s)\n",      fprintf (stderr, "Entering new_state, state = %d, symbol = %d (%s)\n",
199               nstates, symbol, symbol_tag_get (symbols[symbol]));               nstates, symbol, symbols[symbol]->tag);
200    
201    res = state_new (symbol, core_size, core);    res = state_new (symbol, core_size, core);
202    state_hash_insert (res);    state_hash_insert (res);
# Line 224  get_state (symbol_number_t symbol, size_ Line 224  get_state (symbol_number_t symbol, size_
224    
225    if (trace_flag)    if (trace_flag)
226      fprintf (stderr, "Entering get_state, symbol = %d (%s)\n",      fprintf (stderr, "Entering get_state, symbol = %d (%s)\n",
227               symbol, symbol_tag_get (symbols[symbol]));               symbol, symbols[symbol]->tag);
228    
229    sp = state_hash_lookup (core_size, core);    sp = state_hash_lookup (core_size, core);
230    if (!sp)    if (!sp)
# Line 372  generate_states (void) Line 372  generate_states (void)
372        if (trace_flag)        if (trace_flag)
373          fprintf (stderr, "Processing state %d (reached by %s)\n",          fprintf (stderr, "Processing state %d (reached by %s)\n",
374                   state->number,                   state->number,
375                   symbol_tag_get (symbols[state->accessing_symbol]));                   symbols[state->accessing_symbol]->tag);
376        /* Set up ruleset and itemset for the transitions out of this        /* Set up ruleset and itemset for the transitions out of this
377           state.  ruleset gets a 1 bit for each rule that could reduce           state.  ruleset gets a 1 bit for each rule that could reduce
378           now.  itemset gets a vector of all the items that could be           now.  itemset gets a vector of all the items that could be

Legend:
Removed from v.1.75  
changed lines
  Added in v.1.76

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