Searched refs:ntokens (Results 1 – 12 of 12) sorted by relevance
/original-bsd/usr.bin/yacc/ |
H A D | closure.c | 77 first_derives = NEW2(nvars * rulesetsize, unsigned) - ntokens * rulesetsize; in set_first_derives() 81 rrow = first_derives + ntokens * rulesetsize; in set_first_derives() 84 vrow = EFF + ((i - ntokens) * varsetsize); in set_first_derives() 190 FREE(first_derives + ntokens * WORDSIZE(nrules)); in finalize_closure()
|
H A D | output.c | 207 FREE(goto_map + ntokens); in output_actions() 227 actionrow = NEW2(2*ntokens, short); in token_actions() 232 for (j = 0; j < 2*ntokens; ++j) in token_actions() 249 actionrow[p->symbol + ntokens] = p->number; in token_actions() 264 for (j = 0; j < ntokens; ++j) in token_actions() 284 for (j = 0; j < ntokens; ++j) in token_actions() 286 if (actionrow[ntokens+j]) in token_actions() 293 *s++ = actionrow[ntokens+j] - 2; in token_actions() 795 for (i = 2; i < ntokens; ++i) in output_defines() 884 for (i = 2; i < ntokens; ++i) in output_debug() [all …]
|
H A D | lalr.c | 53 tokensetsize = WORDSIZE(ntokens); in lalr() 189 goto_map = NEW2(nvars + 1, short) - ntokens; in set_goto_map() 190 temp_map = NEW2(nvars + 1, short) - ntokens; in set_goto_map() 210 for (i = ntokens; i < nsyms; i++) in set_goto_map() 216 for (i = ntokens; i < nsyms; i++) in set_goto_map() 241 FREE(temp_map + ntokens); in set_goto_map()
|
H A D | reader.c | 1558 ntokens = 1; in pack_symbols() 1562 if (bp->class == TERM) ++ntokens; in pack_symbols() 1564 start_symbol = ntokens; in pack_symbols() 1565 nvars = nsyms - ntokens; in pack_symbols() 1591 assert(i == ntokens && j == nsyms); in pack_symbols() 1593 for (i = 1; i < ntokens; ++i) in pack_symbols() 1617 for (i = 1; i < ntokens; ++i) in pack_symbols() 1633 for (i = 2; i < ntokens; ++i) in pack_symbols() 1651 for (i = 1; i < ntokens; ++i) in pack_symbols()
|
H A D | mkpar.c | 108 tokensetsize = WORDSIZE(ntokens); 115 for (j = ntokens - 1; j >= 0; j--)
|
H A D | defs.h | 233 extern int ntokens;
|
H A D | main.c | 63 int ntokens; variable
|
H A D | verbose.c | 37 fprintf(verbose_file, "\n\n%d terminals, %d nonterminals\n", ntokens, in verbose()
|
/original-bsd/old/yacc/ |
H A D | y2.c | 41 int ntokens = 0; variable 419 if( ++ntokens >= NTERMS ) error("too many terminals, limit %d",NTERMS ); 420 tokset[ntokens].name = cstash(s); 451 tokset[ntokens].value = val; 452 toklev[ntokens] = 0; 453 return( ntokens ); 461 for( i=ndefout; i<=ntokens; ++i ){ in defout() 478 ndefout = ntokens+1; in defout()
|
H A D | y3.c | 23 aryfil( temp1, ntokens+nnonter+1, 0 ); in output() 32 else if( c > NTBASE && temp1[ (c -= NTBASE) + ntokens ] == 0 ){ in output() 33 temp1[ c+ntokens ] = amem[indgo[i]+c]; in output() 363 j1 = ntokens; in wrstate()
|
H A D | dextern | 114 # define TLOOP(i) for(i=1;i<=ntokens;++i) 161 extern int ntokens ; /* number of tokens */ 207 /* temporary vector, indexable by states, terms, or ntokens */
|
H A D | y1.c | 54 tbitset = NWORDS(ntokens); 169 fprintf( foutput, "\n%d/%d terminals, %d/%d nonterminals\n", ntokens, NTERMS, in summary()
|