The above mentioned picture shows the:
The above mentioned picture shows the: Correct Answer Conceptual view of syntax directed translation
The correct answer is option 3.
Concept:
Basic idea of syntax directed translation:
Syntax-Directed Constructing a parse tree or syntax tree and computing the values of attributes at the nodes of the tree by visiting them in some order is the definition of translation. In many circumstances, translation can be done without creating an explicit tree during parsing.
Evaluation Orders for syntax directed translation:
- Dependency Graphs.
- Ordering the Evaluation of Attributes.
- S-Attributed Definitions.
- L-Attributed Definitions.
- Semantic Rules
[ alt="F1 Shraddha Harshita 25.02.2022 D1" src="//storage.googleapis.com/tb-img/production/22/02/F1_Shraddha_Harshita_25.02.2022_D1.png" style="width: 467px; height: 37px;">
Note:
- Evaluation of the semantic rules may generate code, save information in a symbol table, issue error messages, or perform any other activities.
- Special cases of syntax-directed definitions can be implemented in a single pass by evaluating semantic rules during parsing, without explicitly constructing a parse tree or a graph showing dependencies between attributes.
Hence the correct answer is the Conceptual view of syntax-directed translation.