ClickHouse/dbms/Parsers/ASTExpressionList.h

26 lines
635 B
C++
Raw Normal View History

2011-08-28 08:50:27 +00:00
#pragma once
2010-06-24 19:12:10 +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
{
/** 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-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
};
}