X-Git-Url: http://git.ieval.ro/?p=filters.git;a=blobdiff_plain;f=ken.l;h=dc2ce76237bbcae851b92c8b3f4c356e5c3acd2a;hp=6e031810ab87c59d33881be9ff62a558e0e7c73a;hb=HEAD;hpb=7e3afbbacdd24f8c3fb87599eeda32b977fe6d6c diff --git a/ken.l b/ken.l index 6e03181..dc2ce76 100644 --- a/ken.l +++ b/ken.l @@ -7,6 +7,10 @@ * Written by Stephen K Mulrine * 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 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(); -}