%{
#include <stdio.h>
%}
%%
if |
else |
printf { printf("%s is a keyword",yytext);}
[0-9]+ {printf(%s is a number,yytext);}
.|\n {ECHO;}
%%
int main()
{
printf("\n Enter string:");
yylex();
}
int yywrap()
{
return 1;
}
CiV7CiNpbmNsdWRlIDxzdGRpby5oPgolfQoKJSUKaWYgfAplbHNlIHwKcHJpbnRmIHsgcHJpbnRmKCIlcyBpcyBhIGtleXdvcmQiLHl5dGV4dCk7fQpbMC05XSsge3ByaW50ZiglcyBpcyBhIG51bWJlcix5eXRleHQpO30KLnxcbiB7RUNITzt9CiUlCgppbnQgbWFpbigpCnsKCXByaW50ZigiXG4gRW50ZXIgc3RyaW5nOiIpOwoJeXlsZXgoKTsKfQppbnQgeXl3cmFwKCkKewoJcmV0dXJuIDE7Cn0K