Mercurial > hg > Applications > Grep
comparison regexParser/determinize.cc @ 167:3bf2c6d6d53e pairPro
move regexparser dir
author | masa |
---|---|
date | Sat, 19 Dec 2015 15:38:45 +0900 |
parents | c/regexParser/determinize.cc@166136236891 |
children |
comparison
equal
deleted
inserted
replaced
166:96854eba17e5 | 167:3bf2c6d6d53e |
---|---|
1 #include "determinize.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 } |