Initial revision
[filters.git] / b1ff.l
1
2 %e 2000
3 %p 5000
4 %n 1000
5 %k 500
6 %a 4000
7 %o 2000
8 BW [ ]
9 EW [ .,;!?]
10
11 %{
12
13 /*
14 * The B1FF filter.
15 *
16 * Modification History
17 *
18 * - Created Sat Feb 26 04:02:01 EST 1994 by Dave Baggett <dmb@ai.mit.edu>,
19 * who obviously had too much time on his hands. Based on the earlier
20 * "jive" filter of unknown origin.
21 *
22 * -------------------------------------------------------------------------
23 * To build the B1FF filter, do the following:
24 *
25 * lex biff.l
26 * cc -o biff lex.yy.c -ll
27 * rm lex.yy.c
28 *
29 * Optionally replace lex and cc above with flex and gcc.
30 *
31 * To use the executable, pipe stuff to it; e.g.,
32 *
33 * cat foo | biff
34 *
35 */
36
37 char buf[128];
38 int count = 0;
39 char WhAt[]="@(#)DAVE BAGGETT-S B1FF!!1 FlLTER + A CHANGE OR 2 BYE BGRIFFIN\n@(#)$Header: b1ff.l,v 1.4 94/05/07 20:42:53 bgriffin Final $";
40
41 %}
42
43 %%
44
45 " and " printf(" + ");
46 " plus " printf(" + ");
47 "you're" printf("YOUR");
48 your printf("UR");
49 "it's" printf("1TZ");
50 its printf("1T'Z");
51 here printf("HEAR");
52 hear printf("HERE");
53 "they're" printf("THE1R");
54 their printf("THERE");
55 there printf("THEY'RE");
56 was printf("WUZ");
57 etc printf("U GET THE 1DEA");
58 e[.]g[.] printf("LAIK THIS");
59 i[.]e[.] printf("U NOE LAIK");
60 " are " printf(" R ");
61 "be " printf("B ");
62 before printf("B4");
63 " to " printf(" 2 ");
64 this printf("TH1S");
65 like printf("LA1K");
66 total printf("TODAL");
67 "and I" printf("+ ME");
68
69 good printf("K00L");
70 okay printf("C00L");
71 ok printf("K00L");
72 interesting printf("C00L");
73 neat printf("Q00L");
74 nifty printf("Q00L");
75 useful printf("K00L");
76 great printf("RAD");
77 functional printf("RAD");
78 excellent printf("X-L-ENT");
79 very printf("TOTALLY");
80 quite printf("REAL");
81 really printf("REAL");
82 new printf("NU");
83 recent printf("RAD NU");
84
85 result printf("TH1NG");
86 ramification printf("TH1NG");
87 reason printf("TH1NG");
88 conclusion printf("TH1NG");
89 results printf("STUFF");
90 ramifications printf("STUFF");
91 reasons printf("STUFF");
92 conclusions printf("STUFF");
93
94 files printf("WAREZ");
95 program printf("GAME");
96 programs printf("WAREZ");
97 game printf("KRACKED GAME");
98 games printf("GAMEZ");
99 [Uu][Nn][Ii][Xx] printf("THE MANEFRA1M O/S");
100 [Dd][Oo][Ss] printf("THE VIC-20 TAPE DRIVE SCR1PTER");
101 disk printf("TAPE");
102 computer printf("VIC-20");
103 workstation printf("MANEFRA1M");
104 supercomputer printf("MANEFRAM");
105 [Cc]ray printf("K1CKASS MANEFRA1M");
106 "Connection Machine" printf("TODALY RAD KOMPUTUR BRANE");
107 machine printf("VIC-20");
108 [Aa][Tt][Aa][Rr][Ii] printf("PEACE UV SH1T ATAR1");
109 [Aa][Pp][Pp][Ll][Ee] printf("PEACE UV SH1T APPEL");
110 [Aa][Mm][Ii][Gg][Aa] printf("WORKSTASHUN");
111 [Mm]acintosh printf("MACK1NTRASH");
112 upload printf("U/L");
113 download printf("D/L");
114 load printf("U/L");
115 save printf("D/L");
116 send printf("U/L");
117 receive printf("D/L");
118 ftp printf("XMODEM");
119 buy printf("D-L");
120
121 [Pp]ascal printf("THAT WUSSY LANGUAGE");
122 [Mm]odula.[23] printf("THAT WUSSY SH1T LANGUAGE");
123 [Ll]isp printf("THAT KOMPUTUR BRANE LANGUAGE");
124 [Ss]cheme printf("THAT TODAL NURD LANGUAGE");
125 [Aa]da printf("THAT K00L NU ARMY LANGUAGE");
126 [Pp]ost[Ss]cript printf("PRINTUR KODEZ");
127 [Aa]ssembly printf("CPU KODE");
128 [Aa]ssembler printf("CPU KODE");
129
130 newsgroup printf("MESSAGE BASE");
131 news printf("MESSAGES");
132 thread printf("BOARD");
133 [Uu]senet printf("THE MANEFRAIM BOARDZ");
134 [Nn]et[Nn]ews printf("THE BOARDZ");
135
136 fool printf("LUZER");
137 moron printf("LAMER");
138 idiot printf("LAMER");
139 jerk printf("HOZER");
140 dweeb printf("LUZER");
141 geek printf("HOZER");
142 nerd printf("LUZER");
143
144 " man " printf(" D00D ");
145 " men " printf(" D00DZ ");
146 woman printf("BABE");
147 women printf("BABEZ");
148 wife printf("BABE");
149 husband printf("LOVERD00D");
150 girlfriend printf("PEACE");
151 boyfriend printf("STUD");
152 girl printf("TODAL BABE");
153 person printf("D00D");
154 people printf("D00DZ");
155 friend printf("FRE1ND");
156
157 sure printf("SHUR");
158 "got to" printf("GOTTA");
159 "want to" printf("WANNA");
160 "have to" printf("HAFTA");
161 have printf("GOT");
162
163 "using" printf("UZE1NG");
164
165 " car " printf(" WHEELS ");
166 " eat " printf(" NARF ");
167
168 police printf("P1GZ");
169 from printf("FRUM");
170
171 human printf("D00D");
172 occasionally printf("SUMTIMZ");
173 whom printf("WHO");
174 whose printf("WHO'S");
175 who's printf("WHOSE");
176 "who is" printf("WHOSE");
177 "ought to" printf("OTTA");
178 "need to" printf("GOTTA");
179 "should" printf("OTTA");
180 "tonight" printf("2NITE");
181 together printf("2GETHR");
182 tomorrow printf("2MOROW");
183 today printf("LAST NITE");
184 to-day printf("2DAY");
185 " food " printf(" PIZZA ");
186 coke printf("MOUNTIN DOO");
187 pepsi printf("MOUNTIN DOO");
188 caffeine printf("COKE");
189 coffee printf("SPEED");
190 [Nn]yquil printf("SMACK");
191 night printf("NITE");
192
193 " believe" printf(" TH1NK");
194 phone printf("FONE");
195 freak printf("PHREAK");
196 [Kk][Ii*-][Bb][Oo*-] printf("THE FONT GUY");
197 [nN]et[htw][ar][cer][ke] { /* nethack nettrek netware */
198 printf("PACMAN"); }
199 chess printf("PONG");
200 [Ss]"treet "[Ff]ighter printf("POLL POSIT1ON");
201
202 amateur printf("LAMER");
203 " of " printf(" UV ");
204 what printf("WUT");
205 "meta " printf("ALT/CAPSLOCK ");
206
207 "talk" printf("1NTERFACE");
208 "sort of" printf("SORTA");
209 "kind of" printf("K1NDA");
210 magazine printf("ZINE");
211
212 ":^)" ;
213 ":-)" printf("HAHAHAHA!!1!1!1!!!1!!!");
214 "8-)" printf("ITZA JOKE YA NOE");
215
216 [dgmnr]"." { *(yytext+1) = 0;
217 upcase(yytext);
218 sprintf(buf, "%s!",yytext);
219 printf(buf);
220 }
221
222 [efhkpst]"." { *(yytext+1) = 0;
223 upcase(yytext);
224 sprintf(buf, "%s,",yytext);
225 printf(buf);
226 }
227
228 [bclw]"." { *(yytext+1) = 0;
229 upcase(yytext);
230 sprintf(buf, "%s...",yytext);
231 printf(buf);
232 }
233
234 [a-e]"?" { upcase(yytext); printf(yytext); printf("?"); }
235 [f-j]"?" { upcase(yytext); printf(yytext); printf("??"); }
236 [k-o]"?" { upcase(yytext); printf(yytext); printf("!?1?"); }
237 [p-t]"?" { upcase(yytext); printf(yytext); printf("!?1?!?"); }
238 [u-z]"?" { upcase(yytext); printf(yytext); printf("?1?!?1?!"); }
239 [a-e]"!" { upcase(yytext); printf(yytext); printf("!"); }
240 [f-j]"!" { upcase(yytext); printf(yytext); printf("!!"); }
241 [k-o]"!" { upcase(yytext); printf(yytext); printf("!1!"); }
242 [p-t]"!" { upcase(yytext); printf(yytext); printf("!!1!"); }
243 [u-z]"!" { upcase(yytext); printf(yytext); printf("!1!!1"); }
244 ";" printf(",");
245 "," printf(".");
246 "'" ;
247 [a-z]":" { *(yytext+1) = ',';
248 upcase(yytext);
249 sprintf(buf, "%s L1KE:",yytext);
250 printf(buf);
251 }
252 [iI] { count++; if (count % 3 == 0) printf("1"); else printf("I"); }
253 oo printf("00");
254 0 printf("o");
255 "s " printf("Z ");
256 "s." printf("Z.");
257 cr printf("KR");
258 wr printf("R");
259 ate printf("8");
260 ait printf("8");
261 ame printf("A1M");
262 ain printf("ANE");
263 ade printf("AID");
264 four printf("4");
265 fore printf("4");
266 for printf("4");
267 see printf("C");
268 seeing printf("CN");
269 you printf("U");
270 ude printf("00D");
271 ule printf("OOL");
272 ome printf("UM");
273 ose printf("UZE");
274 tion printf("SHUN");
275 mn printf("M");
276 kn printf("N");
277 er printf("UR");
278 em printf("UM");
279 ll printf("L");
280 ware printf("WEAR");
281
282 . { upcase(yytext); printf(yytext); }
283
284 \n printf("\n");
285
286 %%
287
288 upcase(s)
289 char *s;
290 {
291 while (*s) {
292 if (islower(*s))
293 *s = toupper(*s);
294 s++;
295 }
296 }
297
298 main()
299 {
300 yylex();
301 }
302
This page took 0.032707 seconds and 4 git commands to generate.