moonrockz/diagrams/regex does not have a README file
pub(all) enum AnchorKind { LineStart LineEnd InputStart InputEndBeforeNewline InputEnd PreviousMatchEnd WordBoundary NonWordBoundary} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn AnchorKind::equal(AnchorKind, AnchorKind) -> Bool
fn AnchorKind::not_equal(x : AnchorKind, y : AnchorKind) -> Bool
fn AnchorKind::to_repr(AnchorKind) -> @moonbitlang/core/debug.ReprRepr
pub struct Bounds { min : Int max : Int? reluctant : Bool spelling : String} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn Bounds::equal(Bounds, Bounds) -> Bool
fn Bounds::new(min : Int, max? : Int, reluctant? : Bool, spelling? : String) -> Bounds
fn Bounds::not_equal(x : Bounds, y : Bounds) -> Bool
fn Bounds::to_repr(Bounds) -> @moonbitlang/core/debug.ReprRepr
pub(all) enum ClassKind { Any Shorthand(Char) Property(String) CodePoint(String) Posix(String)} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn ClassKind::equal(ClassKind, ClassKind) -> Bool
fn ClassKind::not_equal(x : ClassKind, y : ClassKind) -> Bool
fn ClassKind::to_repr(ClassKind) -> @moonbitlang/core/debug.ReprRepr
pub(all) enum GroupKind { Capturing NonCapturing Named(String)} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn GroupKind::equal(GroupKind, GroupKind) -> Bool
fn GroupKind::not_equal(x : GroupKind, y : GroupKind) -> Bool
fn GroupKind::to_repr(GroupKind) -> @moonbitlang/core/debug.ReprRepr
pub struct Index { regex : Regex order : ReadOnlyArray[String] // private fields}
fn Index::build(regex : Regex, limits? : Limits) -> IndexResult
fn Index::depth(self : Index, id : String) -> Int?
fn Index::node(self : Index, id : String) -> Node?
fn Index::parent(self : Index, id : String) -> String?
pub struct IndexResult { index : Index? diagnostics : ReadOnlyArray[@moonrockz/diagrams.DiagnosticDiagnostic]}
pub(all) enum Kind { Literal(String) Class(ClassKind) Set(Bool, ReadOnlyArray[SetItem]) Anchor(AnchorKind) Backreference(String) Sequence(ReadOnlyArray[String]) Choice(ReadOnlyArray[String]) Group(GroupKind, String) Repeat(Bounds, String) Assertion(Look, Bool, String)} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn Kind::equal(Kind, Kind) -> Bool
fn Kind::not_equal(x : Kind, y : Kind) -> Bool
fn Kind::to_repr(Kind) -> @moonbitlang/core/debug.ReprRepr
pub struct Limits { nodes : Int depth : Int work : Int} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn Limits::equal(Limits, Limits) -> Bool
fn Limits::new(nodes? : Int, depth? : Int, work? : Int) -> Limits
fn Limits::not_equal(x : Limits, y : Limits) -> Bool
fn Limits::to_repr(Limits) -> @moonbitlang/core/debug.ReprRepr
pub(all) enum Look { Ahead Behind} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn Look::equal(Look, Look) -> Bool
fn Look::not_equal(x : Look, y : Look) -> Bool
fn Look::to_repr(Look) -> @moonbitlang/core/debug.ReprRepr
pub struct Node { id : String kind : Kind source : @moonrockz/diagrams.SpanSpan?} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn Node::children(self : Node) -> ReadOnlyArray[String]
fn Node::equal(Node, Node) -> Bool
fn Node::is_leaf(self : Node) -> Bool
fn Node::label(self : Node) -> String
fn Node::new(id : String, kind : Kind, source? : @moonrockz/diagrams.SpanSpan) -> Node
fn Node::not_equal(x : Node, y : Node) -> Bool
fn Node::to_repr(Node) -> @moonbitlang/core/debug.ReprRepr
pub struct Regex { id : String root : String nodes : ReadOnlyArray[Node] title : String? accessibility_title : String? accessibility_description : String? pattern : String?} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn Regex::equal(Regex, Regex) -> Bool
fn Regex::new(id : String, root : String, nodes : ArrayView[Node], title? : String, accessibility_title? : String, accessibility_description? : String, pattern? : String) -> Regex
fn Regex::node(self : Regex, id : String) -> Node?
fn Regex::not_equal(x : Regex, y : Regex) -> Bool
fn Regex::to_repr(Regex) -> @moonbitlang/core/debug.ReprRepr
pub(all) enum SetItem { Char(String) Range(String, String) Escape(String)} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn SetItem::equal(SetItem, SetItem) -> Bool
fn SetItem::not_equal(x : SetItem, y : SetItem) -> Bool
fn SetItem::to_repr(SetItem) -> @moonbitlang/core/debug.ReprRepr
let diagnostic_codes : ReadOnlyArray[String]
fn validate(regex : Regex, limits? : Limits) -> ReadOnlyArray[@moonrockz/diagrams.DiagnosticDiagnostic]
Install
Diagramming for MoonBit: Mermaid, PlantUML, Draw.io, Graphviz DOT and more
No dependencies
Published modules that use this version
Powered by MoonBit
© 2026 mooncakes.io