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§
- AstTree
Props - Properties for the
AstTreecomponent. - Kind
Look - 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.