Initial revision
[filters.git] / b1ff.l
CommitLineData
7e3afbba 1
2%e 2000
3%p 5000
4%n 1000
5%k 500
6%a 4000
7%o 2000
8BW [ ]
9EW [ .,;!?]
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
37char buf[128];
38int count = 0;
39char 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");
48your printf("UR");
49"it's" printf("1TZ");
50its printf("1T'Z");
51here printf("HEAR");
52hear printf("HERE");
53"they're" printf("THE1R");
54their printf("THERE");
55there printf("THEY'RE");
56was printf("WUZ");
57etc printf("U GET THE 1DEA");
58e[.]g[.] printf("LAIK THIS");
59i[.]e[.] printf("U NOE LAIK");
60" are " printf(" R ");
61"be " printf("B ");
62before printf("B4");
63" to " printf(" 2 ");
64this printf("TH1S");
65like printf("LA1K");
66total printf("TODAL");
67"and I" printf("+ ME");
68
69good printf("K00L");
70okay printf("C00L");
71ok printf("K00L");
72interesting printf("C00L");
73neat printf("Q00L");
74nifty printf("Q00L");
75useful printf("K00L");
76great printf("RAD");
77functional printf("RAD");
78excellent printf("X-L-ENT");
79very printf("TOTALLY");
80quite printf("REAL");
81really printf("REAL");
82new printf("NU");
83recent printf("RAD NU");
84
85result printf("TH1NG");
86ramification printf("TH1NG");
87reason printf("TH1NG");
88conclusion printf("TH1NG");
89results printf("STUFF");
90ramifications printf("STUFF");
91reasons printf("STUFF");
92conclusions printf("STUFF");
93
94files printf("WAREZ");
95program printf("GAME");
96programs printf("WAREZ");
97game printf("KRACKED GAME");
98games printf("GAMEZ");
99[Uu][Nn][Ii][Xx] printf("THE MANEFRA1M O/S");
100[Dd][Oo][Ss] printf("THE VIC-20 TAPE DRIVE SCR1PTER");
101disk printf("TAPE");
102computer printf("VIC-20");
103workstation printf("MANEFRA1M");
104supercomputer printf("MANEFRAM");
105[Cc]ray printf("K1CKASS MANEFRA1M");
106"Connection Machine" printf("TODALY RAD KOMPUTUR BRANE");
107machine 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");
112upload printf("U/L");
113download printf("D/L");
114load printf("U/L");
115save printf("D/L");
116send printf("U/L");
117receive printf("D/L");
118ftp printf("XMODEM");
119buy 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
130newsgroup printf("MESSAGE BASE");
131news printf("MESSAGES");
132thread printf("BOARD");
133[Uu]senet printf("THE MANEFRAIM BOARDZ");
134[Nn]et[Nn]ews printf("THE BOARDZ");
135
136fool printf("LUZER");
137moron printf("LAMER");
138idiot printf("LAMER");
139jerk printf("HOZER");
140dweeb printf("LUZER");
141geek printf("HOZER");
142nerd printf("LUZER");
143
144" man " printf(" D00D ");
145" men " printf(" D00DZ ");
146woman printf("BABE");
147women printf("BABEZ");
148wife printf("BABE");
149husband printf("LOVERD00D");
150girlfriend printf("PEACE");
151boyfriend printf("STUD");
152girl printf("TODAL BABE");
153person printf("D00D");
154people printf("D00DZ");
155friend printf("FRE1ND");
156
157sure printf("SHUR");
158"got to" printf("GOTTA");
159"want to" printf("WANNA");
160"have to" printf("HAFTA");
161have printf("GOT");
162
163"using" printf("UZE1NG");
164
165" car " printf(" WHEELS ");
166" eat " printf(" NARF ");
167
168police printf("P1GZ");
169from printf("FRUM");
170
171human printf("D00D");
172occasionally printf("SUMTIMZ");
173whom printf("WHO");
174whose printf("WHO'S");
175who'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");
181together printf("2GETHR");
182tomorrow printf("2MOROW");
183today printf("LAST NITE");
184to-day printf("2DAY");
185" food " printf(" PIZZA ");
186coke printf("MOUNTIN DOO");
187pepsi printf("MOUNTIN DOO");
188caffeine printf("COKE");
189coffee printf("SPEED");
190[Nn]yquil printf("SMACK");
191night printf("NITE");
192
193" believe" printf(" TH1NK");
194phone printf("FONE");
195freak printf("PHREAK");
196[Kk][Ii*-][Bb][Oo*-] printf("THE FONT GUY");
197[nN]et[htw][ar][cer][ke] { /* nethack nettrek netware */
198 printf("PACMAN"); }
199chess printf("PONG");
200[Ss]"treet "[Ff]ighter printf("POLL POSIT1ON");
201
202amateur printf("LAMER");
203" of " printf(" UV ");
204what printf("WUT");
205"meta " printf("ALT/CAPSLOCK ");
206
207"talk" printf("1NTERFACE");
208"sort of" printf("SORTA");
209"kind of" printf("K1NDA");
210magazine 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"); }
253oo printf("00");
2540 printf("o");
255"s " printf("Z ");
256"s." printf("Z.");
257cr printf("KR");
258wr printf("R");
259ate printf("8");
260ait printf("8");
261ame printf("A1M");
262ain printf("ANE");
263ade printf("AID");
264four printf("4");
265fore printf("4");
266for printf("4");
267see printf("C");
268seeing printf("CN");
269you printf("U");
270ude printf("00D");
271ule printf("OOL");
272ome printf("UM");
273ose printf("UZE");
274tion printf("SHUN");
275mn printf("M");
276kn printf("N");
277er printf("UR");
278em printf("UM");
279ll printf("L");
280ware printf("WEAR");
281
282. { upcase(yytext); printf(yytext); }
283
284\n printf("\n");
285
286%%
287
288upcase(s)
289 char *s;
290{
291 while (*s) {
292 if (islower(*s))
293 *s = toupper(*s);
294 s++;
295 }
296}
297
298main()
299{
300 yylex();
301}
302
This page took 0.025986 seconds and 4 git commands to generate.