%{
#include <stdio.h>
%}

%%
// Define patterns for tokens
[0-9]+   { printf("NUMBER: %s\n", yytext); }
"+"     { printf("PLUS\n"); }
"-"     { printf("MINUS\n"); }
[ \t\n]  { /* Ignore whitespace */ }
.        { printf("UNKNOWN: %s\n", yytext); }

%%

// Main function
int main(void) {
    yylex();  // Call the lexer
    return 0;
}
