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

21 lines
407 B
C++
Raw Normal View History

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