49 |
} |
} |
50 |
|
|
51 |
|
|
52 |
|
/*-----------------------------------------------------------------. |
53 |
|
| Return the state such these SHIFTS contain a shift/goto to it on | |
54 |
|
| SYMBOL. Aborts if none found. | |
55 |
|
`-----------------------------------------------------------------*/ |
56 |
|
|
57 |
|
state_t * |
58 |
|
shifts_to (shifts_t *shifts, symbol_number_t s) |
59 |
|
{ |
60 |
|
int j; |
61 |
|
for (j = 0; j < shifts->nshifts; j++) |
62 |
|
if (SHIFT_SYMBOL (shifts, j) == s) |
63 |
|
return states[shifts->shifts[j]]; |
64 |
|
abort (); |
65 |
|
} |
66 |
|
|
67 |
|
|
68 |
/*--------------------. |
/*--------------------. |