retagged by
518 views

2 Answers

2 votes
2 votes
Q.in = f(A.s)  // Q gets its value from parent i.e. L attributed

R.in = f(Q.s) // R gets its value from the Left sibling i.e. L attributed

Both are L attributed but NOT S-attributed.

Option (A) is correct.
edited by

Related questions

0 votes
0 votes
1 answer
1
4 votes
4 votes
2 answers
2
0 votes
0 votes
2 answers
3
jaswanth431 asked Nov 16, 2021
872 views
If the grammar has only S-attributed semantic definitions, in a top down parser we will add the semantic action at the end of production and it will we executed when we...