X-Git-Url: http://git.ieval.ro/?p=filters.git;a=blobdiff_plain;f=cockney.l;fp=cockney.l;h=4cc1555dc2ff75c9096bba477586bd997258fc23;hp=f6d0ad202958460041f56bb34a2264b86406019f;hb=ff7b46743fdcbc5ce956e98f68bbd16dc5ed6e3b;hpb=e372af427787f4a8870b18b5657f339f79f2422b diff --git a/cockney.l b/cockney.l index f6d0ad2..4cc1555 100644 --- a/cockney.l +++ b/cockney.l @@ -15,19 +15,13 @@ EW [ \t.,;!\?$] %Start junk +%option noyywrap + %% %{ - void eos() { - if (yytext[yyleng-1] == '.') - dintI(); - else - unput(yytext[yyleng-1]); - } - - void plastc() { - unput(yytext[yyleng-1]); - } +void eos(); +void plastc(); %} . { srandom(time(0L)); unput(yytext[0]); BEGIN 0; } @@ -103,6 +97,19 @@ ime{EW} { printf("oime"); eos(); } %% +void eos() +{ + if (yytext[yyleng-1] == '.') + dintI(); + else + unput(yytext[yyleng-1]); +} + +void plastc() +{ + unput(yytext[yyleng-1]); +} + caseify(c) char c; {