1#pragma once
2
3#include <Parsers/IAST.h>
4#include <Parsers/Lexer.h>
5
6
7namespace DB
8{
9
10/** List of expressions, for example "a, b + c, f(d)"
11 */
12class ASTExpressionList : public IAST
13{
14public:
15 explicit ASTExpressionList(char separator_ = ',') : separator(separator_) {}
16 String getID(char) const override { return "ExpressionList"; }
17
18 ASTPtr clone() const override;
19 void formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override;
20 void formatImplMultiline(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const;
21
22 char separator;
23};
24
25}
26