An Expression Tree Builder and Evaluator

This applet draws and evaluates the expression tree for any fully-parenthesized arithmetic expression. Type in the text window below a (not too-large) fully-parenthesized integer arithmetic expression and click "Evaluate". The applet will draw and evaluate the corresponding expression tree. Be careful to not include any spaces in your expression, however.

As a warm up try the following expressions: