A tree-based approach to evaluating mathematical expressions.