Mercurial > hg > Applications > Grep
view regexParser/main.cc @ 208:2ec95755238e
fix mergetest
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 27 Dec 2015 18:46:08 +0900 |
parents | 4fefd80c05f2 |
children | a94f57af1600 |
line wrap: on
line source
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "regexParser.h" #include "subsetConstraction.h" #include "node.h" int main(int argc, char **argv) { RegexInfo ri; ri.stateNumber = 1; for (int i = 1; i < argc; i++) { if (strcmp(argv[i],"-regex") == 0) { ri.ptr = (unsigned char*)argv[i+1]; i++; } } printf("regex : %s\n",ri.ptr); NodePtr n = regex(&ri); TransitionGeneratorPtr tg = generateTransitionList(n); printTree(n); printState(tg); return 0; }