4,266 views
4 votes
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.

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
2 answers
2
jaswanth431 asked Nov 16, 2021
793 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 votes
0 votes
1 answer
4
atul_21 asked Nov 28, 2017
352 views