home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1620 < prev    next >
Internet Message Format  |  1990-12-28  |  3KB

  1. From: smulrine@cs.strath.ac.uk (Robotron 2084)
  2. Newsgroups: alt.sources
  3. Subject: Re: biff's own mailer
  4. Message-ID: <4365@baird.cs.strath.ac.uk>
  5. Date: 24 Jul 90 14:57:20 GMT
  6.  
  7. In alt.sources, meo@rsiatl.UUCP (Miles ONeal) writes:
  8. >...
  9. >    SMP = popen ("mail -f BIFFSNOT.HER > /dev/null", "w");
  10.  
  11. Change this to .....("bifflex | mail -f BIFFSNOT.HER > /dev/null", "w");
  12.  
  13. And now you need a program called "bifflex" somewhere in your path which
  14. will correct your grammar and spelling for you. Well, bless my cotton socks,
  15. I just happen to have such a thing! It works like a dream. Unpack the
  16. following zumfy little proglet and type "make".
  17.  
  18. #    This is a shell archive.
  19. #    Remove everything above and including the cut line.
  20. #    Then run the rest of the file through sh.
  21. #-----cut here-----cut here-----cut here-----cut here-----
  22. #!/bin/sh
  23. # shar:    Shell Archiver
  24. #    Run the following text with /bin/sh to create:
  25. #    Makefile
  26. #    biff.l
  27. # This archive created: Tue Jul 24 15:48:50 1990
  28. # By:    Stephen K Mulrine (Strathclyde University CS Dept)
  29. cat << \SHAR_EOF > Makefile
  30. bifflex:    biff.l
  31.         lex biff.l
  32.         cc -O -s -o bifflex lex.yy.c -ll
  33.         rm lex.yy.c
  34. SHAR_EOF
  35. cat << \SHAR_EOF > biff.l
  36.  
  37. T    [" .!?,"]*
  38. %%
  39.  
  40. LOOK            printf("WATCH");
  41. WATCH            printf("LOOK");
  42. HEAR            printf("LISTEN");
  43. LISTEN            printf("HEAR");
  44. GOOD            printf("WELL");
  45. WELL            printf("GOOD");
  46. SAY            printf("SPEAKS");
  47. SAID            printf("SPEAKED");
  48. BEING            printf("BE");
  49. CK            printf("KK");
  50. NN            printf("N");
  51. MM            printf("M");
  52. TT            printf("T");
  53. SS            printf("S");
  54. DD            printf("D");
  55. " HAD "            printf(" HAVE ");
  56. " THAN "        printf(" TO ");
  57. " WAS "            printf(" WERE ");
  58. " CAN "            printf(" BE ABLE TO ");
  59. " DO "            printf(" DOING ");
  60. " DOES "        printf(" DOINGS ");
  61. " SEE "            printf(" BE SEEING ");
  62. " BE "            printf(" BEING ");
  63. " AM "            printf(" DO BE ");
  64. " AS "            printf(" SO ");
  65. " SO "            printf(" AS ");
  66. " IS "            printf(" DOES BE ");
  67. " MY "            printf(" THE OF ME ");
  68. "MY "            printf("THE OF ME ");
  69. " HIS "            printf(" THE OF HIM ");
  70. "HIS "            printf("THE OF HIM ");
  71. YOUR            printf("THE OF YOU");
  72. " A "            printf(" ");
  73. " THE "            printf(" ");
  74. "A "            printf("ONE ");
  75. "TS "            printf("T'S ");
  76. "T'S "            printf("TS ");
  77. THAT            printf("THIS");
  78. THIS            printf("THAT");
  79. INTO            printf("IN");
  80. " IN "            printf(" INTO ");
  81. ONTO            printf("ON");
  82. " ON "            printf(" ONTO ");
  83. NEVER            printf("NOT ONCE");
  84. ONCE            printf("ONE TIME");
  85. TWICE            printf("TWO TIMES");
  86. ABOUT            printf("BY");
  87. WHY            printf("HOW");
  88. " BY "            printf(" FROM ");
  89. " TO "            printf(" FOR ");
  90. " FOR "            printf(" TO ");
  91. "ING "            printf("ED ");
  92. %%
  93.  
  94. main()
  95. {
  96.     srand(getpid());
  97.     yylex();
  98. }
  99. SHAR_EOF
  100. #    End of shell archive
  101. exit 0
  102. -- 
  103. Robotron 2084 <> I like grils <> special short sig for jenine <> grils - yum!
  104.