%{
#include <stdio.h>
%}
%%
[0-9]+ { printf
("
Number "
); } // Matches one or more digits
(a
number) [+\-*/] { printf("%s ", yytext); } // Matches +, -, *, or /
[ \t\n]+ { /* ignore whitespace */ } // Ignore whitespace (spaces, tabs, newlines)
%%
int main() {
yylex
(); // Call the lexer to start tokenizing the input
return 0;
}
JXsKI2luY2x1ZGUgPHN0ZGlvLmg+CiV9CgolJQoKWzAtOV0rICAgICAgICAgIHsgcHJpbnRmKCJOdW1iZXIgIik7IH0gICAgICAvLyBNYXRjaGVzIG9uZSBvciBtb3JlIGRpZ2l0cyAoYSBudW1iZXIpClsrXC0qL10gICAgICAgICAgeyBwcmludGYoIiVzICIsIHl5dGV4dCk7IH0gIC8vIE1hdGNoZXMgKywgLSwgKiwgb3IgLwpbIFx0XG5dKyAgICAgICAgIHsgLyogaWdub3JlIHdoaXRlc3BhY2UgKi8gfSAgLy8gSWdub3JlIHdoaXRlc3BhY2UgKHNwYWNlcywgdGFicywgbmV3bGluZXMpCgolJQoKaW50IG1haW4oKSB7CiAgICB5eWxleCgpOyAgLy8gQ2FsbCB0aGUgbGV4ZXIgdG8gc3RhcnQgdG9rZW5pemluZyB0aGUgaW5wdXQKICAgIHJldHVybiAwOwp9Cg==