Mercurial > hg > Applications > Grep
diff c/regexParser/node.cc @ 120:5d29b6a1b50f testcode
include Word in Node
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 26 Nov 2015 20:40:30 +0900 |
parents | 31b0ba0050fa |
children | 7925e9abb078 |
line wrap: on
line diff
--- a/c/regexParser/node.cc Thu Nov 26 17:19:00 2015 +0900 +++ b/c/regexParser/node.cc Thu Nov 26 20:40:30 2015 +0900 @@ -7,11 +7,8 @@ descendTree(n->right, d); d--; } - if (n->tokenType == 'a') { - printf("%*c%s(%lu)\n",d*4, ' ',n->cc->cond->w->word,n->nodeNumber); - } else { - printf("%*c%s\n",d*4, ' ',n->cc->cond->w->word); - } + + printf("%*c%s(%lu)\n",d*4, ' ',n->cc->cond->w->word,n->nodeNumber); if (n->left != NULL) { d++;