Mercurial > hg > Members > masakoha > testcode
diff regexParser/subsetConstraction.cc @ 191:02031fb73af8 pairPro
remove somefiles and fix header files
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 25 Dec 2015 16:08:02 +0900 |
parents | 3e8e5780ad4a |
children | ecf70fb215a5 |
line wrap: on
line diff
--- a/regexParser/subsetConstraction.cc Fri Dec 25 15:30:52 2015 +0900 +++ b/regexParser/subsetConstraction.cc Fri Dec 25 16:08:02 2015 +0900 @@ -1,8 +1,11 @@ #include <stdio.h> #include <stdlib.h> #include <ctype.h> + +#include "regexParser.h" #include "subsetConstraction.h" #include "node.h" +#include "BitVector.h" CharClassPtr createCharClassWord(unsigned char *w, CharClassPtr cc1, CharClassPtr cc2) { CharClassPtr cc = NEW(CharClass); @@ -314,6 +317,7 @@ TransitionGeneratorPtr generateTransitionList(NodePtr n) { TransitionGeneratorPtr tg = createTransitionGenerator(); TGValue tgv; + // initiarize tgv tgv.asterisk = false; tgv.tg = tg; tgv.tg->startState = createState(tgv,n); @@ -321,6 +325,7 @@ tgv.tg->endState = createState(tgv,eof); tgv.stateBegin = 0; tgv.stateEnd = 1; + tgv.tgState = NULL; stateAllocate(n,tgv); tgv.tg->stateMax = tg->stateMax; BitVector bi = createBitVector(tg->stateMax);