Lines Matching defs:cat

209 	tre_catenation_t *cat;
213 cat = tre_mem_calloc(mem, sizeof *cat);
214 node = tre_ast_new_node(mem, CATENATION, cat);
217 cat->left = left;
218 cat->right = right;
1358 tre_catenation_t *cat = node->obj;
1359 tre_ast_node_t *left = cat->left;
1360 tre_ast_node_t *right = cat->right;
1765 tre_catenation_t *cat = node->obj;
1767 *result = tre_ast_new_catenation(mem, cat->left, cat->right);
1778 STACK_PUSHX(stack, voidptr, cat->right);
1782 STACK_PUSHX(stack, voidptr, cat->left);
1870 tre_catenation_t *cat = node->obj;
1871 STACK_PUSHX(stack, voidptr, cat->right);
1873 STACK_PUSHX(stack, voidptr, cat->left);
2125 tre_catenation_t *cat;
2194 cat = (tre_catenation_t *)node->obj;
2195 assert(cat->left->nullable);
2196 assert(cat->right->nullable);
2197 STACK_PUSHX(stack, voidptr, cat->left);
2198 STACK_PUSHX(stack, voidptr, cat->right);
2365 tre_catenation_t *cat = node->obj;
2366 node->nullable = cat->left->nullable && cat->right->nullable;
2369 if (cat->left->nullable)
2374 status = tre_match_empty(stack, cat->left,
2386 status = tre_match_empty(stack, cat->left, tags,
2394 tre_set_union(mem, cat->right->firstpos, cat->left->firstpos,
2402 node->firstpos = cat->left->firstpos;
2406 if (cat->right->nullable)
2411 status = tre_match_empty(stack, cat->right,
2423 status = tre_match_empty(stack, cat->right, tags,
2431 tre_set_union(mem, cat->left->lastpos, cat->right->lastpos,
2439 node->lastpos = cat->right->lastpos;
2614 tre_catenation_t *cat;
2632 cat = (tre_catenation_t *)node->obj;
2633 /* Add a transition from each position in cat->left->lastpos
2634 to each position in cat->right->firstpos. */
2635 errcode = tre_make_trans(cat->left->lastpos, cat->right->firstpos,
2639 errcode = tre_ast_to_tnfa(cat->left, transitions, counts, offs);
2642 errcode = tre_ast_to_tnfa(cat->right, transitions, counts, offs);