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 result will be different from the S attributed evaluation ? And how should i print the rules in both cases.
Explain both case in this example :

Consider the translation scheme shown below
$\mathrm{S} \rightarrow \mathrm{T} R$
$\mathrm{R} \rightarrow+\mathrm{T}$ \{print ('+'); $\} \mathrm{R} \mid \varepsilon$
$\mathrm{T} \rightarrow$ num \{print (num.val); $\}$
Here num is a token that represents an integer and num.val represents the corresponding integer value. For an input string ' $9+5+2$ ', this translation scheme will print
(Note: Use L-attributed evaluation to produce output)
- $9+5+2$
- $95+2+$
- $952++$
- ++952