#include namespace DB { namespace ErrorCodes { extern const int LOGICAL_ERROR; } bool IParserBase::parse(Pos & pos, ASTPtr & node, Expected & expected) { Pos begin = pos; expected.add(pos, getName()); bool res = parseImpl(pos, node, expected); /// TODO expected if (!res) { node = nullptr; pos = begin; } return res; } }