An annotated parse tree is a parse tree showing the value(s) of its attribute(s).
<L> ::= <E> n
Val(<L>) = Val(<E>)
<E> ::= <E1> + <T>
Val(<E>) = Val(<E1>) + Val(<T>)
<E> ::= <T>
Val(<E>) = Val(<T>)
<T> ::= <T1> * <F>
Val(<T>) = Val(<T1>) × Val(<F>)
<T> ::= <F>
Val(<T>) = Val(<F>)
<F> ::= ( <E> )
Val(<F>) = Val(<E>)
<F> ::= digit
Val(<F>) = Lexval(digit)
3 * 5 + 4 n