Derivation: Discerning difference between arithmetic expression with parenthesis versus without using abstract syntax trees

148 Views Asked by At

I am trying to illustrate the expression: ( 3 * 4 + 5 * 6 + 7 ) using an abstract syntax tree. I have already illustrated the expression: ( 3 * (4 + 5) * (6 + 7) ).

exp1

Could someone please illustrate the expression without parenthesis with order of left-most first. Thanks in advance.

EDIT: Here is an updated image of what I think may be correct, but please correct me if it is not. Thanks.

xxx