2011-08-28 08:50:27 +00:00
|
|
|
#pragma once
|
2010-06-24 19:12:10 +00:00
|
|
|
|
2017-04-01 09:19:00 +00:00
|
|
|
#include <Parsers/IAST.h>
|
2019-10-07 16:23:16 +00:00
|
|
|
#include <Parsers/Lexer.h>
|
2010-06-24 19:12:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2016-07-17 20:10:50 +00:00
|
|
|
/** List of expressions, for example "a, b + c, f(d)"
|
2010-06-24 19:12:10 +00:00
|
|
|
*/
|
|
|
|
class ASTExpressionList : public IAST
|
|
|
|
{
|
|
|
|
public:
|
2019-10-07 16:23:16 +00:00
|
|
|
explicit ASTExpressionList(char separator_ = ',') : separator(separator_) {}
|
2018-12-07 22:02:33 +00:00
|
|
|
String getID(char) const override { return "ExpressionList"; }
|
2017-04-01 07:20:54 +00:00
|
|
|
|
2017-06-18 05:44:09 +00:00
|
|
|
ASTPtr clone() const override;
|
|
|
|
void formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override;
|
|
|
|
void formatImplMultiline(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const;
|
2019-10-07 16:23:16 +00:00
|
|
|
|
|
|
|
char separator;
|
2010-06-24 19:12:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|