Expand description
This module defines the data structures and functions used to draw trees.
Structs§
- Tree
Builder - A builder struct for formatting AST nodes.
Functions§
- format
- Very inefficiently formats the given node and children into a tree by indenting every line.
- print_
ast_ list_ generic - A function used by
TreeBuilder::list
andTreeBuilder::list_map
for list formatting. Also seeprint_ast_list_without_node_name
. - print_
ast_ list_ without_ node_ name - A lower-level function behind
print_ast_list_generic
that actually does the formatting. Useful for manually implementingAstToStr
forVec
-like types.