/[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.59 by akim, Sun Apr 7 17:40:16 2002 UTC revision 1.60 by akim, Sun Apr 7 17:42:12 2002 UTC
# Line 24  Line 24 
24    
25  #include "system.h"  #include "system.h"
26  #include "bitset.h"  #include "bitset.h"
27    #include "quotearg.h"
28  #include "symtab.h"  #include "symtab.h"
29  #include "getargs.h"  #include "getargs.h"
30  #include "reader.h"  #include "reader.h"
# Line 190  new_state (int symbol) Line 191  new_state (int symbol)
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, symbols[symbol]->tag);               nstates, symbol, quotearg_style (escape_quoting_style,
195                                                  symbols[symbol]->tag));
196    
197    if (nstates >= MAXSHORT)    if (nstates >= MAXSHORT)
198      fatal (_("too many states (max %d)"), MAXSHORT);      fatal (_("too many states (max %d)"), MAXSHORT);
# Line 234  get_state (int symbol) Line 236  get_state (int symbol)
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, symbols[symbol]->tag);               this_state->number, symbol, quotearg_style (escape_quoting_style,
240                                                  symbols[symbol]->tag));
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 416  generate_states (void) Line 419  generate_states (void)
419        if (trace_flag)        if (trace_flag)
420          fprintf (stderr, "Processing state %d (reached by %s)\n",          fprintf (stderr, "Processing state %d (reached by %s)\n",
421                   this_state->number,                   this_state->number,
422                   symbols[this_state->accessing_symbol]->tag);                   quotearg_style (escape_quoting_style,
423                                     symbols[this_state->accessing_symbol]->tag));
424        /* Set up ruleset and itemset for the transitions out of this        /* Set up ruleset and itemset for the transitions out of this
425           state.  ruleset gets a 1 bit for each rule that could reduce           state.  ruleset gets a 1 bit for each rule that could reduce
426           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.59  
changed lines
  Added in v.1.60

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