comparison c/regexParser/node.cc @ 118:31b0ba0050fa testcode

text
author Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
date Thu, 26 Nov 2015 17:19:00 +0900
parents 166136236891
children 5d29b6a1b50f
comparison
equal deleted inserted replaced
117:166136236891 118:31b0ba0050fa
6 d++; 6 d++;
7 descendTree(n->right, d); 7 descendTree(n->right, d);
8 d--; 8 d--;
9 } 9 }
10 if (n->tokenType == 'a') { 10 if (n->tokenType == 'a') {
11 printf("%*c%c(%lu)\n",d*4, ' ',n->cc->cond->character,n->nodeNumber); 11 printf("%*c%s(%lu)\n",d*4, ' ',n->cc->cond->w->word,n->nodeNumber);
12 } else { 12 } else {
13 printf("%*c%c\n",d*4, ' ',n->cc->cond->character); 13 printf("%*c%s\n",d*4, ' ',n->cc->cond->w->word);
14 } 14 }
15 15
16 if (n->left != NULL) { 16 if (n->left != NULL) {
17 d++; 17 d++;
18 descendTree(n->left, d); 18 descendTree(n->left, d);