-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpostmodern.l
145 lines (117 loc) · 4.33 KB
/
postmodern.l
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
/* GNU Talkfilters
Copyright (C) 1998-2003 Free Software Foundation, Inc.
This file is part of GNU Talkfilters
GNU Talkfilters is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2, or (at
your option) any later version.
This software is distributed in the hope that it will be amusing, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this software; see the file COPYING. If not, write to the
Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/*
Postmodern feminazi talk
Postmodern "feminazi" type talk suitable for writing college papers for
various humanities type classes
*/
%option prefix="postmodern_yy"
%option outfile="lex.yy.c"
%option noyywrap
%a 3000
%e 3000
%p 5000
%n 3000
%{
#include "common.h"
#include "talkfilters.h"
#define YY_DECL int yylex(gtf_databuf_t *buf)
%}
WB [\n\t ]
WC [A-Za-z'0-9]
NW [^A-Za-z'0-9]
EOT \4
%%
\<(\/)?[A-Za-z][^\>]*\> gtf_echo(); /* don't damage HTML tags */
[Ww]e/{NW} gtf_puts_case("the dysfunctional group");
[Tt]hing/{NW} gtf_puts_case("phallic-symbol-like weapon");
[Hh]elp/{NW} gtf_puts_case("assault");
[Ss]ex/{NW} gtf_puts_case("rape");
[Ll]ove/{NW} gtf_puts_case("male domination");
[Mm]an/{NW} gtf_puts_case("the occuppying patriarch");
[Ii]t/{NW} gtf_puts_case("the semiotic object");
[Hh]im/{NW} gtf_puts_case("Foucault");
[Hh]er/{NW} gtf_puts_case("her postfeminist");
[Tt]hat/{NW} gtf_puts_case("that deconstructed");
[Nn]ew/{NW} gtf_puts_case("postmodern");
[Ss]elf/{NW} gtf_puts_case("inner child");
[Ii]n/{NW} gtf_puts_case("in the penetrated space of");
[Bb]lack/{NW} gtf_puts_case("postcolonialist");
[Ii]s/{NW} gtf_puts_case("is semiotically");
[Ww]as/{NW} gtf_puts_case("was semiotically");
[Ww]hite/{NW} gtf_puts_case("fascist ruling class");
[Aa]lways/{NW} gtf_puts_case("always control");
[Tt]hin/{NW} gtf_puts_case("think genderization");
[Nn]ever/{NW} gtf_puts_case("never empower");
[Ss]mall/{NW} gtf_puts_case("male-superior doctrine");
[Ll]arge/{NW} gtf_puts_case("nymphomanial");
[Gg]ood/{NW} gtf_puts_case("subliminated homosexuality type");
[Bb]ad/{NW} gtf_puts_case("absolutist");
[Ff]ree/{NW} gtf_puts_case("synergism");
[Gg]et/{NW} gtf_puts_case("acquire intersubjectivity");
[Ee]ven/{NW} gtf_puts_case("even Jean-Paul Sartre and");
[Ff]or/{NW} gtf_puts_case("for reevalution of Manichaeanism and");
[Ss]he/{NW} gtf_puts_case("Susan Faludi");
[Hh]e/{NW} gtf_puts_case("Ted Kennedy");
[Cc]ame/{NW} gtf_puts_case("subjugated");
[Ff]emale/{NW} gtf_puts_case("lesbian");
[Mm]ale/{NW} gtf_puts_case("paternalistic mutilator");
[Mm]oney/{NW} gtf_puts_case("power");
[Pp]ower/{NW} gtf_puts_case("mimetic process");
[Dd]aughter/{NW} gtf_puts_case("donna clitoridea");
[Ss]on/{NW} gtf_puts_case("chauvinistic male");
[Mm]y/{NW} gtf_puts_case("the objective");
[Ff]orm/{NW} gtf_puts_case("implicit lyrical form");
[Ss]tory/{NW} gtf_puts_case("mythos");
[Aa]pproach/{NW} gtf_puts_case("seduction-rape");
[Aa]sk/{NW} gtf_puts_case("empower");
[Hh]appy/{NW} gtf_puts_case("polarized");
[Ww]ords/{NW} gtf_puts_case("logos");
[Ww]ord/{NW} gtf_puts_case("logo");
[Oo]ld/{NW} gtf_puts_case("counter poetical");
[Mm]ade/{NW} gtf_puts_case("self-defined");
[Bb]elief/{NW} gtf_puts_case("penis envy");
[Ii]dea/{NW} gtf_puts_case("motif");
[Tt]hought/{NW} gtf_puts_case("formalised image of");
. gtf_echo();
\n gtf_echo();
{EOT} /* ignore trailing EOT character */
%%
#ifdef LIBRARY_MODE
int gtf_filter_postmodern(const char *input, char *buf, size_t bufsz)
{
gtf_databuf_t buffer;
YY_BUFFER_STATE _yybuf;
gtf_strbuf_init(&buffer, buf, bufsz);
_yybuf = yy_scan_string(input);
yylex(&buffer);
yy_delete_buffer(_yybuf);
gtf_reset();
return(buffer.overflow);
}
int __gtf_filter_postmodern(const char *input, char *buf, size_t bufsz)
{
return(gtf_filter_postmodern(input, buf, bufsz));
}
#else /* LIBRARY_MODE */
int main(int argc, char **argv)
{
gtf_parse_args();
yylex(NULL);
return(EXIT_SUCCESS);
}
#endif /* LIBRARY_MODE */
/* end of source file */