Skip to main content

Module tree_display

Module tree_display 

Source
Expand description

Utilities to display the parser’s syntax tree in a readable ASCII/Unicode tree format.

Delegates to sipha’s grammar-agnostic format_syntax_tree with a kind-name callback for LeekScript syntax kinds.

Structs§

TreeDisplayOptions
Options for formatting the syntax tree (re-exported from sipha). Options for formatting the syntax tree.

Functions§

format_syntax_tree
Format a syntax tree starting at root as a multi-line string.
print_syntax_tree
Print the syntax tree to stdout.