-
In a bottom-up evaluation of a syntax directed definition, inherited attributes can
-
- always be evaluated
- be evaluated only, if the definition is L – attributed
- be evaluated only, if the definition has synthesized attributes
- never be evaluated
- always 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.