comparison regexParser/test/ccMerge.cc @ 310:df27e6cab846

CharClassMerge with Word ( no match implementation )
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 08 Feb 2016 19:23:37 +0900
parents 1188debbef10
children
comparison
equal deleted inserted replaced
309:058c87665213 310:df27e6cab846
22 { 22 {
23 RegexInfo ri; 23 RegexInfo ri;
24 NodePtr n = NULL; 24 NodePtr n = NULL;
25 StatePtr s = NULL; 25 StatePtr s = NULL;
26 TGValue tgv = createTGValue(); 26 TGValue tgv = createTGValue();
27 State dummy;
28 tgv.tg->stateEnd = &dummy;
27 for (int i = 1; i < argc; i++) { 29 for (int i = 1; i < argc; i++) {
28 if (strcmp(argv[i],"-regex") == 0) { 30 if (strcmp(argv[i],"-regex") == 0) {
29 ri.ptr = (unsigned char*)argv[i+1]; i++; 31 ri.ptr = (unsigned char*)argv[i+1]; i++;
30 printf("regex : %s\n",ri.ptr); 32 printf("regex : %s\n",ri.ptr);
31 NodePtr nMerge = regex(&ri); 33 NodePtr nMerge = regex(&ri);