/* 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;
+token_number_t *token_translations = NULL;
-rule_t *rules = NULL;
-
-struct bucket **symbols = NULL;
-short *token_translations = NULL;
-
-int start_symbol = 0;
+token_number_t start_symbol = 0;
int max_user_token_number = 256;
int pure_parser = 0;
-int error_token_number = 0;
-
/*--------------------------------------.
| Return the number of symbols in RHS. |
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;