ClickHouse/dbms/include/DB/Parsers/formatAST.h
2010-06-28 13:44:42 +00:00

31 lines
829 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef DBMS_PARSERS_FORMATAST_H
#define DBMS_PARSERS_FORMATAST_H
#include <ostream>
#include <DB/Parsers/IAST.h>
#include <DB/Parsers/ASTSelectQuery.h>
#include <DB/Parsers/ASTExpressionList.h>
#include <DB/Parsers/ASTFunction.h>
#include <DB/Parsers/ASTIdentifier.h>
#include <DB/Parsers/ASTLiteral.h>
namespace DB
{
/** Берёт синтаксическое дерево и превращает его обратно в текст.
*/
void formatAST(const IAST & ast, std::ostream & s);
void formatAST(const ASTSelectQuery & ast, std::ostream & s);
void formatAST(const ASTExpressionList & ast, std::ostream & s);
void formatAST(const ASTFunction & ast, std::ostream & s);
void formatAST(const ASTIdentifier & ast, std::ostream & s);
void formatAST(const ASTLiteral & ast, std::ostream & s);
}
#endif