%{
#include <stdio.h>
%}

%%
int|float|char|return { printf("Keyword: %s\n", yytext); }
[+\-*/=<>!]=? { printf("Operator: %s\n", yytext); }
[a-zA-Z_][a-zA-Z0-9_]* { printf("Identifier: %s\n", yytext); }
";" { printf("Semicolon: %s\n", yytext); }
[ \t\n] ; // Ignore whitespaces
. { printf("Unknown Token: %s\n", yytext); }
%%

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