1 char rcsid_pattern[] = "$Id$";
7 newPattern(op) Operator op;
11 p = (Pattern) zalloc(sizeof(struct pattern));
17 dumpPattern(p) Pattern p;
22 printf("[no-pattern]");
27 printf("%s", p->op->name);
28 if (p->op->arity > 0) {
30 for (i = 0; i < p->op->arity; i++) {
31 printf("%s ", p->children[i]->name);
36 printf("%s", p->children[0]->name);