]> git.saurik.com Git - bison.git/blobdiff - src/state.h
Have Bison grammars parsed by a Bison grammar.
[bison.git] / src / state.h
index dc093fea1a760f9543490d24abbea7dd7c5c2bbb..95b716d89c3e10f2be650d6db6e9f5568cd373dc 100644 (file)
@@ -171,7 +171,7 @@ typedef struct state_s
   struct state_s *link;
 
   short number;
-  token_number_t accessing_symbol;
+  symbol_number_t accessing_symbol;
   shifts     *shifts;
   reductions *reductions;
   errs       *errs;
@@ -184,8 +184,13 @@ typedef struct state_s
   short lookaheadsp;
   int nlookaheads;
 
-  /* Its items. */
-  short nitems;
+  /* If some conflicts were solved thanks to precedence/associativity,
+     a human readable description of the resolution.  */
+  const char *solved_conflicts;
+
+  /* Its items.  Must be last, since ITEMS can be arbitrarily large.
+     */
+  unsigned short nitems;
   item_number_t items[1];
 } state_t;