/[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.74 by akim, Sun Jun 30 17:31:19 2002 UTC revision 1.75 by akim, Sun Jun 30 17:33:37 2002 UTC
# Line 240  get_state (symbol_number_t symbol, size_ Line 240  get_state (symbol_number_t symbol, size_
240  | Use the information computed by new_itemsets to find the state    |  | Use the information computed by new_itemsets to find the state    |
241  | numbers reached by each shift transition from STATE.              |  | numbers reached by each shift transition from STATE.              |
242  |                                                                   |  |                                                                   |
243  | SHIFTSET is set up as a vector of state numbers of those states.  |  | TRANSITIONSET is set up as a vector of state numbers of those states.  |
244  `------------------------------------------------------------------*/  `------------------------------------------------------------------*/
245    
246  static void  static void
# Line 336  set_states (void) Line 336  set_states (void)
336           reduced to 0.  */           reduced to 0.  */
337        state_t *state = this->state;        state_t *state = this->state;
338        if (!state->shifts)        if (!state->shifts)
339          state_shifts_set (state, 0, 0);          state_transitions_set (state, 0, 0);
340        if (!state->errs)        if (!state->errs)
341          state->errs = errs_new (0);          state->errs = errs_new (0);
342        if (!state->reductions)        if (!state->reductions)
# Line 387  generate_states (void) Line 387  generate_states (void)
387    
388        /* Create the shifts structures for the shifts to those states,        /* Create the shifts structures for the shifts to those states,
389           now that the state numbers transitioning to are known.  */           now that the state numbers transitioning to are known.  */
390        state_shifts_set (state, nshifts, shiftset);        state_transitions_set (state, nshifts, shiftset);
391    
392        /* States are queued when they are created; process them all.        /* States are queued when they are created; process them all.
393           */           */

Legend:
Removed from v.1.74  
changed lines
  Added in v.1.75

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