示例#1
0
        private ConditionExpression ParseBooleanOr()
        {
            ConditionExpression e = ParseBooleanAnd();

            while (tokenizer.IsKeyword("or") || tokenizer.IsToken(ConditionTokenType.Or))
            {
                tokenizer.GetNextToken();
                e = new ConditionOrExpression((ConditionExpression)e, (ConditionExpression)ParseBooleanAnd());
            }
            return(e);
        }
示例#2
0
        private ConditionExpression ParseBooleanOr()
        {
            ConditionExpression expression = ParseBooleanAnd();

            while (_tokenizer.IsKeyword("or") || _tokenizer.IsToken(ConditionTokenType.Or))
            {
                _tokenizer.GetNextToken();
                expression = new ConditionOrExpression(expression, ParseBooleanAnd());
            }

            return(expression);
        }
示例#3
0
        private ConditionExpression ParseBooleanOr()
        {
            ConditionExpression expression = this.ParseBooleanAnd();

            while (this.tokenizer.IsKeyword("or") || this.tokenizer.IsToken(ConditionTokenType.Or))
            {
                this.tokenizer.GetNextToken();
                expression = new ConditionOrExpression(expression, this.ParseBooleanAnd());
            }

            return expression;
        }
示例#4
0
        private ConditionExpression ParseBooleanOr() 
        {
            ConditionExpression e = ParseBooleanAnd();

            while (tokenizer.IsKeyword("or") || tokenizer.IsToken(ConditionTokenType.Or)) 
            {
                tokenizer.GetNextToken();
                e = new ConditionOrExpression((ConditionExpression)e, (ConditionExpression)ParseBooleanAnd());
            }
            return e;
        }