2080 4

CSC376 · 2080 · 5 marks

Describe about syntax directed translation with an example.

Describe about syntax directed translation with an example. [5]

Compiler Design and ConstructionChapter 2: Lexical, Syntax and Semantic AnalysisSyntax directed definitions

Syntax Directed Translation (SDT) refers to a method of compiler implementation where the source language translation is completely driven by the parser. In SDT, a parse tree or syntax tree is constructed and the values of attributes at the nodes of the tree are computed by visiting them in a spe...