Mercurial > hg > Applications > Grep
diff regexParser/regexParser.h @ 288:f2491681914e
special state for start search
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 01 Feb 2016 01:35:12 +0900 |
parents | b74e3b4b11d7 |
children | 868f01f1ba8e |
line wrap: on
line diff
--- a/regexParser/regexParser.h Sun Jan 31 22:59:59 2016 +0900 +++ b/regexParser/regexParser.h Mon Feb 01 01:35:12 2016 +0900 @@ -94,6 +94,7 @@ long totalBasicState; StateStackPtr stack; StatePtr stateEnd; + StatePtr stateStart; // start state without accept flag StatePtr *stateArray; StatePtr stateList; StatePtr anyState; @@ -121,7 +122,7 @@ typedef struct tgValue { StatePtr asterisk; // last * state of the expression - StatePtr startState; + StatePtr startState; // startState of the expression StatePtr endState; TransitionGeneratorPtr tg; } TGValue, *TGValuePtr;