johaus: within.website/johaus/pretty Index | Files

package pretty

import "within.website/johaus/pretty"

Package pretty provides functions for pretty-printing parse trees.

Index

Package Files

pretty.go

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.