Documentation

Overview

    Package pretty provides functions for pretty-printing parse trees.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    func Braces

    func Braces(w io.Writer, n *peg.Node) error

      Braces pretty-prints a parse tree using ( ), [ ], { }, and < > show the nesting structure.

      func Tree

      func Tree(w io.Writer, n *peg.Node) error

        Tree writes a pretty representation of the tree.

        Types

        This section is empty.

        Source Files