1 /* CCL print rpn tree - infix notation
5 * Revision 1.1 1995/02/14 10:25:56 adam
6 * The constructions 'qualifier rel term ...' implemented.
16 void ccl_pr_tree (struct ccl_rpn_node *rpn)
22 printf ("\"%s\"", rpn->u.t.term);
23 if (rpn->u.t.attr_list)
25 struct ccl_rpn_attr *attr;
26 for (attr = rpn->u.t.attr_list; attr; attr = attr->next)
27 printf (" %d=%d", attr->type, attr->value);
32 ccl_pr_tree (rpn->u.p[0]);
34 ccl_pr_tree (rpn->u.p[1]);
39 ccl_pr_tree (rpn->u.p[0]);
41 ccl_pr_tree (rpn->u.p[1]);
46 ccl_pr_tree (rpn->u.p[0]);
48 ccl_pr_tree (rpn->u.p[1]);
52 printf ("set=%s", rpn->u.setname);
56 ccl_pr_tree (rpn->u.p[0]);
58 ccl_pr_tree (rpn->u.p[1]);