%{
#include <stdio.h>
%}
DIGIT [0-9]
%%
{DIGIT
}+ { printf
("
Number: %s, Length: %d\n", yytext, yyleng); } . { printf("Other: %s\n", yytext); }
%%
int main() {
printf("Enter your input: \n");
yylex(); // Start lexical analysis
return 0;
}
int yywrap() {
return 1;
}
JXsKI2luY2x1ZGUgPHN0ZGlvLmg+CiV9CgpESUdJVCAgWzAtOV0KCiUlCntESUdJVH0rICAgICAgICB7IHByaW50ZigiTnVtYmVyOiAlcywgTGVuZ3RoOiAlZFxuIiwgeXl0ZXh0LCB5eWxlbmcpOyB9Ci4gICAgICAgICAgICAgICB7IHByaW50ZigiT3RoZXI6ICVzXG4iLCB5eXRleHQpOyB9CiUlCgppbnQgbWFpbigpIHsKICAgIHByaW50ZigiRW50ZXIgeW91ciBpbnB1dDogXG4iKTsKICAgIHl5bGV4KCk7ICAvLyBTdGFydCBsZXhpY2FsIGFuYWx5c2lzCiAgICByZXR1cm4gMDsKfQoKaW50IHl5d3JhcCgpIHsKICAgIHJldHVybiAxOwp9Cg==