/[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.83 by eggert, Mon Aug 12 14:33:12 2002 UTC revision 1.84 by akim, Wed Sep 4 10:18:14 2002 UTC
# Line 62  state_list_append (symbol_number_t symbo Line 62  state_list_append (symbol_number_t symbo
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
# Line 180  new_itemsets (state_t *state) Line 180  new_itemsets (state_t *state)
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++)
# Line 218  get_state (symbol_number_t symbol, size_ Line 218  get_state (symbol_number_t symbol, size_
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);
# Line 226  get_state (symbol_number_t symbol, size_ Line 226  get_state (symbol_number_t symbol, size_
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  }  }
# Line 246  append_states (state_t *state) Line 246  append_states (state_t *state)
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 */
# Line 354  generate_states (void) Line 354  generate_states (void)
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

Legend:
Removed from v.1.83  
changed lines
  Added in v.1.84

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