Which attributes in the following grammar are synthesized?
@Sachin Mittal 1 sir please look in to this
Definition provided in Ullman:A synthesized attribute for a nonterminal A at a parse-tree node N is defined by a semantic rule associated with the production at N. Note that the production must have A as its head. A synthesized attribute at node N is defined only in terms of attribute values at the children of N and at N itself.
@Sachin Mittal 1 sir, .As a child's attributes can only be dependent on inherited attributes of the parent, B.b can not be synthesized, as C.c is taking values from B.b so B.b can not be synthesized, this can also be a reason?
64.3k questions
77.9k answers
244k comments
80.0k users