mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 21:51:57 +00:00
21 lines
407 B
C++
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;
|
|
};
|
|
|
|
}
|