Lines Matching defs:stream
106 tre_findent(FILE *stream, int i)
109 fputc(' ', stream);
135 tre_do_print(FILE *stream, tre_ast_node_t *ast, int indent)
142 tre_findent(stream, indent);
152 fprintf(stream, "literal empty\n");
161 fprintf(stream, "assertions: ");
164 fprintf(stream, "%s ", assertions[i]);
165 fprintf(stream, "\n");
169 fprintf(stream, "tag %d\n", code_max);
173 fprintf(stream, "backref %d, pos %d\n", code_max, pos);
178 fprintf(stream, "\n");
182 fprintf(stream, "literal (%c, %c) (%d, %d), pos %d, sub %d, "
189 fprintf(stream, "iteration {%d, %d}, sub %d, %d tags, %s\n",
192 tre_do_print(stream, iter->arg, indent + 2);
195 fprintf(stream, "union, sub %d, %d tags\n", ast->submatch_id, num_tags);
196 tre_do_print(stream, ((tre_union_t *)ast->obj)->left, indent + 2);
197 tre_do_print(stream, ((tre_union_t *)ast->obj)->right, indent + 2);
200 fprintf(stream, "catenation, sub %d, %d tags\n", ast->submatch_id,
202 tre_do_print(stream, ((tre_catenation_t *)ast->obj)->left, indent + 2);
203 tre_do_print(stream, ((tre_catenation_t *)ast->obj)->right, indent + 2);
212 tre_ast_fprint(FILE *stream, tre_ast_node_t *ast)
214 tre_do_print(stream, ast, 0);