Mercurial > hg > Applications > Grep
comparison regexParser/node.cc @ 300:3e78631a6222
remove ragne list
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 03 Feb 2016 13:56:01 +0900 |
parents | a9e3512120e2 |
children | 058c87665213 |
comparison
equal
deleted
inserted
replaced
299:bdfe0a32c48f | 300:3e78631a6222 |
---|---|
7 if (cc->type == 'a' || cc->type == 'r') { | 7 if (cc->type == 'a' || cc->type == 'r') { |
8 if (cc->left) { | 8 if (cc->left) { |
9 printCharacterClass(cc->left,nodeNumber,d+1); | 9 printCharacterClass(cc->left,nodeNumber,d+1); |
10 } | 10 } |
11 printf("%*c",d*4, ' '); | 11 printf("%*c",d*4, ' '); |
12 for (RangeList range = cc->cond.range; range.begin != 0;) { | 12 RangeList range = cc->cond.range; |
13 printf("[%c-%c] ",(unsigned char)range.begin,(unsigned char)range.end); | 13 printf("[%c-%c] ",(unsigned char)range.begin,(unsigned char)range.end); |
14 if (range.next != NULL) { | |
15 range = *range.next; | |
16 } else { | |
17 break; | |
18 } | |
19 } | |
20 printf("(%lx)\n",cc->nextState.bitContainer); | 14 printf("(%lx)\n",cc->nextState.bitContainer); |
21 if (cc->right) { | 15 if (cc->right) { |
22 printCharacterClass(cc->right,nodeNumber,d+1); | 16 printCharacterClass(cc->right,nodeNumber,d+1); |
23 } | 17 } |
24 } | 18 } |