Home
last modified time | relevance | path

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

/external/bison/src/
Dreduce.c75 if (ISVAR (*rhsp) && !bitset_test (N0, *rhsp - ntokens)) in useful_production()
120 bitset_set (Np, rules[r].lhs->number - ntokens); in useless_nonterminals()
166 if (bitset_test (N, accept->number - ntokens)) in inaccessable_symbols()
182 if (ISTOKEN (*rhsp) || bitset_test (N, *rhsp - ntokens)) in inaccessable_symbols()
212 for (i = ntokens; i < nsyms; i++) in inaccessable_symbols()
294 n = ntokens; in nonterminals_reduce()
295 for (i = ntokens; i < nsyms; i++) in nonterminals_reduce()
297 nontermmap[i - ntokens] = n++; in nonterminals_reduce()
298 for (i = ntokens; i < nsyms; i++) in nonterminals_reduce()
301 nontermmap[i - ntokens] = n++; in nonterminals_reduce()
[all …]
Dclosure.c46 #define FDERIVES(Var) fderives[(Var) - ntokens]
47 #define FIRSTS(Var) firsts[(Var) - ntokens]
77 for (i = ntokens; i < nsyms; i++) in print_firsts()
84 symbols[j + ntokens]->tag); in print_firsts()
98 for (i = ntokens; i < nsyms; i++) in print_fderives()
129 for (i = ntokens; i < nsyms; i++) in set_firsts()
130 for (j = 0; derives[i - ntokens][j]; ++j) in set_firsts()
132 item_number sym = derives[i - ntokens][j]->rhs[0]; in set_firsts()
134 bitset_set (FIRSTS (i), sym - ntokens); in set_firsts()
167 for (i = ntokens; i < nsyms; ++i) in set_fderives()
[all …]
Dnullable.c49 for (i = ntokens; i < nsyms; i++) in nullable_print()
51 nullable[i - ntokens] ? "yes" : "no"); in nullable_print()
96 p->next = rsets[*rp - ntokens]; in nullable_compute()
98 rsets[*rp - ntokens] = p; in nullable_compute()
108 && ! nullable[rules_ruleno->lhs->number - ntokens]) in nullable_compute()
110 nullable[rules_ruleno->lhs->number - ntokens] = true; in nullable_compute()
117 for (p = rsets[*s1++ - ntokens]; p; p = p->next) in nullable_compute()
121 if (r->useful && ! nullable[r->lhs->number - ntokens]) in nullable_compute()
123 nullable[r->lhs->number - ntokens] = true; in nullable_compute()
Dlalr.c93 goto_map[TRANSITION_SYMBOL (sp, i) - ntokens]++; in set_goto_map()
100 for (i = ntokens; i < nsyms; i++) in set_goto_map()
102 temp_map[i - ntokens] = k; in set_goto_map()
103 k += goto_map[i - ntokens]; in set_goto_map()
106 for (i = ntokens; i < nsyms; i++) in set_goto_map()
107 goto_map[i - ntokens] = temp_map[i - ntokens]; in set_goto_map()
109 goto_map[nsyms - ntokens] = ngotos; in set_goto_map()
110 temp_map[nsyms - ntokens] = ngotos; in set_goto_map()
122 goto_number k = temp_map[TRANSITION_SYMBOL (sp, i) - ntokens]++; in set_goto_map()
140 low = goto_map[sym - ntokens]; in map_goto()
[all …]
Dderives.c47 for (i = ntokens; i < nsyms; i++) in print_derives()
51 for (rp = derives[i - ntokens]; *rp; ++rp) in print_derives()
83 p->next = dset[lhs - ntokens]; in derives_compute()
85 dset[lhs - ntokens] = p; in derives_compute()
94 for (i = ntokens; i < nsyms; i++) in derives_compute()
96 rule_list *p = dset[i - ntokens]; in derives_compute()
97 derives[i - ntokens] = q; in derives_compute()
Dtables.c56 return state_number_as_int (nstates) + sym - ntokens; in symbol_number_to_vector_number()
191 for (j = 0; j < ntokens; j += 1) in conflict_row()
250 for (i = 0; i < ntokens; i++) in action_row()
333 for (j = 0; j < ntokens; j++) in action_row()
353 for (j = 0; j < ntokens; j++) in action_row()
366 for (i = 0; i < ntokens; i++) in action_row()
393 for (i = 0; i < ntokens; i++) in save_row()
407 for (i = 0; i < ntokens; i++) in save_row()
440 actrow = xnmalloc (ntokens, sizeof *actrow); in token_actions()
441 conflrow = xnmalloc (ntokens, sizeof *conflrow); in token_actions()
[all …]
Dgram.h108 # define ISTOKEN(i) ((i) < ntokens)
109 # define ISVAR(i) ((i) >= ntokens)
112 extern int ntokens;
Dconflicts.c269 for (i = 0; i < ntokens; i++) in resolve_sr_conflict()
389 symbol **errors = xnmalloc (ntokens + 1, sizeof *errors); in conflicts_solve()
392 shift_set = bitset_create (ntokens, BITSET_FIXED); in conflicts_solve()
393 lookahead_set = bitset_create (ntokens, BITSET_FIXED); in conflicts_solve()
468 for (i = 0; i < ntokens; i++) in count_rr_conflicts()
Doutput.c153 MUSCLE_INSERT_INT ("tokens_number", ntokens); in prepare_symbols()
202 int *values = xnmalloc (ntokens, sizeof *values); in prepare_symbols()
203 for (i = 0; i < ntokens; ++i) in prepare_symbols()
206 values[0], 1, ntokens); in prepare_symbols()
350 for (i = 0; i < ntokens; ++i) in token_definitions_output()
445 yydefgoto[0], 1, nsyms - ntokens); in prepare_actions()
Dielr.c58 && nullable [item_number_as_symbol_number (ritem[i]) - ntokens]) in ielr_compute_ritem_sees_lookahead_set()
113 - ntokens]; in ielr_compute_internal_follow_edges()
252 *always_followsp = bitsetv_create (ngotos, ntokens, BITSET_FIXED); in ielr_compute_always_follows()
267 if (nullable[sym - ntokens]) in ielr_compute_always_follows()
393 bitset_create (ntokens, BITSET_FIXED); in ielr_item_has_lookahead()
807 bitset_create (ntokens, BITSET_FIXED); in ielr_compute_state()
931 bitset_create (ntokens, BITSET_FIXED); in ielr_compute_state()
987 lookahead_filter = bitsetv_create (max_nitems, ntokens, BITSET_FIXED); in ielr_split_states()
990 lookaheads = bitsetv_create (max_nitems, ntokens, BITSET_FIXED); in ielr_split_states()
DAnnotationList.c157 bitset shift_tokens = bitset_create (ntokens, BITSET_FIXED); in AnnotationList__compute_shift_tokens()
168 bitset conflicted_tokens = bitset_create (ntokens, BITSET_FIXED); in AnnotationList__compute_conflicted_tokens()
169 bitset conflicted_tokens_rule = bitset_create (ntokens, BITSET_FIXED); in AnnotationList__compute_conflicted_tokens()
170 bitset tokens = bitset_create (ntokens, BITSET_FIXED); in AnnotationList__compute_conflicted_tokens()
344 lookaheads[i] = bitset_create (ntokens, BITSET_FIXED); in AnnotationList__computePredecessorAnnotations()
429 all_lookaheads = bitsetv_create (s->nitems, ntokens, BITSET_FIXED); in AnnotationList__compute_from_inadequacies()
Dsymtab.c339 sym->number = ntokens++; in symbol_class_set()
377 --ntokens; in symbol_user_token_number_set()
504 this->number += ntokens; in symbol_pack()
832 for (i = 0; i < ntokens; ++i) in symbols_token_translations_init()
853 for (i = 0; i < ntokens; ++i) in symbols_token_translations_init()
897 ntokens -= 1; in symbols_pack()
Dgram.c42 int ntokens = 1; variable
247 ntokens, nvars, nsyms, nrules, nritems); in grammar_dump()
255 for (i = ntokens; i < nsyms; i++) in grammar_dump()
Dprint.c267 for (i = 0; i < ntokens; i++) in print_reductions()
296 for (i = 0; i < ntokens; i++) in print_reductions()
437 for (i = ntokens; i < nsyms; i++) in print_grammar()
521 no_reduce_set = bitset_create (ntokens, BITSET_FIXED); in print_results()
Dprint-xml.c268 for (i = 0; i < ntokens; i++) in print_reductions()
298 for (i = 0; i < ntokens; i++) in print_reductions()
412 for (i = ntokens; i < nsyms + nuseless_nonterminals; i++) in print_grammar()
520 no_reduce_set = bitset_create (ntokens, BITSET_FIXED); in print_xml()
Dgraphviz.c90 *no_reduce_set = bitset_create (ntokens, BITSET_FIXED); in no_reduce_bitset_init()
191 for (i = 0; i < ntokens; i++) in output_red()
Dreader.c610 errtoken->number = ntokens++; in reader()
616 undeftoken->number = ntokens++; in reader()
721 aver (nsyms <= SYMBOL_NUMBER_MAXIMUM && nsyms == ntokens + nvars); in check_and_convert_grammar()
/external/llvm/tools/llvm-c-test/
Dcalc.c42 static LLVMValueRef build_from_tokens(char **tokens, int ntokens, in build_from_tokens() argument
49 for (i = 0; i < ntokens; i++) { in build_from_tokens()
113 static void handle_line(char **tokens, int ntokens) { in handle_line() argument
131 res = build_from_tokens(tokens + 1, ntokens - 1, builder, param); in handle_line()
Ddisassemble.c65 static void handle_line(char **tokens, int ntokens) { in handle_line() argument
76 for (i = 2; i < ntokens; i++) { in handle_line()
Dllvm-c-test.h19 void tokenize_stdin(void (*cb)(char **tokens, int ntokens));
Dhelpers.c21 void tokenize_stdin(void (*cb)(char **tokens, int ntokens)) { in tokenize_stdin() argument
/external/iputils/
Dping_common.c485 long ntokens; in pinger() local
489 ntokens = (tv.tv_sec - cur_time.tv_sec)*1000 + in pinger()
494 if (ntokens < MININTERVAL && in_flight() >= preload) in pinger()
495 return MININTERVAL-ntokens; in pinger()
497 ntokens += tokens; in pinger()
498 if (ntokens > interval*preload) in pinger()
499 ntokens = interval*preload; in pinger()
500 if (ntokens < interval) in pinger()
501 return interval - ntokens; in pinger()
504 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/
DChangeLog-2012183 end token, don't decrement ntokens if it was never incremented.
16432 * src/output.c (prepare_tokens): Go up to ntokens, not ntokens + 1.
16572 `states_number', and `ntokens' as `tokens_number'. Remove `nsym',
18266 * src/gram.c (ntokens): Initialize to 1, to reserve a slot for
18285 * src/gram.c (nitems, nrules, nsyms, ntokens, nvars, nritems)
19590 duplicates ntokens.