Mercurial > hg > Applications > Grep
annotate c/regexParser/determinize.cc @ 112:ec485345daf9 pairPro
some function use static
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 23 Nov 2015 15:54:19 +0900 |
parents | 1d30f70702df |
children | 66c633575b53 |
rev | line source |
---|---|
111 | 1 #include "transition.h" |
2 | |
3 TransitionPtr determinize(TransitionPtr cond, TransitionPtr list) { | |
4 TransitionPtr x0 = createTransition(x->condition, x->nextState); | |
5 TransitionPtr x1 = x0; | |
6 for(;;) { | |
7 if (x->next == NULL) { | |
8 x1->next = y; | |
9 return x0; | |
10 } | |
11 x = x->next; | |
12 x1->next = createTransition(x->condition, x->nextState); | |
13 x1 = x1->next; | |
14 } | |
15 return x0; | |
16 } |