Lines Matching refs:firstpos
93 tre_pos_and_tags_t *firstpos;
1123 c->right->firstpos = NULL;
1154 c->left->firstpos = NULL;
2241 /* Computes and fills in the fields `nullable', `firstpos', and `lastpos' for
2268 /* Back references: nullable = false, firstpos = {i},
2271 node->firstpos = tre_set_one(mem, lit->position, 0,
2273 if (!node->firstpos)
2284 nullable = true, firstpos = {}, and lastpos = {}. */
2286 node->firstpos = tre_set_empty(mem);
2287 if (!node->firstpos)
2295 /* Literal at position i: nullable = false, firstpos = {i},
2298 node->firstpos =
2301 if (!node->firstpos)
2351 node->firstpos = tre_set_union(mem, uni->left->firstpos,
2352 uni->right->firstpos, NULL, 0);
2353 if (!node->firstpos)
2370 node->firstpos = iter->arg->firstpos;
2382 /* Compute firstpos. */
2407 node->firstpos =
2408 tre_set_union(mem, cat->right->firstpos, cat->left->firstpos,
2411 if (!node->firstpos)
2416 node->firstpos = cat->left->firstpos;
2648 to each position in cat->right->firstpos. */
2649 errcode = tre_make_trans(cat->left->lastpos, cat->right->firstpos,
2668 errcode = tre_make_trans(iter->arg->lastpos, iter->arg->firstpos,
2841 p = tree->firstpos;
2855 for (p = tree->firstpos; p->position >= 0; p++)