示例#1
0
        public static void ParseOrderBy(SoqlQueryExpression query, string expr)
        {
            SoqlParser parser = new SoqlParser(expr);

            parser.ParseOrderByExpressions(query);
            if (!parser.tokenizer.IsEOF())
            {
                throw new SoqlException("Unexpected token: " + parser.tokenizer.TokenValue, parser.tokenizer.TokenPosition);
            }
        }
示例#2
0
        public static SoqlQueryExpression ParseQuery(string expr)
        {
            SoqlParser          parser = new SoqlParser(expr);
            SoqlQueryExpression q      = parser.ParseQuery();

            if (!parser.tokenizer.IsEOF())
            {
                throw new SoqlException("Unexpected token: " + parser.tokenizer.TokenValue, parser.tokenizer.TokenPosition);
            }
            return(q);
        }
示例#3
0
        public static SoqlBooleanExpression ParseBooleanExpression(string expr)
        {
            SoqlParser            parser = new SoqlParser(expr);
            SoqlBooleanExpression e      = parser.ParseBooleanExpression();

            if (!parser.tokenizer.IsEOF())
            {
                throw new SoqlException("Unexpected token: " + parser.tokenizer.TokenValue, parser.tokenizer.TokenPosition);
            }
            return(e);
        }
示例#4
0
        public static SoqlLiteralValueModifiers ParseLiteralValueModifiers(string expr)
        {
            SoqlParser parser           = new SoqlParser(expr);
            SoqlLiteralValueModifiers e = parser.ParseLiteralValueModifiers();

            if (!parser.tokenizer.IsEOF())
            {
                throw new SoqlException("Unexpected token: " + parser.tokenizer.TokenValue, parser.tokenizer.TokenPosition);
            }
            return(e);
        }
示例#5
0
 public static SoqlQueryExpression ParseQuery(string expr)
 {
     SoqlParser parser = new SoqlParser(expr);
     SoqlQueryExpression q = parser.ParseQuery();
     if (!parser.tokenizer.IsEOF())
         throw new SoqlException("Unexpected token: " + parser.tokenizer.TokenValue, parser.tokenizer.TokenPosition);
     return q;
 }
示例#6
0
 public static SoqlBooleanExpression ParseBooleanExpression(string expr)
 {
     SoqlParser parser = new SoqlParser(expr);
     SoqlBooleanExpression e = parser.ParseBooleanExpression();
     if (!parser.tokenizer.IsEOF())
         throw new SoqlException("Unexpected token: " + parser.tokenizer.TokenValue, parser.tokenizer.TokenPosition);
     return e;
 }
示例#7
0
 public static void ParseOrderBy(SoqlQueryExpression query, string expr)
 {
     SoqlParser parser = new SoqlParser(expr);
     parser.ParseOrderByExpressions(query);
     if (!parser.tokenizer.IsEOF())
         throw new SoqlException("Unexpected token: " + parser.tokenizer.TokenValue, parser.tokenizer.TokenPosition);
 }
示例#8
0
 public static SoqlLiteralValueModifiers ParseLiteralValueModifiers(string expr)
 {
     SoqlParser parser = new SoqlParser(expr);
     SoqlLiteralValueModifiers e = parser.ParseLiteralValueModifiers();
     if (!parser.tokenizer.IsEOF())
         throw new SoqlException("Unexpected token: " + parser.tokenizer.TokenValue, parser.tokenizer.TokenPosition);
     return e;
 }