62 |
state_t *state = state_new (symbol, core_size, core); |
state_t *state = state_new (symbol, core_size, core); |
63 |
|
|
64 |
if (trace_flag & trace_automaton) |
if (trace_flag & trace_automaton) |
65 |
fprintf (stderr, _("state_list_append (state = %d, symbol = %d (%s))\n"), |
fprintf (stderr, "state_list_append (state = %d, symbol = %d (%s))\n", |
66 |
nstates, symbol, symbols[symbol]->tag); |
nstates, symbol, symbols[symbol]->tag); |
67 |
|
|
68 |
/* If this is the endtoken, and this is not the initial state, then |
/* If this is the endtoken, and this is not the initial state, then |
180 |
int i; |
int i; |
181 |
|
|
182 |
if (trace_flag & trace_automaton) |
if (trace_flag & trace_automaton) |
183 |
fprintf (stderr, _("Entering new_itemsets, state = %d\n"), |
fprintf (stderr, "Entering new_itemsets, state = %d\n", |
184 |
state->number); |
state->number); |
185 |
|
|
186 |
for (i = 0; i < nsyms; i++) |
for (i = 0; i < nsyms; i++) |
218 |
state_t *sp; |
state_t *sp; |
219 |
|
|
220 |
if (trace_flag & trace_automaton) |
if (trace_flag & trace_automaton) |
221 |
fprintf (stderr, _("Entering get_state, symbol = %d (%s)\n"), |
fprintf (stderr, "Entering get_state, symbol = %d (%s)\n", |
222 |
symbol, symbols[symbol]->tag); |
symbol, symbols[symbol]->tag); |
223 |
|
|
224 |
sp = state_hash_lookup (core_size, core); |
sp = state_hash_lookup (core_size, core); |
226 |
sp = state_list_append (symbol, core_size, core); |
sp = state_list_append (symbol, core_size, core); |
227 |
|
|
228 |
if (trace_flag & trace_automaton) |
if (trace_flag & trace_automaton) |
229 |
fprintf (stderr, _("Exiting get_state => %d\n"), sp->number); |
fprintf (stderr, "Exiting get_state => %d\n", sp->number); |
230 |
|
|
231 |
return sp; |
return sp; |
232 |
} |
} |
246 |
symbol_number_t symbol; |
symbol_number_t symbol; |
247 |
|
|
248 |
if (trace_flag & trace_automaton) |
if (trace_flag & trace_automaton) |
249 |
fprintf (stderr, _("Entering append_states, state = %d\n"), |
fprintf (stderr, "Entering append_states, state = %d\n", |
250 |
state->number); |
state->number); |
251 |
|
|
252 |
/* first sort shift_symbol into increasing order */ |
/* first sort shift_symbol into increasing order */ |
354 |
{ |
{ |
355 |
state_t *state = list->state; |
state_t *state = list->state; |
356 |
if (trace_flag & trace_automaton) |
if (trace_flag & trace_automaton) |
357 |
fprintf (stderr, _("Processing state %d (reached by %s)\n"), |
fprintf (stderr, "Processing state %d (reached by %s)\n", |
358 |
state->number, |
state->number, |
359 |
symbols[state->accessing_symbol]->tag); |
symbols[state->accessing_symbol]->tag); |
360 |
/* Set up ruleset and itemset for the transitions out of this |
/* Set up ruleset and itemset for the transitions out of this |