/[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.67 by akim, Sun May 26 20:25:52 2002 UTC revision 1.68 by akim, Sat Jun 15 18:23:12 2002 UTC
# Line 191  new_state (symbol_number_t symbol, size_ Line 191  new_state (symbol_number_t symbol, size_
191    
192    if (trace_flag)    if (trace_flag)
193      fprintf (stderr, "Entering new_state, state = %d, symbol = %d (%s)\n",      fprintf (stderr, "Entering new_state, state = %d, symbol = %d (%s)\n",
194               nstates, symbol, quotearg_style (escape_quoting_style,               nstates, symbol, symbol_tag_get (symbols[symbol]));
                                               symbols[symbol]->tag));  
195    
196    if (nstates >= SHRT_MAX)    if (nstates >= SHRT_MAX)
197      fatal (_("too many states (max %d)"), SHRT_MAX);      fatal (_("too many states (max %d)"), SHRT_MAX);
# Line 237  get_state (symbol_number_t symbol, size_ Line 236  get_state (symbol_number_t symbol, size_
236    
237    if (trace_flag)    if (trace_flag)
238      fprintf (stderr, "Entering get_state, state = %d, symbol = %d (%s)\n",      fprintf (stderr, "Entering get_state, state = %d, symbol = %d (%s)\n",
239               this_state->number, symbol, quotearg_style (escape_quoting_style,               this_state->number, symbol,
240                                                symbols[symbol]->tag));               symbol_tag_get (symbols[symbol]));
241    
242    /* Add up the target state's active item numbers to get a hash key.    /* Add up the target state's active item numbers to get a hash key.
243       */       */
# Line 424  generate_states (void) Line 423  generate_states (void)
423        if (trace_flag)        if (trace_flag)
424          fprintf (stderr, "Processing state %d (reached by %s)\n",          fprintf (stderr, "Processing state %d (reached by %s)\n",
425                   this_state->number,                   this_state->number,
426                   quotearg_style (escape_quoting_style,                   symbol_tag_get (symbols[this_state->accessing_symbol]));
                                  symbols[this_state->accessing_symbol]->tag));  
427        /* Set up ruleset and itemset for the transitions out of this        /* Set up ruleset and itemset for the transitions out of this
428           state.  ruleset gets a 1 bit for each rule that could reduce           state.  ruleset gets a 1 bit for each rule that could reduce
429           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.67  
changed lines
  Added in v.1.68

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