441 views
0 votes
0 votes
if any production of given grammar is
A → ε {A.v = 0}
then A.v is ?
a) inherited attribute
b) synthesized attribute

1 Answer

0 votes
0 votes
It's both Synthesized and Inherited.

Synthesized evaluates value from parent and Inherited evaluates both from parent and siblings to the left.

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
2 answers
3
Subhadeeppathak asked Nov 28, 2022
458 views
Attributes are said to be of two type, synthesised and inherited. What actually is an attribute? Why an attribute exist, how to define it?