Mercurial > hg > Applications > Grep
comparison c/regexParser/printTree.cc @ 91:912d7bd51f38
remove static variable in createRegexTree.cc
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 23 Oct 2015 18:53:46 +0900 |
parents | d139af3bbd67 |
children |
comparison
equal
deleted
inserted
replaced
90:d139af3bbd67 | 91:912d7bd51f38 |
---|---|
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(%d)%c\n",d*4, ' ',n->nodeNumber,n->Value.character); | 11 printf("%*c%c(%d)\n",d*4, ' ',n->Value.character,n->nodeNumber); |
12 } else { | 12 } else { |
13 printf("%*c%c\n",d*4, ' ',n->Value.character); | 13 printf("%*c%c\n",d*4, ' ',n->Value.character); |
14 } | 14 } |
15 | 15 |
16 if (n->left != NULL) { | 16 if (n->left != NULL) { |