%{
#include <stdio.h>
#include <stdlib.h>
%}

%%
[+-]?[0-9]*\.[0-9]+ {
    /* Match floating point numbers (e.g., 12.34, -5.6) */
    float val = atof(yytext); 
    printf("Integer: %d\n", (int)val);
}

[+-]?[0-9]+ {
    /* Match standard integers to avoid ignoring them */
    printf("Integer: %s\n", yytext);
}

.|\n { 
    /* Ignore other characters */ 
}
%%

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

int yywrap() {
    return 1;
}
