ClickHouse/dbms/include/DB/Parsers/IParserBase.h
2015-04-14 04:39:30 +03:00

21 lines
407 B
C++

#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;
};
}