johaus: Index | Files

package pretty

import ""

Package pretty provides functions for pretty-printing parse trees.


Package Files


func Braces Uses

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

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

func Tree Uses

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

Tree writes a pretty representation of the tree.

Package pretty imports 5 packages (graph) and is imported by 8 packages. Updated 2019-01-17. Refresh now. Tools for package owners.