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:

- ((2+4)*(9-2))
- (((4+3)*(2-1))*(3/1))
- ((((4+3)*(2-1))*(3/1))-((2+5)*(1+1)))