14 lines
250 B
C++
14 lines
250 B
C++
#ifndef AST_PRINTER_HH
|
|
#define AST_PRINTER_HH
|
|
|
|
#include "expr.hh"
|
|
#include <string>
|
|
|
|
struct AstPrinter {
|
|
std::string print(const Expr &expr);
|
|
private:
|
|
std::string parenthesize(const std::string &name, std::vector<const Expr *> exprs);
|
|
};
|
|
|
|
#endif
|