%{
#include <stdio.h>
%}

%%
if      { printf("Keyword: if\n"); }
else    { printf("Keyword: else\n"); }
for     { printf("Keyword: for\n"); }
while   { printf("Keyword: while\n"); }
do      { printf("Keyword: do\n"); }
int     { printf("Keyword: int\n"); }
float   { printf("Keyword: float\n"); }
double  { printf("Keyword: double\n"); }
[+\-*/%]        { printf("Operator: %s\n", yytext); }
[<>=!]=?        { printf("Relational Operator: %s\n", yytext); }
[ \t\n]         {}
.               { printf("Unknown: %s\n", yytext); }
%%

int main() 
{ 
	yylex(); 
	return 0; 
}
int yywrap() 
{
       return 1;
}
