Home
last modified time | relevance | path

Searched refs:ritem (Results 1 – 13 of 13) sorted by relevance

/external/bison/src/
Dgram.c34 item_number *ritem = NULL; variable
149 if (ritem[i] >= 0) in ritem_print()
150 fprintf (out, " %s", symbols[ritem[i]]->tag); in ritem_print()
152 fprintf (out, " (rule %d)\n", item_number_as_rule_number (ritem[i])); in ritem_print()
271 unsigned int rhs_itemno = rule_i->rhs - ritem; in grammar_dump()
328 if (ritem) in grammar_free()
329 free (ritem - 1); in grammar_free()
Dielr.c56 while (!item_number_is_rule_number (ritem[i]) in ielr_compute_ritem_sees_lookahead_set()
57 && ISVAR (ritem[i]) in ielr_compute_ritem_sees_lookahead_set()
58 && nullable [item_number_as_symbol_number (ritem[i]) - ntokens]) in ielr_compute_ritem_sees_lookahead_set()
60 if (!item_number_is_rule_number (ritem[i]) && ISVAR (ritem[i])) in ielr_compute_ritem_sees_lookahead_set()
62 while (!item_number_is_rule_number (ritem[i]) && i>0) in ielr_compute_ritem_sees_lookahead_set()
136 (*rulep)->rhs - ritem)) in ielr_compute_internal_follow_edges()
218 if (item_number_is_symbol_number (ritem[items[j]]) in ielr_compute_follow_kernel_items()
219 && item_number_as_symbol_number (ritem[items[j]]) in ielr_compute_follow_kernel_items()
417 !item_number_is_rule_number (ritem[i]); in ielr_item_has_lookahead()
420 lhs = rules[item_number_as_rule_number (ritem[i])].lhs->number; in ielr_item_has_lookahead()
[all …]
Dclosure.c63 for (rp = &ritem[array[i]]; *rp >= 0; ++rp) in print_closure()
210 if (ISVAR (ritem[core[c]])) in closure()
211 bitset_or (ruleset, ruleset, FDERIVES (ritem[core[c]])); in closure()
219 item_number itemno = rules[ruleno].rhs - ritem; in closure()
Dreader.c505 ritem = xnmalloc (nritems + 1, sizeof *ritem); in packgram()
508 *ritem++ = 0; in packgram()
521 rules[ruleno].rhs = ritem + itemno; in packgram()
558 ritem[itemno++] = in packgram()
574 ritem[itemno++] = rule_number_as_item_number (ruleno); in packgram()
DLR0.c188 if (item_number_is_symbol_number (ritem[itemset[i]])) in new_itemsets()
190 symbol_number sym = item_number_as_symbol_number (ritem[itemset[i]]); in new_itemsets()
278 item_number item = ritem[itemset[i]]; in save_reductions()
DAnnotationList.c274 if (item_number_is_rule_number (ritem[s->items[self_item] in AnnotationList__computePredecessorAnnotations()
280 !item_number_is_rule_number (ritem[rulei]); in AnnotationList__computePredecessorAnnotations()
285 &rules[item_number_as_rule_number (ritem[rulei])], in AnnotationList__computePredecessorAnnotations()
481 ritem[s->items[item_i]]) in AnnotationList__compute_from_inadequacies()
483 ritem[s->items[item_i]]) in AnnotationList__compute_from_inadequacies()
Dgram.h117 extern item_number *ritem;
Dprint_graph.c86 sp1 = sp = ritem + sitems[i]; in print_core()
Dprint.c96 sp1 = sp = ritem + sitems[i]; in print_core()
Dprint-xml.c81 sp1 = sp = ritem + sitems[i]; in print_core()
Doutput.c253 muscle_insert_item_number_table ("rhs", rhs, ritem[0], 1, nritems); in prepare_rules()
/external/chromium_org/third_party/ply/
Dlex.py150 for key, ritem in self.lexstatere.items():
152 for cre, findex in ritem:
/external/bison/
DChangeLog-20129015 * src/reader.c (packgram): Prepend a new sentinel before ritem.
11556 * src/reader.c (packgram): Likewise, for ritem, rules.
17823 * src/reader.c (packgram): No longer end `ritem' with a 0
18325 to reorder ritem itself.
18370 * src/LR0.c (allocate_itemsets): Don't loop over ritem: loop over
19329 when walking through ritem, even via rule->rhs.
19401 is 0 which was also used as a sentinel in ritem, (i) make sure >= 0
20294 ritem.
20304 ritem.