Consider the following grammar and their Syntax Directed Translation (SDT) rules.
(Here id represent a integer and id.val is value of that integer)
S1: Given SDT is L-attributed and using L-attributed evaluation the value of the expression 4 * 6 + 3 * 7 is 84.
S2: Given SDT is S-attributed and using S-attributed evaluation value of the expression 4 * 6 + 3 * 7 is 84.
Which of the above statements are true with respect to the above SDT.?
My doubt here: Is there any difference in the way of evaluation of L-attributed SDT and S-attributed SDT ?