2081.1 1

Compiler Design and Construction2081.110 marksNumerical: DAG and three-address codeSyntax tree & DAG representations

Discuss about Directed Acyclic Graph with an example. Represent the expression A = (B + C) - (D - E) using 3AC, Quadruple and Triple.

Discuss about Directed Acyclic Graph with an example. Represent the expression A = (B + C) - (D - E) using 3AC, Quadruple and Triple.[10]

--- A Directed Acyclic Graph (DAG) is a graph representation of an expression that, like a syntax tree, has: - Leaf nodes representing operands (identifiers/constants) - Interior nodes representing operators The key difference is that a DAG shares nodes for common sub-expressions. A node represen...

Up nextCreate the LR(1) parsing table for following grammar.S→AAS \rightarrow AAS→AAA→0AA \righta