X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=cockney.l;h=4cc1555dc2ff75c9096bba477586bd997258fc23;hb=846aed59c5121e74a5d8c7b9c0421487933d1536;hp=e6c0bdae91e4d1a25cdf7b96c064453dab24ce77;hpb=dc17484ae227d51938596b51191e2f1991b7ca51;p=filters.git diff --git a/cockney.l b/cockney.l index e6c0bda..4cc1555 100644 --- a/cockney.l +++ b/cockney.l @@ -15,7 +15,15 @@ EW [ \t.,;!\?$] %Start junk +%option noyywrap + %% + +%{ +void eos(); +void plastc(); +%} + . { 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,15 +97,15 @@ ime{EW} { printf("oime"); eos(); } %% -eos() +void eos() { if (yytext[yyleng-1] == '.') - dintI(); + dintI(); else - unput(yytext[yyleng-1]); + unput(yytext[yyleng-1]); } -plastc() +void plastc() { unput(yytext[yyleng-1]); }