Пример #1
0
        void FromSource(GetExpression expression)
        {
            Expect(2);
            var col = new ExpressionGeneration.CollectionDescriptor(); expression.AddCollection(col); col.Name = t.val;

            if (la.kind == 2)
            {
                Get();
                col.Alias = t.val;
            }
            while (la.kind == 32 || la.kind == 33)
            {
                if (la.kind == 32)
                {
                    Get();
                }
                else
                {
                    Get();
                }
                if (la.kind == 34 || la.kind == 35)
                {
                    if (la.kind == 34)
                    {
                        Get();
                    }
                    else
                    {
                        Get();
                    }
                }
                Expect(36);
                Expect(2);
                var col2 = new ExpressionGeneration.CollectionDescriptor(); expression.AddCollection(col); col2.Name = t.val;
                if (la.kind == 2)
                {
                    Get();
                    col2.Alias = t.val;
                }
                Expect(30);
                Expect(2);
                Expect(37);
                Expect(2);
            }
        }
Пример #2
0
	void FromSource(GetExpression expression) {
		Expect(2);
		var col = new ExpressionGeneration.CollectionDescriptor(); expression.AddCollection(col); col.Name = t.val; 
		if (la.kind == 2) {
			Get();
			col.Alias = t.val; 
		}
		while (la.kind == 32 || la.kind == 33) {
			if (la.kind == 32) {
				Get();
			} else {
				Get();
			}
			if (la.kind == 34 || la.kind == 35) {
				if (la.kind == 34) {
					Get();
				} else {
					Get();
				}
			}
			Expect(36);
			Expect(2);
			var col2 = new ExpressionGeneration.CollectionDescriptor(); expression.AddCollection(col); col2.Name = t.val; 
			if (la.kind == 2) {
				Get();
				col2.Alias = t.val;  
			}
			Expect(30);
			Expect(2);
			Expect(37);
			Expect(2);
		}
	}