ClickHouse/dbms/src/Parsers/IParserBase.h
2017-07-13 08:59:01 +03:00

21 lines
303 B
C++

#pragma once
#include <Parsers/IParser.h>
namespace DB
{
/** Base class for most parsers
*/
class IParserBase : public IParser
{
public:
bool parse(Pos & pos, ASTPtr & node, Expected & expected);
protected:
virtual bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) = 0;
};
}