Skip to main content

Module ast_tree

Module ast_tree 

Source
Expand description

The Syntax Tree: how a sentence parses, drawn with the Studio’s tree.

The top row is the whole sentence as parsed, and each row below splits its phrase into its parts. A row is a node’s label — the formula piece it stands for, in the notation the Logic Output prints — then a pill naming its kind, in the reader’s word and the colour of the one syntax palette (--syntax-*). A short note above the tree says how to read it, with a legend of the pill colours. Every level opens as the tree opens; a node’s row folds its parts away.

Re-exports§

pub use AstTree_completions::Component::AstTree;

Structs§

AstTreeProps
Properties for the AstTree component.
KindLook
A node kind as a reader sees it: the word its pill says and the swatch it wears.

Enums§

Swatch
A swatch of the one syntax palette (--syntax-* in the Studio’s tokens).

Constants§

LEGEND
The legend’s groups: the kinds each pill colour marks, and the swatches that wear it. The swatches of one group share a colour in the palette.

Functions§

AstTree
Props
kind_look
The look of each kind the compiler names a node (ui_bridge::expr_to_ast_node), in the words the Symbol Dictionary uses where it has one.