moonrockz/diagrams-mermaid/swimlane-syntax
Types
Limits
pub struct Limits {
source : Int
output : Int
nodes : Int
edges : Int
depth : Int
work : Int
diagnostics : Int
metadata_depth : Int
metadata_work : Int
} derive(Eq, @moonbitlang/core/debug.Debug)Limits::equal
fn Limits::equal(Limits, Limits) -> BoolLimits::new
fn Limits::new(source? : Int, output? : Int, nodes? : Int, edges? : Int, depth? : Int, work? : Int, diagnostics? : Int, metadata_depth? : Int, metadata_work? : Int) -> LimitsLimits::not_equal
fn Limits::not_equal(x : Limits, y : Limits) -> BoolLimits::to_repr
fn Limits::to_repr(Limits) -> @moonbitlang/core/debug.ReprReadResult
pub struct ReadResult {
tree : @moonrockz/diagrams-mermaid/swimlane-cst.Node
ast : @moonrockz/diagrams-mermaid/swimlane-ast.Diagram?
diagnostics : ReadOnlyArray[@moonrockz/diagrams.Diagnostic]
} derive(Eq, @moonbitlang/core/debug.Debug)ReadResult::equal
fn ReadResult::equal(ReadResult, ReadResult) -> BoolReadResult::not_equal
fn ReadResult::not_equal(x : ReadResult, y : ReadResult) -> BoolReadResult::to_repr
fn ReadResult::to_repr(ReadResult) -> @moonbitlang/core/debug.ReprValues
decode_content
fn decode_content(value : String) -> Stringdiagnostic_codes
let diagnostic_codes : ReadOnlyArray[String]Stable reader findings. Limit findings produce no complete AST.
front_matter_title
fn front_matter_title(front : String, limits? : Limits) -> (String?, String?)Decode title metadata with the same explicit YAML depth and work bounds.
is_space
fn is_space(unit : Int) -> BoolJavaScript lexical whitespace, excluding the CR/LF statement separators.
max_metadata_depth
let max_metadata_depth : Intread
fn read(source : String, limits? : Limits, header? : String, diagnostic_prefix? : String, accepted_headers? : ArrayView[String]) -> ReadResulttrim_space
fn trim_space(source : String) -> String