merman-core 0.8.0-alpha.5

Mermaid parser + semantic model (headless; parity-focused).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::{EditorLexemeKind, SourceSpan};

/// One grammar-recognized component of a compound Flowchart lexer token.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub(crate) struct FlowchartLexemeComponent {
    pub(crate) kind: EditorLexemeKind,
    pub(crate) span: SourceSpan,
}

impl FlowchartLexemeComponent {
    pub(crate) const fn new(kind: EditorLexemeKind, span: SourceSpan) -> Self {
        Self { kind, span }
    }
}