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

21 lines
407 B
C++
Raw Normal View History

#pragma once
#include <DB/Parsers/IParser.h>
namespace DB
{
/** Базовый класс для большинства парсеров
*/
class IParserBase : public IParser
{
public:
bool parse(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected);
protected:
virtual bool parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected) = 0;
};
}