Mercurial > hg > Applications > Grep
view c/regexParser/determinize.cc @ 116:66c633575b53 pairPro
remove error and warning
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 24 Nov 2015 17:07:08 +0900 |
parents | 1d30f70702df |
children | 166136236891 |
line wrap: on
line source
#include "transition.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; }