%{
#include <stdio.h>
%}
 
%%
[0-9]+          { printf
("the 
number is a constant\n"
); } [0-9]*\
.[0-9]+  { printf
("the 
number is a constant\n"
); } .               { printf
("thee 
number is not a constant\n"
); } %%
 
int yywrap() {
    return 1;
}
int main() {
    printf("Enter a string: ");
    yylex();
    return 0;
}
 
				CiV7CiNpbmNsdWRlIDxzdGRpby5oPgolfQoKJSUKWzAtOV0rICAgICAgICAgIHsgcHJpbnRmKCJ0aGUgbnVtYmVyIGlzIGEgY29uc3RhbnRcbiIpOyB9ClswLTldKlwuWzAtOV0rICB7IHByaW50ZigidGhlIG51bWJlciBpcyBhIGNvbnN0YW50XG4iKTsgfQouICAgICAgICAgICAgICAgeyBwcmludGYoInRoZWUgbnVtYmVyIGlzIG5vdCBhIGNvbnN0YW50XG4iKTsgfQolJQoKaW50IHl5d3JhcCgpIHsKICAgIHJldHVybiAxOwp9CmludCBtYWluKCkgewogICAgcHJpbnRmKCJFbnRlciBhIHN0cmluZzogIik7CiAgICB5eWxleCgpOwogICAgcmV0dXJuIDA7Cn0K