Mercurial > hg > Applications > Grep
diff c/regexParser/node.cc @ 144:d8a4922eceae pairPro
remove some errors (not working)
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 14 Dec 2015 17:14:33 +0900 |
parents | 6c258910cacb |
children | 50217a0545e8 |
line wrap: on
line diff
--- a/c/regexParser/node.cc Fri Dec 11 15:04:58 2015 +0900 +++ b/c/regexParser/node.cc Mon Dec 14 17:14:33 2015 +0900 @@ -4,8 +4,8 @@ static void printCharacterClass(CharClassPtr cc, long nodeNumber,int d) { if (cc->type == 'r') { printf("%*c",d*4, ' '); - for (RangeListPtr range = cc->cond->range; range; range = range->next) { - printf("[%c-%c] ",*range->begin,*range->end); + for (RangeList range = cc->cond.range; range.begin != 0; range = *range.next) { + printf("[%c-%c] ",(unsigned char)range.begin,(unsigned char)range.end); } printf("(%lu)\n",nodeNumber); } @@ -19,8 +19,8 @@ } if (n->tokenType == 'a') { printf("%*c",d*4, ' '); - for (int i = 0; i < n->cc->cond->w->length; i++) { - putchar(n->cc->cond->w->word[i]); + for (int i = 0; i < n->cc->cond.w.length; i++) { + putchar(n->cc->cond.w.word[i]); } printf("(%lu)\n",n->nodeNumber); } else if (n->tokenType == 'c') {