%token A B NL%%stmt : A A A A A A A A A A s B NL { Printf(“Valid”); exit(0); } ;s : s A | ;int yyerror(char *msg){ printf(“Invalid String\n”); exit(0);}main (){ printf(“Enter the String\n”); yyparse();}

About IndiaStudyChannel.com

Being the most popular educational website in India, we believe in providing quality content to our readers. If you have any questions or concerns regarding any content published here, feel free to contact us using the Contact link below.