mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 23:33:03 +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:
@@ -133,6 +133,9 @@ typedef struct rule_s
|
||||
|
||||
extern struct rule_s *rule_table;
|
||||
|
||||
/* Table of the symbols, indexed by the symbol number. */
|
||||
extern struct bucket **symbols;
|
||||
|
||||
/* token translation table: indexed by a token number as returned by
|
||||
the user's yylex routine, it yields the internal token number used
|
||||
by the parser and throughout bison. */
|
||||
|
||||
Reference in New Issue
Block a user