#include "iostream_debug_helpers.h" #include #include #include #include namespace DB { std::ostream & operator<<(std::ostream & stream, const Token & what) { stream << "Token (type="<< static_cast(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; } }