Compute the value of an expression.