2080 4

Compiler Design and Construction20805 marksSyntax directed definitions

Describe about syntax directed translation with an example.

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

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...

Up nextGiven the following grammar with SLR parsing table, test whether the string "int * (int +