%{
#include<stdio.h>
%}
%%
[a-zA-Z_][a-zA-Z0-9_]* {printf("%s is an identifier");}
[+-]?[0-9]+ {printf("%s is a signed number ");}
[0-9]+ {printf("Rejected");}
%%
int main(){
printf("enter:");
yylex();
}
int yywrap(){
return 1;
}
JXsKICAjaW5jbHVkZTxzdGRpby5oPgogIAolfQolJQpbYS16QS1aX11bYS16QS1aMC05X10qICAgICAgIHtwcmludGYoIiVzIGlzIGFuIGlkZW50aWZpZXIiKTt9ClsrLV0/WzAtOV0rICAgICAgICAgICAgICAgICAge3ByaW50ZigiJXMgaXMgYSBzaWduZWQgbnVtYmVyICIpO30KWzAtOV0rICAgICAgICAgICAgICAgICAgICAgICB7cHJpbnRmKCJSZWplY3RlZCIpO30KJSUKaW50IG1haW4oKXsKICBwcmludGYoImVudGVyOiIpOwogIHl5bGV4KCk7CiAgCn0KaW50IHl5d3JhcCgpewogIHJldHVybiAxOwp9Cg==