Mercurial > hg > Members > masakoha > testcode
changeset 238:5d66672e5029
recover to previous version
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 20 Jan 2016 08:58:35 +0900 |
parents | b809e7b62986 |
children | f5931151d70c |
files | regexParser/subsetConstruction.cc |
diffstat | 1 files changed, 2 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/regexParser/subsetConstruction.cc Tue Jan 19 19:24:01 2016 +0900 +++ b/regexParser/subsetConstruction.cc Wed Jan 20 08:58:35 2016 +0900 @@ -250,14 +250,9 @@ return tgv2; } else if (n->tokenType == '*') { TGValue tgvAstah = tgv; - if (tgvAstah.endState->bitState.bitContainer & 2) { - tgvAstah.endState = tgvAstah.startState; - tgvAstah.endState->bitState = bitSet(tgvAstah.endState->bitState,1); - } else { - tgvAstah.endState = tgvAstah.startState; - } + tgvAstah.endState = tgvAstah.startState; tgvAstah = generateTransition(n->left,tgvAstah,pass); - tgvAstah.asterisk = tgvAstah.endState; + tgvAstah.asterisk = tgvAstah.startState; return tgvAstah; } else if (n->tokenType == 'c' || n->tokenType == 'a'){ TGValue tgv1 = tgv;