ClickHouse/dbms/include/DB/Parsers/ParserEnumElement.h

21 lines
414 B
C++
Raw Normal View History

#pragma once
#include <DB/Parsers/IParserBase.h>
#include <DB/Parsers/ExpressionElementParsers.h>
namespace DB
{
class ParserEnumElement : public IParserBase
{
ParserStringLiteral name_parser;
ParserNumber value_parser;
protected:
const char * getName() const override { return "enum element"; }
bool parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected) override;
};
}