2011-08-28 08:50:27 +00:00
|
|
|
#pragma once
|
2010-06-24 19:12:10 +00:00
|
|
|
|
|
|
|
#include <DB/Parsers/IAST.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
using Poco::SharedPtr;
|
|
|
|
|
|
|
|
|
|
|
|
/** Список выражений типа "a, b + c, f(d)"
|
|
|
|
*/
|
|
|
|
class ASTExpressionList : public IAST
|
|
|
|
{
|
|
|
|
public:
|
2010-06-25 16:36:13 +00:00
|
|
|
ASTExpressionList() {}
|
2011-08-13 21:05:18 +00:00
|
|
|
ASTExpressionList(StringRange range_) : IAST(range_) {}
|
2010-06-24 19:12:10 +00:00
|
|
|
|
2011-08-09 19:19:00 +00:00
|
|
|
/** Получить текст, который идентифицирует этот элемент. */
|
|
|
|
String getID() { return "ExpressionList"; }
|
2011-12-12 06:15:34 +00:00
|
|
|
|
|
|
|
ASTPtr clone() const
|
|
|
|
{
|
|
|
|
ASTExpressionList * res = new ASTExpressionList(*this);
|
|
|
|
res->children.clear();
|
|
|
|
|
|
|
|
for (ASTs::const_iterator it = children.begin(); it != children.end(); ++it)
|
|
|
|
res->children.push_back((*it)->clone());
|
|
|
|
|
|
|
|
return res;
|
|
|
|
}
|
2010-06-24 19:12:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|