(a) (i) Explain the concept of syntax - directed definition (SDD) wit…

Previous year question for Compiler Design.

Question

(a) (i) Explain the concept of syntax - directed definition (SDD) with examples.

(ii) Define inherited and synthesize attributes with respect to SDD.

(b) Write the grammar and syntax - directed definitions for a simple desk calculator and show annotated parse tree for the expression $3 * 5 + 4n$ where 'n' is endmarker for the expression.

Related pages

More PYQs on Syntax Directed Translation Schemes

Open on CachedInfo