wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider the following SDT.

SAB{S.x=A.x;B.y=A.y}
AaA{A.x=A1.x;A.y=A1.y}
Ab{A.x=A;B.y=a+1}
Bc{B.x=c;B.y=c+1}

Above SDT is______.

A
L-attributed grammar only
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
S-attributed grammar only
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
None of these
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
Both S-attributed & L-attributed grammar
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is A L-attributed grammar only
x is synthesized attribute
y is depending on left sibling or child
So, given SDT is L-attributed.
It is not S-attributed grammar.

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
BIOLOGY
Watch in App
Join BYJU'S Learning Program
CrossIcon