Mercurial > hg > Members > masakoha > testcode
diff 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 |
line wrap: on
line diff
--- a/c/regexParser/node.cc Tue Dec 01 23:05:53 2015 +0900 +++ b/c/regexParser/node.cc Wed Dec 02 17:51:02 2015 +0900 @@ -7,8 +7,11 @@ descendTree(n->right, d); d--; } - - printf("%*c%s(%lu)\n",d*4, ' ',n->cc->cond->w->word,n->nodeNumber); + if (n->tokenType != 'a') { + printf("%*c%c(%lu)\n",d*4, ' ',n->tokenType,n->nodeNumber); + } else { + printf("%*c%s(%lu)\n",d*4, ' ',n->cc->cond->w->word,n->nodeNumber); + } if (n->left != NULL) { d++;