mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
21 lines
349 B
C++
21 lines
349 B
C++
#include <Parsers/IParserBase.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
bool IParserBase::parse(Pos & pos, ASTPtr & node, Expected & expected)
|
|
{
|
|
expected.add(pos, getName());
|
|
|
|
return wrapParseImpl(pos, IncreaseDepthTag{}, [&]
|
|
{
|
|
bool res = parseImpl(pos, node, expected);
|
|
if (!res)
|
|
node = nullptr;
|
|
return res;
|
|
});
|
|
}
|
|
|
|
}
|