%{
#include <stdio.h>
%}

// Definitions section
%%
[ \t\n]+                ; // Ignore whitespace
int                     { printf("Keyword: int\n"); }
return                  { printf("Keyword: return\n"); }
[a-zA-Z_][a-zA-Z0-9_]* { printf("Identifier: %s\n", yytext); }
[0-9]+                  { printf("Number: %s\n", yytext); }
.                       { printf("Unknown character: %s\n", yytext); }
%%

// User code section
int main() {
    yylex(); // Call the lexer
    return 0;
}

int yywrap() {
    return 1; // Indicate end of input
}
