(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.
- Year: 2018
- Subject: Compiler Design
Related pages
More PYQs on Syntax Directed Translation Schemes
- (a) What is syntax-directed translation (SDT) and how does it relate to semantic analysis? (b) What is the role of semantic analysis in identifying errors that…
- (a) Explain syntax directed definition. Differentiate between Synthesized and Inherited attributes with suitable examples. (b) Write how system directed transl…