-extern int tokensetsize;
-extern short *lookaheads;
-extern short *accessing_symbol;
-extern core **state_table;
-extern shifts **shift_table;
-extern reductions **reduction_table;
+/* A structure decorating a state, with additional information. */
+typedef struct state_s
+{
+ /* A state. */
+ core *state;
+
+ /* Its accessing symbol. */
+ short accessing_symbol;
+
+ shifts *shifts;
+ reductions *reductions;
+ errs *errs;
+
+ /* Nonzero if no lookahead is needed to decide what to do in state
+ S. */
+ char consistent;