1 |
/* Eliot */ |
/* Eliot */ |
2 |
/* Copyright (C) 1999 antoine.fraboulet */ |
/* Copyright (C) 1999 Antoine Fraboulet */ |
|
/* antoine.fraboulet@free.fr */ |
|
3 |
/* */ |
/* */ |
4 |
/* This program is free software; you can redistribute it and/or modify */ |
/* This file is part of Eliot. */ |
5 |
|
/* */ |
6 |
|
/* Eliot is free software; you can redistribute it and/or modify */ |
7 |
/* it under the terms of the GNU General Public License as published by */ |
/* it under the terms of the GNU General Public License as published by */ |
8 |
/* the Free Software Foundation; either version 2 of the License, or */ |
/* the Free Software Foundation; either version 2 of the License, or */ |
9 |
/* (at your option) any later version. */ |
/* (at your option) any later version. */ |
10 |
/* */ |
/* */ |
11 |
/* This program is distributed in the hope that it will be useful, */ |
/* Elit is distributed in the hope that it will be useful, */ |
12 |
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */ |
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */ |
13 |
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ |
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ |
14 |
/* GNU General Public License for more details. */ |
/* GNU General Public License for more details. */ |
95 |
|
|
96 |
while (strcmp(er,"")) |
while (strcmp(er,"")) |
97 |
{ |
{ |
98 |
fprintf(stdout,"\nentrer une ER:\n"); |
fprintf(stdout,"**************************************************************\n"); |
99 |
|
fprintf(stdout,"**************************************************************\n"); |
100 |
|
fprintf(stdout,"entrer une ER:\n"); |
101 |
fgets(er,sizeof(er),stdin); |
fgets(er,sizeof(er),stdin); |
102 |
/* strip \n */ |
/* strip \n */ |
103 |
er[strlen(er) - 1] = '\0'; |
er[strlen(er) - 1] = '\0'; |
104 |
|
if (strcmp(er,"") == 0) |
105 |
|
break; |
106 |
|
|
107 |
/* automaton */ |
/* automaton */ |
108 |
init_letter_lists(&list); |
init_letter_lists(&list); |
111 |
fprintf(stdout,"résultat:\n"); |
fprintf(stdout,"résultat:\n"); |
112 |
for(i=0; i<RES_REGE_MAX && wordlist[i][0]; i++) |
for(i=0; i<RES_REGE_MAX && wordlist[i][0]; i++) |
113 |
{ |
{ |
114 |
fprintf(stdout," %03d : %s\n",i,wordlist[i]); |
fprintf(stderr,"%s\n",wordlist[i]); |
115 |
} |
} |
116 |
} |
} |
117 |
|
|