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