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 |
/*----------. |
/*----------. |
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; |
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, |