Home » Compiler Design » Compiler design miscellaneous » Question

Compiler design miscellaneous

  1. In a bottom-up evaluation of a syntax directed definition, inherited attributes can
    1. always be evaluated
    2. be evaluated only, if the definition is L – attributed
    3. be evaluated only, if the definition has synthesized attributes
    4. never be evaluated
Correct Option: B

A Syntax Directed Definition (SDD) is called S Attributed if it has only synthesized attributes. L-Attributed Definitions contain both synthesized and inherited attributes but do not need to build a dependency graph to evaluate them.



Your comments will be displayed only after manual approval.