Computer Science, asked by rajpuja72033pa3l0c, 7 months ago

In a syntax directed translation scheme, if the value of an attribute of a node is a function
of the values of the attributes of its children, then it is called a
A) canonical attribute
B) inherited attribute
C) synthesized attribute
D) none of the above​

Answers

Answered by AnanyaPrasad35
1

Answer: HOPE THIS HELPS YOU, PLEASE MARK BRAINLIST AND THANK.

Explanation:

A) conical attribute.

Answered by aryansuts01
0

Answer:

Concept:

A formal technique to add semantic information processing to a formal grammar is to use an attribute grammar. The properties connected to the grammar's terminal and nonterminal symbols carry semantic information. The values of attributes are the outcome of the grammar-related rules for attribute evaluation. A controlled and formal method of information transmission from anywhere in the abstract syntax tree to anywhere else is made possible by attributes.

Given:

When a node's attribute value in a syntactic directed translation scheme depends on the attribute values of its children, the node is said to have a

A) canonical attribute

B) inherited attribute

C) synthesized attribute

D) none of the above​

Find:

find the correct option for the given question

Answer:

The answer is option (C). synthesized attribute

  • Synthesized attributes are attributes whose value at child nodes determines the value at the parse tree node. Consider the following production as an example. S → ABC S is referred to as a synthesized attribute if it receives values from its child nodes (A, B, and C), as the values of ABC are synthesized to S.
  • As was already established, the production for the Synthesized attribute must have non-terminal as its head.
  • One bottom-up parse tree traversal can assess a single synthesised attribute.
  • The synthesized attribute can be found in both terminal and non-terminal objects.
  • Both S-attributed SDT and L-attributed STD make use of the synthesized attribute.

#SPJ2

Similar questions