Mercurial > hg > Members > masakoha > testcode
view c/regexParser/determinize.cc @ 124:c363a66dc1a7 pairPro
fix
author | masa |
---|---|
date | Tue, 01 Dec 2015 17:06:26 +0900 |
parents | 166136236891 |
children |
line wrap: on
line source
#include "determinize.h" TransitionPtr determinize(TransitionPtr cond, TransitionPtr list) { TransitionPtr x0 = createTransition(x->condition, x->nextState); TransitionPtr x1 = x0; for(;;) { if (x->next == NULL) { x1->next = y; return x0; } x = x->next; x1->next = createTransition(x->condition, x->nextState); x1 = x1->next; } return x0; }