%Start junk
+%option noyywrap
+
%%
+
+%{
+void eos();
+void plastc();
+%}
+
<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()
+void eos()
{
if (yytext[yyleng-1] == '.')
- dintI();
+ dintI();
else
- yyunput(yytext[yyleng-1], yytext);
-}
-
-plastc()
-{
- yyunput(yytext[yyleng-1], yytext);
-}
-
-main()
-{
- yylex();
+ unput(yytext[yyleng-1]);
}
-int yywrap()
+void plastc()
{
- return 1;
+ unput(yytext[yyleng-1]);
}
caseify(c)