/** * @file afdJetonFiltre.h * @brief Définition d'un AFD reconnaissant a(b+c)?|bd avec jetons et filtrage * @author Michel Meynard */ typedef enum { EINIT=0, EA, EAB, EABC, EB, EBD, NBETAT} Etat; // ATTENTION NBETAT doit être le dernier typedef enum { J_FILTRER=-1, J_EA=300, J_EABC } Jeton; int TRANS[NBETAT][256]; /* table de transition : état suivant */ int JETON[NBETAT]; /* jeton (1-32000) ou non final (0) ? */ void creerAfd(){ /* Construction de l'AFD */ int i;int j; /* variables locales */ for (i=0;i