Here all the attributes are synthesized attributes. The attribute value of digit is provided by lexical analyzer since it is a terminal
1. (3+4)∗(5+6)n
Parse Tree
Annotated Parse Tree
2. 1∗2∗3∗(4+5)n
Synthesized attributes are used in conjunction with bottom up parsers to pass info up the tree
3. (9+8∗(7+6)+5)∗4n