Skip to main content

Module ast_tree

Module ast_tree 

Source
Expand description

Interactive AST (Abstract Syntax Tree) visualization.

Renders a collapsible tree view of parsed expressions with syntax-highlighted node types. Useful for understanding sentence structure and debugging.

§Props

  • ast - Optional AST node to display (shows placeholder if None)

§Node Types

Different node types are color-coded:

  • Quantifiers (purple): ∀, ∃
  • Predicates (green): Property names
  • Binary operators (purple): ∧, ∨, →, ↔
  • Variables (blue): x, y, z
  • Constants (yellow): Named entities

Re-exports§

pub use AstTree_completions::Component::AstTree;

Structs§

AstTreeProps
Properties for the AstTree component.

Functions§

AstTree
Props