Mercurial > hg > Applications > Grep
comparison regexParser/main.cc @ 214:a94f57af1600
remove allocateCCstate createCCState
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 28 Dec 2015 20:32:36 +0900 |
parents | 4fefd80c05f2 |
children | 4852bfa85db4 |
comparison
equal
deleted
inserted
replaced
213:11b6332f0a42 | 214:a94f57af1600 |
---|---|
14 ri.ptr = (unsigned char*)argv[i+1]; i++; | 14 ri.ptr = (unsigned char*)argv[i+1]; i++; |
15 } | 15 } |
16 } | 16 } |
17 printf("regex : %s\n",ri.ptr); | 17 printf("regex : %s\n",ri.ptr); |
18 NodePtr n = regex(&ri); | 18 NodePtr n = regex(&ri); |
19 printTree(n); | |
19 TransitionGeneratorPtr tg = generateTransitionList(n); | 20 TransitionGeneratorPtr tg = generateTransitionList(n); |
20 printTree(n); | 21 printTree(n); |
21 printState(tg); | 22 printState(tg); |
22 return 0; | 23 return 0; |
23 } | 24 } |