%{
#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;
}
CiV7CiNpbmNsdWRlIDxzdGRpby5oPgolfQoKJSUKaWYgfAplbHNlIHwKcHJpbnRmIHsgcHJpbnRmKCIlcyBpcyBhIGtleXdvcmQiLHl5dGV4dCk7fQpbMC05XSsge3ByaW50ZigiJXMgaXMgYSBudW1iZXIiLHl5dGV4dCk7fQoufFxuIHtFQ0hPO30KJSUKCmludCBtYWluKCkKewoJcHJpbnRmKCJcbiBFbnRlciBzdHJpbmc6Iik7Cgl5eWxleCgpOwp9CmludCB5eXdyYXAoKQp7CglyZXR1cm4gMTsKfQo=