Concept:
In Syntax Directed Definitions, attributes are of two main types:
• Synthesized Attributes
• Inherited Attributes
Step 1: Define synthesized attribute.
A synthesized attribute obtains its value from the attributes of child nodes.
Information flows upward in the parse tree.
Step 2: Define inherited attribute.
Inherited attributes receive values from parents or siblings.
Information flows downward or sideways.
Step 3: Identify the required attribute.
Since the value is obtained from children,
\[
\boxed{\text{Synthesized Attribute}}
\]
is correct.
Was this answer helpful?
0
0
Top TS PGECET Computer Science & Information Technology Questions