%{
#include<stdio.h>
%}
%%
\/\/.* {fprintf(yyout,"");}
\/\*(.*\n)*.*\*\/ {fprintf(yyout,"");}
. ; {fprintf(yyout,"%s",yytext);}
%%
main()
{
yyin=fopen("input.txt","r");
yyout=fopen("output.txt","w");
yylex();
}
int yywrap()
{
return 1;
}
No comments:
Post a Comment