parser

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package parser implements Mermaid diagram parsers.

This file implements a recursive descent parser for Mermaid flowchart syntax. It supports: graph/flowchart directives, all directions (TB/TD/LR/BT/RL), node shapes ([], (), {}, ([]), [[]], (()), ((())) etc.), edge types (-->, -.->, ==>, <-->, ---), edge labels, subgraphs, classDef, comments, chained arrows, & operator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseFlowchart

func ParseFlowchart(text string) *graph.Graph

ParseFlowchart parses mermaid flowchart/graph text into a Graph model.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL