/[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.33 by akim, Sun Jun 30 17:30:29 2002 UTC revision 1.34 by akim, Sun Jun 30 17:30:46 2002 UTC
# Line 144  typedef struct shifts_s Line 144  typedef struct shifts_s
144  | Errs.  |  | Errs.  |
145  `-------*/  `-------*/
146    
147  typedef struct errs  typedef struct errs_s
148  {  {
149    short nerrs;    short nerrs;
150    short errs[1];    short errs[1];
151  } errs;  } errs_t;
152    
153  errs *errs_new PARAMS ((int n));  errs_t *errs_new PARAMS ((int n));
154  errs *errs_dup PARAMS ((errs *src));  errs_t *errs_dup PARAMS ((errs_t *src));
155    
156    
157  /*-------------.  /*-------------.
158  | Reductions.  |  | Reductions.  |
159  `-------------*/  `-------------*/
160    
161  typedef struct reductions  typedef struct reductions_s
162  {  {
163    short nreds;    short nreds;
164    short rules[1];    short rules[1];
165  } reductions;  } reductions_t;
166    
 reductions *reductions_new PARAMS ((int n));  
167    
168    
169  /*----------.  /*----------.
# Line 176  typedef struct state_s Line 175  typedef struct state_s
175    state_number_t number;    state_number_t number;
176    symbol_number_t accessing_symbol;    symbol_number_t accessing_symbol;
177    shifts_t     *shifts;    shifts_t     *shifts;
178    reductions *reductions;    reductions_t *reductions;
179    errs       *errs;    errs_t       *errs;
180    
181    /* Nonzero if no lookahead is needed to decide what to do in state S.  */    /* Nonzero if no lookahead is needed to decide what to do in state S.  */
182    char consistent;    char consistent;
# Line 208  state_t *state_new PARAMS ((symbol_numbe Line 207  state_t *state_new PARAMS ((symbol_numbe
207  void state_shifts_set PARAMS ((state_t *state,  void state_shifts_set PARAMS ((state_t *state,
208                                 int nshifts, state_number_t *shifts));                                 int nshifts, state_number_t *shifts));
209    
210    /* Set the reductions of STATE.  */
211    void state_reductions_set PARAMS ((state_t *state,
212                                       int nreductions, short *reductions));
213    
214  /* Print on OUT all the lookaheads such that this STATE wants to  /* Print on OUT all the lookaheads such that this STATE wants to
215     reduce this RULE.  */     reduce this RULE.  */
216  void state_rule_lookaheads_print PARAMS ((state_t *state, rule_t *rule,  void state_rule_lookaheads_print PARAMS ((state_t *state, rule_t *rule,

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

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