private void ScanIf()
        {
            var ex = new IncorrectCondition();

            IsConditionalExpressionWithException(ex);

            ScanExpression(ex);

            IsThenWithExcpetion(ex);

            ScanComplexOperator();

            if (IsElse())
            {
                MoveCurrentLexem();
                ScanComplexOperator();
                IsEndElseWithException(ex);
            }
            else
                IsEndIfWithExcpetion(ex);
        }
 private void IsEndElseWithException(IncorrectCondition ex)
 {
     IsSomethingWithException(IsEndElse, ex);
 }