In particular, minimize the number of parentheses written, using the same algorithm as in the preprocessor.