Program to recognize a valid variable which starts with a letter followed by any number of letters or digits
Yacc %token DIGIT LETTER NL UND %% stmt : variable NL { printf(“Valid Identifiersn”); exit(0);} ; variable : LETTER alphanumeric ; alphanumeric: LETTER alphanumeric | DIGIT alphanumeric | UND alphanumeric…