5,359 views
4 4 votes

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 symbol we perform some additional operations.

https://en.wikipedia.org/wiki/L-attributed_grammar Here for instance many things are sorted but still i have some doubts regarding this.
Defintion in compiler can be on synthesized and inherited attribute and we all know L definitions have both s and inhertited attributes but some questions interpret it differently for ex :

In both of this question The answer is L attributes definition I understand that but it could be Both because L attribute definition is both.
Resolve my doubt !

Please log in or register to answer this question.

Position:
Show:

Related questions

0 0 votes
1 1 answer
2.7k
2.7k views
radha gogia asked May 6, 2018
2,745 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('...
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 answers 1 answer
644
644 views
atul_21 asked Nov 28, 2017
644 views