edited by
453 views

1 Answer

Best answer
2 votes
2 votes

Q1:B.i=f(A.s) // B is taking value from A, So, B is taking value from it's left side. It is L attributed.

L2:S.s=f(B.s) // S is taking value from B.// it is S attributed. If attribute is S attributed, then it is obviously L attributed.

Q2:R.i=f(P.i) // R is taking value from it's parent . It is L attributed

Q.i=f(R.s) //Q taking value from it's right sibling. It is not L attributed

selected by

Related questions

1 votes
1 votes
1 answer
1
Na462 asked Jan 13, 2019
1,245 views
Consider the following Translation rules for the Grammar G :What will be the output for input string abebebe for bottom up parser ?CBBPBPBPCBBBPPBBCBPBPBPBCBPBBPPB
5 votes
5 votes
2 answers
3
vaishali jhalani asked Jan 7, 2017
1,424 views
$\begin{align*} &E\rightarrow E+E \qquad {\color{red}{\text{E.val} = \text{E}_1\text{.val} { \;\;\large + \;\; } \text{E}_2\text{.val}}} \\ &E\rightarrow E*E \; \qquad {\...