// Online C compiler to run C program online
/*Definition Section*/
%{
#include<stdio.h>
%}
([a-zA-Z][0-9])+|[a-zA-Z]* {printf("Identifier\n");}
^[0-9]+ {printf("Not a Identifier\n");}
.|\n;
%%
/*call the yywrap function*/
int yywrap()
{
return 1;
}
/*Auxiliary function*/
/*Driver function*/
int main(void)
{
/*call the yylex function.*/
yylex();
return 0;
}
Ly8gT25saW5lIEMgY29tcGlsZXIgdG8gcnVuIEMgcHJvZ3JhbSBvbmxpbmUKLypEZWZpbml0aW9uIFNlY3Rpb24qLwolewojaW5jbHVkZTxzdGRpby5oPgolfQoKCgoKCihbYS16QS1aXVswLTldKSt8W2EtekEtWl0qIHtwcmludGYoIklkZW50aWZpZXJcbiIpO30gICAKCl5bMC05XSsge3ByaW50ZigiTm90IGEgSWRlbnRpZmllclxuIik7fQoKLnxcbjsgCiUlCgovKmNhbGwgdGhlIHl5d3JhcCBmdW5jdGlvbiovCmludCB5eXdyYXAoKQkJCQkJCnsKcmV0dXJuIDE7Cn0KCi8qQXV4aWxpYXJ5IGZ1bmN0aW9uKi8KLypEcml2ZXIgZnVuY3Rpb24qLwppbnQgbWFpbih2b2lkKQp7Ci8qY2FsbCB0aGUgeXlsZXggZnVuY3Rpb24uKi8KeXlsZXgoKTsJCQkJCQkKcmV0dXJuIDA7Cn0=