view regexParser/determinize.cc @ 188:109d22faf7b5 pairPro

remove errors and warnings
author Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
date Fri, 25 Dec 2015 02:57:21 +0900
parents 3bf2c6d6d53e
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;
}