Home
last modified time | relevance | path

Searched refs:ntokens (Results 1 – 16 of 16) sorted by relevance

/external/bison/src/
Dreduce.c77 if (ISVAR (*rhsp) && !bitset_test (N0, *rhsp - ntokens)) in useful_production()
122 bitset_set (Np, rules[r].lhs->number - ntokens); in useless_nonterminals()
168 if (bitset_test (N, accept->number - ntokens)) in inaccessable_symbols()
184 if (ISTOKEN (*rhsp) || bitset_test (N, *rhsp - ntokens)) in inaccessable_symbols()
214 for (i = ntokens; i < nsyms; i++) in inaccessable_symbols()
296 n = ntokens; in nonterminals_reduce()
297 for (i = ntokens; i < nsyms; i++) in nonterminals_reduce()
299 nontermmap[i - ntokens] = n++; in nonterminals_reduce()
300 for (i = ntokens; i < nsyms; i++) in nonterminals_reduce()
303 nontermmap[i - ntokens] = n++; in nonterminals_reduce()
[all …]
Dclosure.c49 #define FDERIVES(Var) fderives[(Var) - ntokens]
50 #define FIRSTS(Var) firsts[(Var) - ntokens]
80 for (i = ntokens; i < nsyms; i++) in print_firsts()
87 symbols[j + ntokens]->tag); in print_firsts()
101 for (i = ntokens; i < nsyms; i++) in print_fderives()
132 for (i = ntokens; i < nsyms; i++) in set_firsts()
133 for (j = 0; derives[i - ntokens][j]; ++j) in set_firsts()
135 item_number sym = derives[i - ntokens][j]->rhs[0]; in set_firsts()
137 bitset_set (FIRSTS (i), sym - ntokens); in set_firsts()
170 for (i = ntokens; i < nsyms; ++i) in set_fderives()
[all …]
Dnullable.c51 for (i = ntokens; i < nsyms; i++) in nullable_print()
53 nullable[i - ntokens] ? "yes" : "no"); in nullable_print()
98 p->next = rsets[*rp - ntokens]; in nullable_compute()
100 rsets[*rp - ntokens] = p; in nullable_compute()
110 && ! nullable[rules_ruleno->lhs->number - ntokens]) in nullable_compute()
112 nullable[rules_ruleno->lhs->number - ntokens] = true; in nullable_compute()
119 for (p = rsets[*s1++ - ntokens]; p; p = p->next) in nullable_compute()
123 if (r->useful && ! nullable[r->lhs->number - ntokens]) in nullable_compute()
125 nullable[r->lhs->number - ntokens] = true; in nullable_compute()
Dlalr.c99 goto_map[TRANSITION_SYMBOL (sp, i) - ntokens]++; in set_goto_map()
106 for (i = ntokens; i < nsyms; i++) in set_goto_map()
108 temp_map[i - ntokens] = k; in set_goto_map()
109 k += goto_map[i - ntokens]; in set_goto_map()
112 for (i = ntokens; i < nsyms; i++) in set_goto_map()
113 goto_map[i - ntokens] = temp_map[i - ntokens]; in set_goto_map()
115 goto_map[nsyms - ntokens] = ngotos; in set_goto_map()
116 temp_map[nsyms - ntokens] = ngotos; in set_goto_map()
128 goto_number k = temp_map[TRANSITION_SYMBOL (sp, i) - ntokens]++; in set_goto_map()
151 low = goto_map[sym - ntokens]; in map_goto()
[all …]
Dderives.c49 for (i = ntokens; i < nsyms; i++) in print_derives()
53 for (rp = derives[i - ntokens]; *rp; ++rp) in print_derives()
85 p->next = dset[lhs - ntokens]; in derives_compute()
87 dset[lhs - ntokens] = p; in derives_compute()
96 for (i = ntokens; i < nsyms; i++) in derives_compute()
98 rule_list *p = dset[i - ntokens]; in derives_compute()
99 derives[i - ntokens] = q; in derives_compute()
Dtables.c58 return state_number_as_int (nstates) + sym - ntokens; in symbol_number_to_vector_number()
193 for (j = 0; j < ntokens; j += 1) in conflict_row()
252 for (i = 0; i < ntokens; i++) in action_row()
324 for (j = 0; j < ntokens; j++) in action_row()
344 for (j = 0; j < ntokens; j++) in action_row()
356 for (i = 0; i < ntokens; i++) in action_row()
383 for (i = 0; i < ntokens; i++) in save_row()
397 for (i = 0; i < ntokens; i++) in save_row()
430 actrow = xnmalloc (ntokens, sizeof *actrow); in token_actions()
431 conflrow = xnmalloc (ntokens, sizeof *conflrow); in token_actions()
[all …]
Dgram.h110 # define ISTOKEN(i) ((i) < ntokens)
111 # define ISVAR(i) ((i) >= ntokens)
114 extern int ntokens;
Dsymtab.c206 sym->number = ntokens++; in symbol_class_set()
240 --ntokens; in symbol_user_token_number_set()
296 ntokens--; in symbol_make_alias()
297 assert (ntokens == sym->number || ntokens == symval->number); in symbol_make_alias()
377 this->number += ntokens; in symbol_pack()
592 for (i = 0; i < ntokens; ++i) in symbols_token_translations_init()
613 for (i = 0; i < ntokens; ++i) in symbols_token_translations_init()
Dconflicts.c193 for (i = 0; i < ntokens; i++) in resolve_sr_conflict()
309 symbol **errors = xnmalloc (ntokens + 1, sizeof *errors); in conflicts_solve()
312 shift_set = bitset_create (ntokens, BITSET_FIXED); in conflicts_solve()
313 look_ahead_set = bitset_create (ntokens, BITSET_FIXED); in conflicts_solve()
376 for (i = 0; i < ntokens; i++) in count_rr_conflicts()
Doutput.c144 MUSCLE_INSERT_INT ("tokens_number", ntokens); in prepare_symbols()
190 int *values = xnmalloc (ntokens, sizeof *values); in prepare_symbols()
191 for (i = 0; i < ntokens; ++i) in prepare_symbols()
194 values[0], 1, ntokens); in prepare_symbols()
342 for (i = 0; i < ntokens; ++i) in token_definitions_output()
459 yydefgoto[0], 1, nsyms - ntokens); in prepare_actions()
Dgram.c43 int ntokens = 1; variable
247 ntokens, nvars, nsyms, nrules, nritems); in grammar_dump()
255 for (i = ntokens; i < nsyms; i++) in grammar_dump()
Dprint.c328 for (i = 0; i < ntokens; i++) in print_reductions()
357 for (i = 0; i < ntokens; i++) in print_reductions()
484 for (i = ntokens; i < nsyms; i++) in print_grammar()
565 shift_set = bitset_create (ntokens, BITSET_FIXED); in print_results()
566 look_ahead_set = bitset_create (ntokens, BITSET_FIXED); in print_results()
Dreader.c498 errtoken->number = ntokens++; in reader()
504 undeftoken->number = ntokens++; in reader()
565 assert (nsyms <= SYMBOL_NUMBER_MAXIMUM && nsyms == ntokens + nvars); in check_and_convert_grammar()
/external/ping/
Dping.c365 long ntokens; in pinger() local
369 ntokens = (tv.tv_sec - cur_time.tv_sec)*1000 + in pinger()
374 if (ntokens < MININTERVAL && in_flight() >= preload) in pinger()
375 return MININTERVAL-ntokens; in pinger()
377 ntokens += tokens; in pinger()
378 if (ntokens > interval*preload) in pinger()
379 ntokens = interval*preload; in pinger()
380 if (ntokens < interval) in pinger()
381 return interval - ntokens; in pinger()
384 tokens = ntokens - interval; in pinger()
/external/nist-sip/java/gov/nist/core/
DLexerCore.java170 public Token[] peekNextToken(int ntokens) throws ParseException { in peekNextToken() argument
172 Token[] retval = new Token[ntokens]; in peekNextToken()
173 for (int i = 0; i < ntokens; i++) { in peekNextToken()
/external/bison/
DChangeLog8171 * src/output.c (prepare_tokens): Go up to ntokens, not ntokens + 1.
8311 `states_number', and `ntokens' as `tokens_number'. Remove `nsym',
10005 * src/gram.c (ntokens): Initialize to 1, to reserve a slot for
10024 * src/gram.c (nitems, nrules, nsyms, ntokens, nvars, nritems)
11329 duplicates ntokens.