%{
#include <stdio.h>
%}

%%
"+"|"-"|"*"|"/"                       { printf("Arithmetic Operator: %s\n", yytext); }
"="|"+="|"-="|"*="|"/="|"%="          { printf("Assignment Operator: %s\n", yytext); }
"&"|"|"|"^"|"~"                       { printf("Bitwise Operator: %s\n", yytext); }
"&&"|"||"|"!"                         { printf("Logical Operator: %s\n", yytext); }
"=="|"!="|"<"|"<="|">"|">="           { printf("Relational Operator: %s\n", yytext); }
"<<"|">>"                             { printf("Shift Operator: %s\n", yytext); }
.|\n                                 { ; }
%%

int main() {
printf("Enter: ");
    yylex();
    
}
int yywrap(){
	return 1;
	}
}