Also close bug
[filters.git] / ken.l
diff --git a/ken.l b/ken.l
index 6e031810ab87c59d33881be9ff62a558e0e7c73a..dc2ce76237bbcae851b92c8b3f4c356e5c3acd2a 100644 (file)
--- a/ken.l
+++ b/ken.l
@@ -7,6 +7,10 @@
  * Written by Stephen K Mulrine <smulrine%cs.strath.ac.uk@nsfnet-relay.ac.uk>
  * Make copies if you want etc.etc.
  * 
+ * Contacted author in June 2001, asked him to clarify the license, he replied
+ * with some improvements and placed the program in the public domain.
+ *         -- Edward Betts <edward@debian.org> Mon, 11 Jun 2001 12:04:29 +0100
+ * 
  * ken is named after Ken the Chirpy Cockney Character from the Viz Comic (tm),
  * who speaks somewhat like that.
  */
@@ -208,6 +212,9 @@ directories printf("lockups");
 [Aa][Ll][Gg][Oo][Ll]   printf("Johnny Ball");
 [Ff][Oo][Rr][Tt][Rr][Aa][Nn]   printf("Manfred Mann");
 [Cc][Oo][Bb][Oo][Ll]   printf("Albert Hall");
+[Jj]ava                printf("Wot a palavah");
+W[aA][pP]      printf("Pony and trap");
+" wap"         printf(" pony and trap");
 Stopped                printf("'Ad the mockers put on");
 stopped                printf("'ad the mockers put on");
 Stopping       printf("Putting the mockers on");
@@ -241,11 +248,15 @@ Th                printf("F");
 Wh             printf("W");
 wh             printf("w");
 aw             printf("or");
-" sing"                ECHO;
-" ring"                ECHO;
+" "[BbKkMmPpRrSsWw]ing ECHO;
+" "[Bb]ring    ECHO;
+" "[Ss]ting    ECHO;
+" "[Ss]wing    ECHO;
+" "[CcFfSs]ling        ECHO;
+" Thing"       printf(" Fing");
+" thing"       printf(" fing");
+
 "ing "         printf("in' ");
-" th"          printf(" f");
-"th"           printf("ff");
 ". "           {   switch(rand()%32)
                    {
                    case 0: printf(". I'll get out me spoons. "); break;
@@ -272,12 +283,6 @@ aw         printf("or");
                    case 5: ECHO; break;
                    }
                }
-.              printf(yytext);
+.              printf("%s", yytext);
 \n             printf("\n");
 %%
-
-main()
-{
-       srand(getpid());
-       yylex();
-}
This page took 0.010025 seconds and 4 git commands to generate.