What expression does this parse tree generate?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Start at the leaves of the tree and work your way up left to right. The left-most leaves are x and y and those are connected by an "+" node. This is connected to a "( )" node, so those go in parentheses. Keep following the tree this way until you hit the next branching node, which is (in this case) "S * S" where the first "S" is "(x + y)" and the second "S" is "x" --> so this yields "(x + y) * x" and so on.