SPI Maths - Parsing Tree Builder
3(4x + 2)2
Build the parse tree for the expression. The outside multiplication is the first structural action.
Build the tree
Selected node: root
Current type: leaf / endpoint
Children: 0
Current type: leaf / endpoint
Children: 0
1. Choose the structural role.
2. Split the selected node.
Letters: S = sum, P = product, I = index/power, F = function.
Feedback
Ready.
Start at the root. Ask: is the whole expression mainly a sum, product, index, or function?