in Compiler Design
436 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
in Compiler Design
by
436 views

3 Comments

It is synthesized attribute and inherited too.
0
0
any reason (reference to book) , 'cause i've seen synthesized attribute as an answer in one of the test series
0
0
only synthesized here there is no inheritation at all .
0
0

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