]> iEval git - filters.git/blobdiff - nyc.l
use English
[filters.git] / nyc.l
diff --git a/nyc.l b/nyc.l
index 8505c1652ab79b3e21793130e5aad149db369104..b00f2b078288d1acaccc727f47b9c1818a271590 100644 (file)
--- a/nyc.l
+++ b/nyc.l
@@ -12,6 +12,11 @@ BW [ \t]
 SP [ \t]
 EW [ \t.,;!\?$]
 %%
+%{
+       void plastc() {
+               yyunput(yytext[yyleng-1], yytext);
+       }
+%}
 ".so ".*$                      printf("%s", yytext);
 [ao]ther                       printf("%cdder", yytext[0]=='a'?'a':'u');
 [Nn]othing                     printf("%cuttin'", yytext[0]);
@@ -66,10 +71,6 @@ negro                                printf("spade");
 !                              printf("!  Okay?");
 [a-z]"."               {       printf("%s", yytext);expletive();}
 %%
-plastc()
-{
-       unput(yytext[yyleng-1]);
-}
 
 caseify(c)
 char c;
@@ -95,3 +96,13 @@ expletive()
                        }
                }
 }
+
+main()
+{
+       yylex();
+}
+
+int yywrap()
+{
+       return 1;
+}
This page took 0.020214 seconds and 4 git commands to generate.