mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 15:23:02 +00:00
* src/state.h (state_t): Replace the `lookaheadsp' member, a
short, with `lookaheads' (bitsetv), `lookaheads_rule' (rule_t**). Adjust all dependencies. * src/lalr.c (initialize_lookaheads): Split into... (states_lookaheads_count, states_lookaheads_initialize): these. (lalr): Adjust.
This commit is contained in:
@@ -88,6 +88,7 @@
|
||||
#ifndef STATE_H_
|
||||
# define STATE_H_
|
||||
|
||||
# include "bitsetv.h"
|
||||
|
||||
/*---------.
|
||||
| Shifts. |
|
||||
@@ -180,9 +181,9 @@ typedef struct state_s
|
||||
char consistent;
|
||||
|
||||
/* Used in LALR, not LR(0). */
|
||||
/* Pseudo pointer into LA. */
|
||||
short lookaheadsp;
|
||||
int nlookaheads;
|
||||
bitsetv lookaheads;
|
||||
rule_t **lookaheads_rule;
|
||||
|
||||
/* If some conflicts were solved thanks to precedence/associativity,
|
||||
a human readable description of the resolution. */
|
||||
|
||||
Reference in New Issue
Block a user