SP [ \t]
EW [ \t.,;!\?$]
-%%
%{
- void plastc();
+ void plastc(void);
+ char caseify(char);
+ void expletive(void);
%}
+
+%%
".so ".*$ printf("%s", yytext);
[ao]ther printf("%cdder", yytext[0]=='a'?'a':'u');
[Nn]othing printf("%cuttin'", yytext[0]);
yyunput(yytext[yyleng-1], yytext);
}
-caseify(c)
+char caseify(c)
char c;
{
if (yytext[0] <= 'Z')
short count = 0;
short which = 0;
-expletive()
+void expletive()
{
if (count++ % 4 == 0) {
switch (which++ % 5) {