// PrintExpr prints an expression func PrintExpr(expr Expr) string { buf := new(bytes.Buffer) p := fmt8.NewPrinter(buf) printExpr(p, expr) return buf.String() }
// PrintPkg prints a the content of a IR package func PrintPkg(out io.Writer, pkg *Pkg) error { p := fmt8.NewPrinter(out) printPkg(p, pkg) return p.Err() }
// FprintStmts prints the statements out to a writer func FprintStmts(out io.Writer, stmts []Stmt) { p := fmt8.NewPrinter(out) printStmt(p, stmts) }