1. What kinds of syntax directed definitions are suited for evaluation of semantic rules during the parsing? Explain with an example.
2. What is a translation scheme? How is it different from a syntax-directed definition? Illustrate the order of execution of semantic actions in a translation scheme?
3. How do we evaluate synthesised and inherited attributes in the semantic rules during bottom-up parsing? Illustrate with an example