What is the primary purpose of syntax-directed translation?
-
To generate machine code directly from source code
-
To produce an intermediate representation from the parse tree
-
To optimize the code for better performance
-
To perform lexical analysis on the source code