home *** CD-ROM | disk | FTP | other *** search
- From: smulrine@cs.strath.ac.uk (Robotron 2084)
- Newsgroups: alt.sources
- Subject: Re: biff's own mailer
- Message-ID: <4365@baird.cs.strath.ac.uk>
- Date: 24 Jul 90 14:57:20 GMT
-
- In alt.sources, meo@rsiatl.UUCP (Miles ONeal) writes:
- >...
- > SMP = popen ("mail -f BIFFSNOT.HER > /dev/null", "w");
-
- Change this to .....("bifflex | mail -f BIFFSNOT.HER > /dev/null", "w");
-
- And now you need a program called "bifflex" somewhere in your path which
- will correct your grammar and spelling for you. Well, bless my cotton socks,
- I just happen to have such a thing! It works like a dream. Unpack the
- following zumfy little proglet and type "make".
-
- # This is a shell archive.
- # Remove everything above and including the cut line.
- # Then run the rest of the file through sh.
- #-----cut here-----cut here-----cut here-----cut here-----
- #!/bin/sh
- # shar: Shell Archiver
- # Run the following text with /bin/sh to create:
- # Makefile
- # biff.l
- # This archive created: Tue Jul 24 15:48:50 1990
- # By: Stephen K Mulrine (Strathclyde University CS Dept)
- cat << \SHAR_EOF > Makefile
- bifflex: biff.l
- lex biff.l
- cc -O -s -o bifflex lex.yy.c -ll
- rm lex.yy.c
- SHAR_EOF
- cat << \SHAR_EOF > biff.l
-
- T [" .!?,"]*
- %%
-
- LOOK printf("WATCH");
- WATCH printf("LOOK");
- HEAR printf("LISTEN");
- LISTEN printf("HEAR");
- GOOD printf("WELL");
- WELL printf("GOOD");
- SAY printf("SPEAKS");
- SAID printf("SPEAKED");
- BEING printf("BE");
- CK printf("KK");
- NN printf("N");
- MM printf("M");
- TT printf("T");
- SS printf("S");
- DD printf("D");
- " HAD " printf(" HAVE ");
- " THAN " printf(" TO ");
- " WAS " printf(" WERE ");
- " CAN " printf(" BE ABLE TO ");
- " DO " printf(" DOING ");
- " DOES " printf(" DOINGS ");
- " SEE " printf(" BE SEEING ");
- " BE " printf(" BEING ");
- " AM " printf(" DO BE ");
- " AS " printf(" SO ");
- " SO " printf(" AS ");
- " IS " printf(" DOES BE ");
- " MY " printf(" THE OF ME ");
- "MY " printf("THE OF ME ");
- " HIS " printf(" THE OF HIM ");
- "HIS " printf("THE OF HIM ");
- YOUR printf("THE OF YOU");
- " A " printf(" ");
- " THE " printf(" ");
- "A " printf("ONE ");
- "TS " printf("T'S ");
- "T'S " printf("TS ");
- THAT printf("THIS");
- THIS printf("THAT");
- INTO printf("IN");
- " IN " printf(" INTO ");
- ONTO printf("ON");
- " ON " printf(" ONTO ");
- NEVER printf("NOT ONCE");
- ONCE printf("ONE TIME");
- TWICE printf("TWO TIMES");
- ABOUT printf("BY");
- WHY printf("HOW");
- " BY " printf(" FROM ");
- " TO " printf(" FOR ");
- " FOR " printf(" TO ");
- "ING " printf("ED ");
- %%
-
- main()
- {
- srand(getpid());
- yylex();
- }
- SHAR_EOF
- # End of shell archive
- exit 0
- --
- Robotron 2084 <> I like grils <> special short sig for jenine <> grils - yum!
-