comparison 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
comparison
equal deleted inserted replaced
287:2f3e7bba038e 288:f2491681914e
92 typedef struct transitionGenerator { 92 typedef struct transitionGenerator {
93 long totalStateCount; 93 long totalStateCount;
94 long totalBasicState; 94 long totalBasicState;
95 StateStackPtr stack; 95 StateStackPtr stack;
96 StatePtr stateEnd; 96 StatePtr stateEnd;
97 StatePtr stateStart; // start state without accept flag
97 StatePtr *stateArray; 98 StatePtr *stateArray;
98 StatePtr stateList; 99 StatePtr stateList;
99 StatePtr anyState; 100 StatePtr anyState;
100 tsValue (*stateSkip)(tsValue tsv); 101 tsValue (*stateSkip)(tsValue tsv);
101 tsValue (*stateMatch)(tsValue tsv); 102 tsValue (*stateMatch)(tsValue tsv);
119 TState *blockEnd; 120 TState *blockEnd;
120 } TSValue, *TSValuePtr; 121 } TSValue, *TSValuePtr;
121 122
122 typedef struct tgValue { 123 typedef struct tgValue {
123 StatePtr asterisk; // last * state of the expression 124 StatePtr asterisk; // last * state of the expression
124 StatePtr startState; 125 StatePtr startState; // startState of the expression
125 StatePtr endState; 126 StatePtr endState;
126 TransitionGeneratorPtr tg; 127 TransitionGeneratorPtr tg;
127 } TGValue, *TGValuePtr; 128 } TGValue, *TGValuePtr;
128 129
129 enum charClassStackState { 130 enum charClassStackState {