• retagged by
643 views

1 Answer

Best answer
2 2 votes
we know in S attributed ...parent takes values from child...

while in L attributed the we can take values from parent or from LEFT siblings...but not from right-ones...

Here A.x takes value from B.x means from the right sibling....

SO OPTION D IS CORRECT...its not S attributed and L attributed too...

100% wrong answer given,,,
• selected by
Answer:
Position:
Show:

Related questions

0 0 votes
2 2 answers
1.6k
1.6k views
jaswanth431 asked Nov 16, 2021
1,598 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...
0 0 votes
1 1 answer
1.8k
1.8k views
Na462 asked Oct 8, 2018
1,772 views
I know that every S attributed grammar is L attributed but not vice versa. Can anybody give example of the case if i print the semantic rules using L attributed the resul...
0 0 votes
1 1 answer
2.7k
2.7k views
radha gogia asked May 6, 2018
2,741 views
E->TE'E'->*T { printf('*') ;} E' | epsilonT- id {printf (id.name) ;}A) E->E*T | T {printf('*');}T->id {printf(id.name);}B) E->TE'E'->*TME' | epsilonM->epsilon { printf('...
4 4 votes
0 0 answers
5.4k
5.4k views
saxena0612 asked Nov 12, 2017
5,358 views
I read from Dragon Book that Syntax directed translation is used for type checking for instance where performing some reductions and other operation on the string or symb...