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