Question: In syntax-directed translation, what is the role of semantic actions?
Options:
Correct Answer: To generate intermediate code
Solution:
Semantic actions in syntax-directed translation are used to generate intermediate code based on the parse tree.