moonrockz/gleam-parser/diagnostic does not have a README file
fn Diagnostic::new(code~ : String, severity~ : Severity, title~ : String, message~ : String, span~ : SrcSpan, kind? : String, labels? : Array[Label], text? : String, hint? : String?) -> Diagnostictest {
let d = @diagnostic.Diagnostic::new(
code="GL-SCAN-001",
severity=Error,
title="Syntax error",
message="I don't know what this character means",
span=@span.SrcSpan::new(2, 3),
)
debug_inspect(d.is_error(), content="true")
debug_inspect(d.labels.length(), content="0")
}fn description(code : String) -> String?Install
Download zipParser and parsing utilities for the Gleam programming language in MoonBit
Dependencies