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;
1372 tre_catenation_t *cat = node->obj;
1373 tre_ast_node_t *left = cat->left;
1374 tre_ast_node_t *right = cat->right;
1779 tre_catenation_t *cat = node->obj;
1781 *result = tre_ast_new_catenation(mem, cat->left, cat->right);
1792 STACK_PUSHX(stack, voidptr, cat->right);
1796 STACK_PUSHX(stack, voidptr, cat->left);
1884 tre_catenation_t *cat = node->obj;
1885 STACK_PUSHX(stack, voidptr, cat->right);
1887 STACK_PUSHX(stack, voidptr, cat->left);
2139 tre_catenation_t *cat;
2208 cat = (tre_catenation_t *)node->obj;
2209 assert(cat->left->nullable);
2210 assert(cat->right->nullable);
2211 STACK_PUSHX(stack, voidptr, cat->left);
2212 STACK_PUSHX(stack, voidptr, cat->right);
2379 tre_catenation_t *cat = node->obj;
2380 node->nullable = cat->left->nullable && cat->right->nullable;
2383 if (cat->left->nullable)
2388 status = tre_match_empty(stack, cat->left,
2400 status = tre_match_empty(stack, cat->left, tags,
2408 tre_set_union(mem, cat->right->firstpos, cat->left->firstpos,
2416 node->firstpos = cat->left->firstpos;
2420 if (cat->right->nullable)
2425 status = tre_match_empty(stack, cat->right,
2437 status = tre_match_empty(stack, cat->right, tags,
2445 tre_set_union(mem, cat->left->lastpos, cat->right->lastpos,
2453 node->lastpos = cat->right->lastpos;
2628 tre_catenation_t *cat;
2646 cat = (tre_catenation_t *)node->obj;
2647 /* Add a transition from each position in cat->left->lastpos
2648 to each position in cat->right->firstpos. */
2649 errcode = tre_make_trans(cat->left->lastpos, cat->right->firstpos,
2653 errcode = tre_ast_to_tnfa(cat->left, transitions, counts, offs);
2656 errcode = tre_ast_to_tnfa(cat->right, transitions, counts, offs);