mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
33 lines
767 B
C++
33 lines
767 B
C++
#include "iostream_debug_helpers.h"
|
|
#include <Parsers/IAST.h>
|
|
#include <Parsers/IParser.h>
|
|
#include <Parsers/Lexer.h>
|
|
#include <Parsers/TokenIterator.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
std::ostream & operator<<(std::ostream & stream, const Token & what)
|
|
{
|
|
stream << "Token (type="<< static_cast<int>(what.type) <<"){"<< std::string{what.begin, what.end} << "}";
|
|
return stream;
|
|
}
|
|
|
|
std::ostream & operator<<(std::ostream & stream, const Expected & what)
|
|
{
|
|
stream << "Expected {variants=";
|
|
dumpValue(stream, what.variants)
|
|
<< "; max_parsed_pos=" << what.max_parsed_pos << "}";
|
|
return stream;
|
|
}
|
|
|
|
std::ostream & operator<<(std::ostream & stream, const IAST & what)
|
|
{
|
|
stream << "IAST{";
|
|
what.dumpTree(stream);
|
|
stream << "}";
|
|
return stream;
|
|
}
|
|
|
|
}
|