* src/state.h, src/state.c (shifts_to): New.

* src/lalr.c (build_relations): Use it.
This commit is contained in:
Akim Demaille
2002-06-30 17:31:37 +00:00
parent 9222837b27
commit 24c7d80020
4 changed files with 26 additions and 10 deletions

View File

@@ -139,6 +139,10 @@ typedef struct shifts_s
#define SHIFT_IS_DISABLED(Shifts, Shift) \
(Shifts->shifts[Shift] == 0)
/* Return the state such these SHIFTS contain a shift/goto to it on
SYMBOL. Aborts if none found. */
struct state_s;
struct state_s *shifts_to PARAMS ((shifts_t *shifts, symbol_number_t s));
/*-------.
| Errs. |