/[bison]/bison/src/state.h
ViewVC logotype

Diff of /bison/src/state.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.32 by akim, Sun Jun 30 17:29:36 2002 UTC revision 1.33 by akim, Sun Jun 30 17:30:29 2002 UTC
# Line 101  typedef short state_number_t; Line 101  typedef short state_number_t;
101  | Shifts.  |  | Shifts.  |
102  `---------*/  `---------*/
103    
104  typedef struct shifts  typedef struct shifts_s
105  {  {
106    short nshifts;    short nshifts;
107    state_number_t shifts[1];    state_number_t shifts[1];
108  } shifts;  } shifts_t;
   
 shifts *shifts_new PARAMS ((int n));  
109    
110    
111  /* What is the symbol which is shifted by SHIFTS->shifts[Shift]?  Can  /* What is the symbol which is shifted by SHIFTS->shifts[Shift]?  Can
# Line 175  reductions *reductions_new PARAMS ((int Line 173  reductions *reductions_new PARAMS ((int
173    
174  typedef struct state_s  typedef struct state_s
175  {  {
   struct state_s *next;  
   
176    state_number_t number;    state_number_t number;
177    symbol_number_t accessing_symbol;    symbol_number_t accessing_symbol;
178    shifts     *shifts;    shifts_t     *shifts;
179    reductions *reductions;    reductions *reductions;
180    errs       *errs;    errs       *errs;
181    
# Line 205  extern state_number_t nstates; Line 201  extern state_number_t nstates;
201  extern state_t *final_state;  extern state_t *final_state;
202    
203  /* Create a new state with ACCESSING_SYMBOL for those items.  */  /* Create a new state with ACCESSING_SYMBOL for those items.  */
   
204  state_t *state_new PARAMS ((symbol_number_t accessing_symbol,  state_t *state_new PARAMS ((symbol_number_t accessing_symbol,
205                              size_t core_size, item_number_t *core));                              size_t core_size, item_number_t *core));
206    
207    /* Set the shifts of STATE.  */
208    void state_shifts_set PARAMS ((state_t *state,
209                                   int nshifts, state_number_t *shifts));
210    
211  /* Print on OUT all the lookaheads such that this STATE wants to  /* Print on OUT all the lookaheads such that this STATE wants to
212     reduce this RULE.  */     reduce this RULE.  */
   
213  void state_rule_lookaheads_print PARAMS ((state_t *state, rule_t *rule,  void state_rule_lookaheads_print PARAMS ((state_t *state, rule_t *rule,
214                                            FILE *out));                                            FILE *out));
215    

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

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