Mercurial > hg > Members > masakoha > testcode
diff regexParser/subsetConstraction.h @ 184:1da1b2eacb84 pairPro
gather struct
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 24 Dec 2015 20:09:21 +0900 |
parents | 7ae0a3070647 |
children | 109d22faf7b5 |
line wrap: on
line diff
--- a/regexParser/subsetConstraction.h Thu Dec 24 20:02:09 2015 +0900 +++ b/regexParser/subsetConstraction.h Thu Dec 24 20:09:21 2015 +0900 @@ -1,44 +1,4 @@ #include "transition.h" #define INIT_STATE_BIT 0 #define END_STATE_BIT 63 -typedef struct stateStack { - BitVector state; - struct stateStack *next; -} StateStack, *StateStackPtr; - -typedef struct transitionGenerator { - long stateMax; - StateStack stack; - StatePtr state; - StatePtr stateArray; - StatePtr stateArrayLast; - StatePtr currentState; - StatePtr nextState; -} TransitionGenerator, *TransitionGeneratorPtr; - -typedef struct tgValue { - bool asterisk; - int stateBegin; - int stateEnd; - StatePtr state; - TransitionGeneratorPtr tg; -} TGValue, *TGValuePtr; - -enum charClassStackState { - LEFT, - SELF, - RIGHT -}; - -typedef struct charClassStack { - charClassStackState turn; - CharClassPtr cc; - struct charClassStack *next; -} CharClassStack, *CharClassStackPtr; - -typedef struct charClassWalker { - CharClassStackPtr stack; - CharClassPtr next; -} CharClassWalker, *CharClassWalkerPtr; - CharClassPtr charClassMerge(CharClassPtr cc,unsigned long begin, unsigned long end, BitVector nextState);