Consider the following grammar and their syntax Directed Translation (SDT) rules.
S → S * A {S.val = S.val × A.val}S → A {S.val = A.val}A → A + B {A.val = A.val - B.val}B → (S) {B.val = 2}A → B {A.val = B.val}B → id {B.val = id.val}
S1:Given SDT is L- attributed and using L- attributed evaluation the value of the expression4*6+3 * 7 is 84.S2:Given SDT is S- attributed and using S-attributed evaluatin value of the expression4∗6+3∗7 is 84.
Which of the above statements are true with respect to above SDT.