608 views
1 votes
1 votes

Do L attributed SDT needs to have both synthesized attributes and inherited attributes?

What if we don't have synthesized attributes but inherited attributes (IN WHICH VALUE IS TAKEN FROM LEFT SIBLING ONLY) then is it L- attributed SDT?

1 Answer

Best answer
3 votes
3 votes
Its not compulsion that L attributed SDT should have both synthesis and inherited at the same time means.... both synthesis and inherited  allowed...... but its not STRICT condition that they must be at the same time.....

so SDT is called L-attributed if ....

1)it may have  synthesis attributes only ...

2) it may have inherited attributes only..

3)it may contain both synthesis and inherited attributes....

ALL above are L-attribute SDTS
selected by

Related questions

0 votes
0 votes
0 answers
2
aditi19 asked Mar 29, 2019
464 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
0 votes
0 votes
3 answers
4
dixit bishwash asked Mar 28, 2018
1,487 views
Is it Possible that any SDT can be L-attributed and S-attributed both in the same question?