* 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:
Akim Demaille
2002-06-15 18:23:50 +00:00
parent 9757c359ef
commit c026349221
7 changed files with 83 additions and 46 deletions

View File

@@ -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. */