VOOZH about

URL: https://www.geeksforgeeks.org/compiler-design/yaac-program-to-check-whether-given-string-is-palindrome-or-not/

⇱ YACC program to check whether given string is Palindrome or not - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

YACC program to check whether given string is Palindrome or not

Last Updated : 11 Jul, 2025
Problem: Write a YACC program to check whether given string is Palindrome or not. Explanation: Yacc (for “yet another compiler compiler.”) is the standard parser generator for the Unix operating system. An open source program, yacc generates code for the parser in the C programming language. The acronym is usually rendered in lowercase but is occasionally seen as YACC or Yacc. Examples:
Input: naman
Output: palindrome

Input: geeksforgeeks
Output: not palindrome 
Lexical Analyzer Source Code : Parser Source Code: Output: 👁 Image
Comment
Article Tags:

Explore