[key]{printf{"%s is a keyword and lenght is : %d\n",yytext,yyleng};} {letter}({letter}|{digit})* [printf("%s is an identifier and lenght is : ")] {digit}+ {printf ("%s is an int number and int value is %d\n",yytext)}