%option noyywrap
%{
#include<stdio.h>
%}
%%
[0-9]+ { printf("Positive"); }
[A
-Za
-z
]+ {printf
("this
is not a number"
);} .* {printf("Negative");}
%%
int main()
{
printf
("Enter positive or negative
number \n"
); yylex();
return 0;
}
JW9wdGlvbiBub3l5d3JhcAolewoJI2luY2x1ZGU8c3RkaW8uaD4KJX0KCgolJQpbMC05XSsgeyBwcmludGYoIlBvc2l0aXZlIik7IH0KW0EtWmEtel0rIHtwcmludGYoInRoaXMgaXMgbm90IGEgbnVtYmVyIik7fQouKiB7cHJpbnRmKCJOZWdhdGl2ZSIpO30KCgolJQppbnQgbWFpbigpCnsKCXByaW50ZigiRW50ZXIgcG9zaXRpdmUgb3IgbmVnYXRpdmUgbnVtYmVyIFxuIik7Cgl5eWxleCgpOwoJcmV0dXJuIDA7Cn0=