Each production has a rule that computes the node's cost from its children's. The boxed constants can be edited.
Postorder: a node is evaluated only after all of its children
Only nonterminals carry a cost; terminals are leaves. The chips list the nodes in evaluation order.