Enhance Formula class to handle mixed operators with difference
precedence.