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" |
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); |
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 |
*/ |
*/ |
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 |