Mercurial > hg > Applications > Grep
diff c/regexParser/createRegexParser.cc @ 99:1e5b56e8263b impl-bitvector
remove some variable
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 10 Nov 2015 20:57:59 +0900 |
parents | 0b6940588e88 |
children | 3eb3cb5d581f |
line wrap: on
line diff
--- a/c/regexParser/createRegexParser.cc Tue Nov 10 18:08:53 2015 +0900 +++ b/c/regexParser/createRegexParser.cc Tue Nov 10 20:57:59 2015 +0900 @@ -23,7 +23,9 @@ n->left = left; n->right = right; - if (ri->tokenType != 'a') { + if (ri->tokenType == '*') { + n->left->parent = n->self; + } else if (ri->tokenType != 'a') { n->right = right; n->left->parent = n->right->parent = n->self; }