First attempt to parse the formula with parenthesis