108 |
print_shifts (FILE *out, state_t *state) |
print_shifts (FILE *out, state_t *state) |
109 |
{ |
{ |
110 |
int i; |
int i; |
111 |
shifts *shiftp = state->shifts; |
shifts_t *shiftp = state->shifts; |
112 |
|
|
113 |
for (i = 0; i < shiftp->nshifts && SHIFT_IS_SHIFT (shiftp, i); i++) |
for (i = 0; i < shiftp->nshifts && SHIFT_IS_SHIFT (shiftp, i); i++) |
114 |
if (!SHIFT_IS_DISABLED (shiftp, i)) |
if (!SHIFT_IS_DISABLED (shiftp, i)) |
145 |
print_gotos (FILE *out, state_t *state) |
print_gotos (FILE *out, state_t *state) |
146 |
{ |
{ |
147 |
int i; |
int i; |
148 |
shifts *shiftp = state->shifts; |
shifts_t *shiftp = state->shifts; |
149 |
|
|
150 |
for (i = 0; i < shiftp->nshifts && SHIFT_IS_SHIFT (shiftp, i); i++) |
for (i = 0; i < shiftp->nshifts && SHIFT_IS_SHIFT (shiftp, i); i++) |
151 |
/* Skip token shifts. */; |
/* Skip token shifts. */; |
169 |
print_reductions (FILE *out, state_t *state) |
print_reductions (FILE *out, state_t *state) |
170 |
{ |
{ |
171 |
int i; |
int i; |
172 |
shifts *shiftp = state->shifts; |
shifts_t *shiftp = state->shifts; |
173 |
reductions *redp = state->reductions; |
reductions *redp = state->reductions; |
174 |
errs *errp = state->errs; |
errs *errp = state->errs; |
175 |
int nodefault = 0; |
int nodefault = 0; |
305 |
print_actions (FILE *out, state_t *state) |
print_actions (FILE *out, state_t *state) |
306 |
{ |
{ |
307 |
reductions *redp = state->reductions; |
reductions *redp = state->reductions; |
308 |
shifts *shiftp = state->shifts; |
shifts_t *shiftp = state->shifts; |
309 |
|
|
310 |
if (shiftp->nshifts == 0 && redp->nreds == 0) |
if (shiftp->nshifts == 0 && redp->nreds == 0) |
311 |
{ |
{ |