]> iEval git - filters.git/blobdiff - cockney.l
releasing version 2.37
[filters.git] / cockney.l
index e6c0bdae91e4d1a25cdf7b96c064453dab24ce77..f6d0ad202958460041f56bb34a2264b86406019f 100644 (file)
--- a/cockney.l
+++ b/cockney.l
@@ -16,6 +16,20 @@ EW [ \t.,;!\?$]
 %Start junk
 
 %%
+
+%{
+       void eos() {
+           if (yytext[yyleng-1] == '.')
+               dintI();
+           else
+               unput(yytext[yyleng-1]);
+       }
+
+       void plastc() {
+           unput(yytext[yyleng-1]);
+       }
+%}
+
 <junk>.                        {       srandom(time(0L)); unput(yytext[0]); BEGIN 0; }
 {BW}[Tt]he{EW}         {       ECHO; bloody(); }
 {BW}[Ss]teal{EW}       {       printf("%c%cick",yytext[0],yytext[1]-5);
@@ -89,19 +103,6 @@ ime{EW}                     {       printf("oime"); eos(); }
 
 %%
 
-eos()
-{
-    if (yytext[yyleng-1] == '.')
-       dintI();
-    else
-       unput(yytext[yyleng-1]);
-}
-
-plastc()
-{
-    unput(yytext[yyleng-1]);
-}
-
 caseify(c)
 char c;
 {
This page took 0.019093 seconds and 4 git commands to generate.