Question: What is the primary purpose of syntax-directed translation?
Options:
Correct Answer: To produce an intermediate representation from the parse tree
Solution:
Syntax-directed translation is primarily used to produce an intermediate representation from the parse tree.