Initial revision
[filters.git] / kraut.l
CommitLineData
7e3afbba 1%e 2000
2%p 5000
3%n 1000
4%k 500
5%a 4000
6%o 2000
7BW [ ]
8EW [ .,;!?]
9
10%{
11#include <stdio.h>
12
13char buf[128];
14%}
15
16%%
17ing printf("ingkt");
18" the " printf(" ze ");
19"The " printf("Ze ");
20" with " printf(" mitt ");
21"With " printf("Mitt ");
22wr printf("w-r-r");
23Wr printf("W-r-r");
24R printf("R-r-r");
25"Yes " printf("Jawohl ");
26" r" printf(" r-r-r");
27"Yes." printf("Jawohl.");
28"Yes!" printf("Jawohl!");
29"YES!" printf("JAWOHL!");
30" yes " printf(" ja ");
31" yes." printf(" ja.");
32" yes!" printf(" yes!");
33"No " printf("Nein ");
34"No!" printf("Nein!");
35"No?" printf("Nein?");
36" no " printf(" nein ");
37" no." printf(" nein.");
38" no!" printf(" nein!");
39" no?" printf(" nein?");
40[Mm]"r." printf("Herr");
41[Mm]"rs." printf("Frau");
42Miss printf("Fraulein");
43" of " printf(" uff ");
44"Of " printf("Uff ");
45my printf("mein");
46My printf("Mein");
47" and " printf(" undt ");
48"And " printf("Undt ");
49"One " printf("Ein ");
50" one" printf(" ein");
51"Is " printf("Ist ");
52" is " printf(" ist ");
53"ow " printf("ow ");
54"w " printf("w ");
55sh printf("sch");
56Sh printf("Sch");
57ch printf("ch");
58Ch printf("Ch");
59" c" printf(" k");
60" C" printf(" K");
61
62v printf("f");
63V printf("F");
64" w" printf(" v");
65W printf("V");
66th printf("d");
67Th printf("D");
68[Jj]ohn printf("Johann");
69[Ww]illiam printf("Wilhelm");
70[Bb]rad printf("Wilhelm");
71[Gg]ary printf("Gerhardt");
72[Jj]on printf("Hansel");
73
74[a-f]"!" {sprintf(buf,"%s Naturlich!",yytext);printf(buf);}
75[p-z]"!" {sprintf(buf,"%s Seig Heil!",yytext);printf(buf);}
76.|'\n' ECHO;
77
78%%
79main()
80{
81 yylex();
82}
This page took 0.012716 seconds and 4 git commands to generate.