refactoring for parsing binary operator expressions in 'formula' rule