1,585 views
0 votes
0 votes

Is it Possible that any SDT can be L-attributed and S-attributed both in the same question?

3 Answers

4 votes
4 votes

S-attribute : it uses synthsized attribute .

L-attribure ; it uses both synthesized attributes as well as inherited attributes.

in this example it is S-attribute as well as L-attribure hence option c is true.

1 votes
1 votes

You can see the Venn diagram 

If SDT is S-attributed, it is definitely L-attributed but if it is L attributed then it may or may not be S attributed 

0 votes
0 votes
yes , it is possible that any sdt can have both L-attributed and S-attributed.

since L-attributed sdt uses only synthesized attributes but L-attributed sdt uses both synthesized and inherited both.

Related questions

0 votes
0 votes
0 answers
2
aditi19 asked Mar 29, 2019
477 views
What is the SDT to eliminate redundant parenthesis from infix expressions with * and +? what is the concept behind removal of redundant parenthesis and how to start?
0 votes
0 votes
0 answers
3
1 votes
1 votes
0 answers
4
set2018 asked Nov 3, 2017
1,260 views
For synthesized attribute, value is only computed when symbol is on the _____ side of production. For inherited attribute, value is computed in productions where symbol i...