mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 23:03:04 +00:00
* src/gram.h, src/gram.c (symbols): New, similar to state_table
and rule_table. * src/reader.c (packsymbols): Fill this table. Drop sprec. * src/conflicts.c (resolve_sr_conflict): Adjust. * src/reduce.c (reduce_grammar): Adjust: just sort symbols, a single table. Use symbols[i]->tag instead of tags[i].
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
|
||||
#include "system.h"
|
||||
#include "gram.h"
|
||||
#include "symtab.h"
|
||||
#include "reader.h"
|
||||
|
||||
/* comments for these variables are in gram.h */
|
||||
@@ -37,6 +38,8 @@ int nritems;
|
||||
rule_t *rule_table = NULL;
|
||||
short *rprec = NULL;
|
||||
short *rprecsym = NULL;
|
||||
|
||||
struct bucket **symbols = NULL;
|
||||
short *sprec = NULL;
|
||||
short *rassoc = NULL;
|
||||
short *sassoc = NULL;
|
||||
|
||||
Reference in New Issue
Block a user