printer

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package printer implements printing of acc AST nodes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(n interface{}) ([]byte, error)

Bytes prints the AST and returns resulting bytes.

func Fprint

func Fprint(w io.Writer, n interface{}) error

Fprint writes the AST node n to w.

func Print

func Print(n interface{}) error

Print an AST node to standard out.

func String added in v0.4.0

func String(n interface{}) (string, error)

String prints the AST and returns resulting string.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL