Lines Matching refs:ntokens
78 if (ISVAR (*rhsp) && !bitset_test (N0, *rhsp - ntokens))
123 bitset_set (Np, rules[r].lhs->number - ntokens);
169 if (bitset_test (N, accept->number - ntokens))
185 if (ISTOKEN (*rhsp) || bitset_test (N, *rhsp - ntokens))
215 for (i = ntokens; i < nsyms; i++)
297 n = ntokens;
298 for (i = ntokens; i < nsyms; i++)
300 nontermmap[i - ntokens] = n++;
301 for (i = ntokens; i < nsyms; i++)
304 nontermmap[i - ntokens] = n++;
314 for (i = ntokens; i < nsyms; i++)
315 symbols[i]->number = nontermmap[i - ntokens];
316 for (i = ntokens; i < nsyms; i++)
317 symbols_sorted[nontermmap[i - ntokens] - ntokens] = symbols[i];
318 for (i = ntokens; i < nsyms; i++)
319 symbols[i] = symbols_sorted[i - ntokens];
331 - ntokens]);
333 accept->number = nontermmap[accept->number - ntokens];
362 for (i = 0; i < ntokens; i++)
438 if (!bitset_test (N, accept->number - ntokens))
457 grammar_file, ntokens, nvars, nrules);