LEX = flex
BUILD = jethro kraut cockney jive nyc ken ky00te newspeak
OTHER = eleet b1ff chef jibberish upside-down rasterman studly fudd censor spammer
-CFLAGS = -O2
+CFLAGS = -O2 -lfl
INSTALL_PROGRAM = install
# DEB_BUILD_OPTIONS suport, to control binary stripping.
.l:
$(RM) $*.c
$(LEX) -t $< > $*.c
- $(CC) -O -o $@ $*.c -lfl $(CFLAGS)
+ $(CC) -o $@ $*.c $(CFLAGS)
$(RM) $*.c
.SUFFIXES: .dir
%Start junk
%%
+
+%{
+ void eos() {
+ if (yytext[yyleng-1] == '.')
+ dintI();
+ else
+ unput(yytext[yyleng-1]);
+ }
+
+ void plastc() {
+ unput(yytext[yyleng-1]);
+ }
+%}
+
<junk>. { srandom(time(0L)); unput(yytext[0]); BEGIN 0; }
{BW}[Tt]he{EW} { ECHO; bloody(); }
{BW}[Ss]teal{EW} { printf("%c%cick",yytext[0],yytext[1]-5);
%%
-eos()
-{
- if (yytext[yyleng-1] == '.')
- dintI();
- else
- yyunput(yytext[yyleng-1], yytext);
-}
-
-plastc()
-{
- yyunput(yytext[yyleng-1], yytext);
-}
-
-main()
-{
- yylex();
-}
-
-int yywrap()
-{
- return 1;
-}
-
caseify(c)
char c;
{
+filters (2.33) unstable; urgency=low
+
+ * Better flex fixups; make sure to link with -lfl even if building
+ indivitually, and move stuff that uses unput into %{ %} delimited blocks
+ in rules section.
+
+ -- Joey Hess <joeyh@debian.org> Tue, 15 Apr 2003 15:06:25 -0400
+
filters (2.32) unstable; urgency=low
* Deal with the new flex 2.5.31 as follows:
! SUB(". Ye DAWGies!!!");
%%
-
-main()
-{
- yylex();
-}
-
-int yywrap()
-{
- return 1;
-}
BW [ \t\(]
EW [ \t.,;!\?$\)]
%%
+%{
+ void plastc()
+ {
+ unput(yytext[yyleng-1]);
+ }
+%}
@[Bb]egin(.*) |
".so ".*$ printf("%s", yytext);
{BW}send printf("%ct'row",yytext[0]);
meta printf("meta-fuckin'");
cally printf("c'l");
%%
-plastc()
-{
- yyunput(yytext[yyleng-1], yytext);
-}
caseify(c)
char c;
}
}
-main()
-{
- yylex();
-}
-
-int yywrap()
-{
- return 1;
-}
-
/*
* Bugs:
*
. printf(yytext);
\n printf("\n");
%%
-
-main()
-{
- srand(getpid());
- yylex();
-}
-
-int yywrap()
-{
- return 1;
-}
SP [ \t]
EW [ \t.,;!\?$]
%%
+%{
+ void plastc() {
+ yyunput(yytext[yyleng-1], yytext);
+ }
+%}
".so ".*$ printf("%s", yytext);
[ao]ther printf("%cdder", yytext[0]=='a'?'a':'u');
[Nn]othing printf("%cuttin'", yytext[0]);
! printf("! Okay?");
[a-z]"." { printf("%s", yytext);expletive();}
%%
-plastc()
-{
- yyunput(yytext[yyleng-1], yytext);
-}
caseify(c)
char c;