. Define “S-attribute grammar” and “L-attribute grammar”. b). List one advantage of an attribute grammar over context free grammar. c). Is this grammar an “S-attribute grammar” or “L-attribute grammar”? Explain your answer. D rightarrow TL T rightarrow int T rightarrow real L rightarrow L_1, id L rightarrow d L. type:= T. type T. type:= integer T. type:= real L_1. type:= L. type, addtype (id. entry, L. type) add type (id. entry, L. type) d). Is this grammar an “S-attribute grammar” or “L-attribute grammar”? Explain your answer. L rightarrow E E rightarrow E_1 + T E rightarrow T T rightarrow T_1*F T rightarrow F F rightarrow (E) F rightarrow digit print(E. va) E. val:= E_l. val + T. val E.val:= T. val T. val:= T_1.val* F. val T. val:= F. val F. val:= E. val F. val:= digit. lexval