%{
#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;
}
JXsKI2luY2x1ZGUgPHN0ZGlvLmg+CiV9CiAKJSUKaWYgfAplbHNlIHwKcHJpbnRmIHsgcHJpbnRmKCIlcyBpcyBhIGtleXdvcmQiLHl5dGV4dCk7fQpbMC05XSsge3ByaW50ZiglcyBpcyBhIG51bWJlcix5eXRleHQpO30KLnxcbiB7RUNITzt9CiUlCiAKaW50IG1haW4oKQp7CglwcmludGYoIlxuIEVudGVyIHN0cmluZzoiKTsKCXl5bGV4KCk7Cn0KaW50IHl5d3JhcCgpCnsKCXJldHVybiAxOwp9