Initial revision
[filters.git] / kraut.l
1 %e 2000
2 %p 5000
3 %n 1000
4 %k 500
5 %a 4000
6 %o 2000
7 BW [ ]
8 EW [ .,;!?]
9
10 %{
11 #include <stdio.h>
12
13 char buf[128];
14 %}
15
16 %%
17 ing printf("ingkt");
18 " the " printf(" ze ");
19 "The " printf("Ze ");
20 " with " printf(" mitt ");
21 "With " printf("Mitt ");
22 wr printf("w-r-r");
23 Wr printf("W-r-r");
24 R 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");
42 Miss printf("Fraulein");
43 " of " printf(" uff ");
44 "Of " printf("Uff ");
45 my printf("mein");
46 My 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 ");
55 sh printf("sch");
56 Sh printf("Sch");
57 ch printf("ch");
58 Ch printf("Ch");
59 " c" printf(" k");
60 " C" printf(" K");
61
62 v printf("f");
63 V printf("F");
64 " w" printf(" v");
65 W printf("V");
66 th printf("d");
67 Th 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 %%
79 main()
80 {
81 yylex();
82 }
This page took 0.024201 seconds and 5 git commands to generate.