%option noyywrap
%%
[0-9][a-zA-Z0-9_]+ { printf("Invalid Identifier: %s (cannot start with digit)\n", yytext); }
[@#$%^&*\-+][a-zA-Z0-9_]* { printf("Invalid Identifier: %s (cannot start with special character)\n", yytext); }
[ \t\n]+ ;
%%
int main() {
printf("Enter input:\n");
yylex();
return 0;
}
JW9wdGlvbiBub3l5d3JhcAoKJSUKClswLTldW2EtekEtWjAtOV9dKyAgICAgICAgeyBwcmludGYoIkludmFsaWQgSWRlbnRpZmllcjogJXMgKGNhbm5vdCBzdGFydCB3aXRoIGRpZ2l0KVxuIiwgeXl0ZXh0KTsgfQoKW0AjJCVeJipcLStdW2EtekEtWjAtOV9dKiAgeyBwcmludGYoIkludmFsaWQgSWRlbnRpZmllcjogJXMgKGNhbm5vdCBzdGFydCB3aXRoIHNwZWNpYWwgY2hhcmFjdGVyKVxuIiwgeXl0ZXh0KTsgfQoKWyBcdFxuXSsgICAgOyAKCiUlCgppbnQgbWFpbigpIHsKICAgIHByaW50ZigiRW50ZXIgaW5wdXQ6XG4iKTsKICAgIHl5bGV4KCk7CiAgICByZXR1cm4gMDsKfQ==