/[eliot]/eliot/dic/regexpmain.c
ViewVC logotype

Diff of /eliot/dic/regexpmain.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by afrab, Wed Apr 27 17:35:03 2005 UTC revision 1.7 by afrab, Thu May 5 23:45:04 2005 UTC
# Line 1  Line 1 
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.                              */
# Line 94  int main(int argc, char* argv[]) Line 95  int main(int argc, char* argv[])
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);
# Line 106  int main(int argc, char* argv[]) Line 111  int main(int argc, char* argv[])
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    

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26