Mercurial > hg > Members > masakoha > testcode
comparison regexParser/node.cc @ 217:a9e3512120e2
NFA generation end
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 30 Dec 2015 18:37:01 +0900 |
parents | 4852bfa85db4 |
children | 3e78631a6222 |
comparison
equal
deleted
inserted
replaced
216:4852bfa85db4 | 217:a9e3512120e2 |
---|---|
31 if (n->tokenType == 'a') { | 31 if (n->tokenType == 'a') { |
32 printf("%*c",d*4, ' '); | 32 printf("%*c",d*4, ' '); |
33 for (int i = 0; i < n->cc->cond.w.length; i++) { | 33 for (int i = 0; i < n->cc->cond.w.length; i++) { |
34 putchar(n->cc->cond.w.word[i]); | 34 putchar(n->cc->cond.w.word[i]); |
35 } | 35 } |
36 if (n->state) { | 36 if (n->state && n->nextState) { |
37 printf("(%ld)->(%ld)\n",n->state->bitState.bitContainer,n->nextState->bitState.bitContainer); | 37 printf("(%ld)->(%ld)\n",n->state->bitState.bitContainer,n->nextState->bitState.bitContainer); |
38 } else if (n->state) { | |
39 printf("(%ld)\n",n->state->bitState.bitContainer); | |
38 } else { | 40 } else { |
39 printf("\n"); | 41 printf("\n"); |
40 } | 42 } |
41 } else if (n->tokenType == 'c') { | 43 } else if (n->tokenType == 'c') { |
42 printCharacterClass(n->cc,n->stateNum,d); | 44 printCharacterClass(n->cc,n->stateNum,d); |