Evaluating parse trees with integer math methods