func newFormatter(out io.Writer, toks []*lex8.Token) *formatter { p := fmt8.NewPrinter(out) return &formatter{ Printer: p, toks: newTokens(toks), } }
func newFormatter(out io.Writer, tokens []*lex8.Token) *formatter { p := fmt8.NewPrinter(out) return &formatter{p, tokens, 0} }
// 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() }