Mercurial > hg > Members > masakoha > testcode
diff c/regexParser/subsetConstraction.cc @ 146:1c74ac7d56ec pairPro
fix
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 15 Dec 2015 16:20:35 +0900 |
parents | d8a4922eceae |
children | d1ebba6e117a |
line wrap: on
line diff
--- a/c/regexParser/subsetConstraction.cc Mon Dec 14 19:39:16 2015 +0900 +++ b/c/regexParser/subsetConstraction.cc Tue Dec 15 16:20:35 2015 +0900 @@ -5,6 +5,11 @@ static CharClassPtr createCharClassWord(unsigned char *w, CharClassPtr cc1, CharClassPtr cc2) { + CharClassPtr cc = NEW(CharClass); + cc->type = 'a'; + cc->cond.w.word = ri->tokenValue; + cc->cond.w.length = ri->ptr - ri->tokenValue; + cc->nextState.bitContainer = 0; return cc1; } @@ -60,28 +65,8 @@ } } -StatePtr createStateList(NodePtr n) { - StatePtr s0 = NULL; - if (n->left != NULL) { - s0 = createStateList(n->left); - } - - if (n->tokenType == 'a') { - BitVectorPtr bi = createBitVector(n); - StatePtr s1 = createState(bi,0,0); - } else if (n->tokenType == '+' || n->tokenType == '|') { - - } - - if (n->right != NULL) { - s0 = createStateList(n->right); - } - return s0; -} - TransitionGenerator generateTransitionList(NodePtr n) { TransitionGenerator tg; - tg.state = createStateList(n); generateTransition(n,tg); return tg; }