Mercurial > hg > Members > masakoha > testcode
comparison c/regexParser/node.cc @ 130:7925e9abb078 pairPro
add or flag
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 02 Dec 2015 17:51:02 +0900 |
parents | 5d29b6a1b50f |
children | a436526756b9 |
comparison
equal
deleted
inserted
replaced
129:b930be74a16e | 130:7925e9abb078 |
---|---|
5 if (n->right != NULL) { | 5 if (n->right != NULL) { |
6 d++; | 6 d++; |
7 descendTree(n->right, d); | 7 descendTree(n->right, d); |
8 d--; | 8 d--; |
9 } | 9 } |
10 | 10 if (n->tokenType != 'a') { |
11 printf("%*c%s(%lu)\n",d*4, ' ',n->cc->cond->w->word,n->nodeNumber); | 11 printf("%*c%c(%lu)\n",d*4, ' ',n->tokenType,n->nodeNumber); |
12 } else { | |
13 printf("%*c%s(%lu)\n",d*4, ' ',n->cc->cond->w->word,n->nodeNumber); | |
14 } | |
12 | 15 |
13 if (n->left != NULL) { | 16 if (n->left != NULL) { |
14 d++; | 17 d++; |
15 descendTree(n->left, d); | 18 descendTree(n->left, d); |
16 d--; | 19 d--; |