Parse and evaluate mathematical expressions.