2025-06-29 00:13:52 +01:00

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