engineering recuitment GATE CSE 2023-24 Test Series Compiler Design Syntax Directed Translation S Attributed
Which of the following is correct?
(I). An attribute of a node (non-terminal) that depends on the value of attributes of children nodes in the parse tree is called inherited attribute.
(II). An attribute of a node (non-terminal) that depends on the value of attributes of siblings and parent node in the parse tree is called synthesized attribute.
1
Only (I) is correct
2
Only (II) is correct
3
Both are correct
4
None is correct