Mercurial > hg > Applications > Grep
comparison regexParser/main.cc @ 189:fccf7941ecc2 pairPro
fix
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 25 Dec 2015 14:42:31 +0900 |
parents | ef798db705e9 |
children | 3e8e5780ad4a |
comparison
equal
deleted
inserted
replaced
188:109d22faf7b5 | 189:fccf7941ecc2 |
---|---|
3 #include <string.h> | 3 #include <string.h> |
4 #include "regexParser.h" | 4 #include "regexParser.h" |
5 | 5 |
6 extern NodePtr regex(RegexInfoPtr); | 6 extern NodePtr regex(RegexInfoPtr); |
7 extern void printTree(NodePtr); | 7 extern void printTree(NodePtr); |
8 | 8 extern TransitionGeneratorPtr generateTransitionList(NodePtr n); |
9 int main(int argc, char **argv) | 9 int main(int argc, char **argv) |
10 { | 10 { |
11 RegexInfo ri; | 11 RegexInfo ri; |
12 ri.stateNumber = 1; | 12 ri.stateNumber = 1; |
13 for (int i = 1; i < argc; i++) { | 13 for (int i = 1; i < argc; i++) { |
16 } | 16 } |
17 } | 17 } |
18 printf("regex : %s\n",ri.ptr); | 18 printf("regex : %s\n",ri.ptr); |
19 NodePtr n = regex(&ri); | 19 NodePtr n = regex(&ri); |
20 printTree(n); | 20 printTree(n); |
21 TransitionGeneratorPtr tg = generateTransitionList(n); | |
21 return 0; | 22 return 0; |
22 } | 23 } |