Professional Documents
Culture Documents
Assignment KCS 502 2
Assignment KCS 502 2
Assignment - 2
Course Title: Compiler Design Course Code: KCS 502
Q. No. Questions CO KL
1. Explain the problems associated with top-down parser. CO-2 K1
2. Write the production rules to eliminate the left recursion and left factoring CO-2 K1
problems.
3. Consider the following Grammar: CO-2 K2
A-> ABd|Aa|a
B-> Be|b
Remove left recursion.
4. Eliminate left recursion and left factor the following grammar. Eaba| CO-2 K2
abba|Eb|EbE
5. Explain the parsing techniques with a hierarchical diagram. CO-2 K2