/* comments for these variables are in gram.h */
-int nitems = 0;
+item_number_t *ritem = NULL;
+int nritems = 0;
+
+rule_t *rules = NULL;
int nrules = 0;
+
+symbol_t **symbols = NULL;
int nsyms = 0;
int ntokens = 1;
int nvars = 0;
-short *ritem = NULL;
-int nritems = 0;
-
-rule_t *rules = NULL;
-
-struct bucket **symbols = NULL;
-short *token_translations = NULL;
+token_number_t *token_translations = NULL;
int start_symbol = 0;
rule_rhs_length (rule_t *rule)
{
int res = 0;
- short *rhsp;
+ item_number_t *rhsp;
for (rhsp = rule->rhs; *rhsp >= 0; ++rhsp)
++res;
return res;