Mercurial > hg > Applications > Grep
comparison regexParser/node.cc @ 187:ef798db705e9 pairPro
remove some warnings and errors(not working)
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 24 Dec 2015 22:38:50 +0900 |
parents | b9e913030a47 |
children | 3e8e5780ad4a |
comparison
equal
deleted
inserted
replaced
186:3e8aae8beba9 | 187:ef798db705e9 |
---|---|
13 range = *range.next; | 13 range = *range.next; |
14 } else { | 14 } else { |
15 break; | 15 break; |
16 } | 16 } |
17 } | 17 } |
18 printf("(%lu)\n",nodeNumber); | 18 printf("(%ld)\n",nodeNumber); |
19 if (cc->right) { | 19 if (cc->right) { |
20 printCharacterClass(cc->right,nodeNumber,d+1); | 20 printCharacterClass(cc->right,nodeNumber,d+1); |
21 } | 21 } |
22 } | 22 } |
23 } | 23 } |
29 if (n->tokenType == 'a') { | 29 if (n->tokenType == 'a') { |
30 printf("%*c",d*4, ' '); | 30 printf("%*c",d*4, ' '); |
31 for (int i = 0; i < n->cc->cond.w.length; i++) { | 31 for (int i = 0; i < n->cc->cond.w.length; i++) { |
32 putchar(n->cc->cond.w.word[i]); | 32 putchar(n->cc->cond.w.word[i]); |
33 } | 33 } |
34 printf("(%lu)\n",n->nodeNumber); | 34 printf("(%d)\n",n->stateNum); |
35 } else if (n->tokenType == 'c') { | 35 } else if (n->tokenType == 'c') { |
36 printCharacterClass(n->cc,n->nodeNumber,d); | 36 printCharacterClass(n->cc,n->stateNum,d); |
37 } else if (n->tokenType == 'a') { | 37 } else if (n->tokenType == 'a') { |
38 printf("%*c%c(%lu)\n",d*4, ' ',n->tokenType,n->nodeNumber); | 38 printf("%*c%c(%d)\n",d*4, ' ',n->tokenType,n->stateNum); |
39 } else { | 39 } else { |
40 printf("%*c%c\n",d*4, ' ',n->tokenType); | 40 printf("%*c%c\n",d*4, ' ',n->tokenType); |
41 } | 41 } |
42 | 42 |
43 if (n->right != NULL) { | 43 if (n->right != NULL) { |