Write the difference between synthesized and inherited attributes
Answers
Answered by
1
-----------HELLO FRIEND----------------
HERE IS U ANSWER
The easiest way to think about them is the direction from where they originate. An inherited attribute derives its value from the parent nodes. A synthesized attribute derives its value from the child nodes. Alternatively,inherited attributes flow top-down, while synthesized attributes flow bottom-up.
HOPE IT WILL HELP U !!!!!!!!!!!!!!
HERE IS U ANSWER
The easiest way to think about them is the direction from where they originate. An inherited attribute derives its value from the parent nodes. A synthesized attribute derives its value from the child nodes. Alternatively,inherited attributes flow top-down, while synthesized attributes flow bottom-up.
HOPE IT WILL HELP U !!!!!!!!!!!!!!
Areena13:
ok just a min
Answered by
0
Answer:
synthesized Attributes: -
- value of synthesized attributes at a node can be computed from the value of attributes at the children of that node in the parse tree.
- Pass the information bottom to top in parse tree
inherited attributes
- values of the inherited attributes at a node can be computed from the value of attributes at the parent and/or siblings of the node.
- Pass the information top to bottom in parse tree
Similar questions