[DIAGRAM PROPOSAL] Tree Diagrams (Slim) #6015
Labels
Status: Triage
Needs to be verified, categorized, etc
Type: Enhancement
New feature or request
Type: New Diagram
Proposal
Initially detailed here.
Simple tree diagrams (specifically those for syllable and syntax trees). Namely, it would have the following features:
Create nodes with no border
Make nodes connect at the top and bottom
Custom connections like the split nucleus or the triangle connection (the below example)
Currently, this is what I have found to be the analogous operations for Mermaid:
This is somewhat similar to #3989
Use Cases
This would be good for a whole host of different things. Namely, as per my and the OP of the linked stack overflow comment, it would be helpful for diagramming syntax parsing (parse trees) for NLP. Regardless, it would be helpful for any type of light-weight tree.
Screenshots
Current best-effort diagram (with existing Mermaid synatx):
Syntax
Two options:
Important
Since tree structures are inherently non-recursive, we can use the last mentioned reference of a symbol when parsing a root. There will only be one root (no previous reference) and it is the first symbol of the syntax; all other symbols must be previously defined.
The above example syntax would render:
Implementation
This is a proposal which I'd love to see built into mermaid by the wonderful community.
The text was updated successfully, but these errors were encountered: