Omochice/pele/errors does not have a README file
type Edit = (Int, Int, Int)pub(all) enum ErrorCode {
UnsupportedDiagram
Syntax
Semantic
Limit
}pub(all) struct Failure {
message : String
code : ErrorCode
kind : String?
mermaid_type : String?
line : Int
column : Int
snippet : String
}pub(all) struct Origin {
parsed : String
find : (Int) -> (String, Int)
}fn locate(src : String, offset : Int) -> (Int, Int, String)fn syntax_error(kind : String, src : String, offset : Int, detail : String, lexical? : Bool) -> PeleErrorfn written(src : String, offset : Int) -> (String, Int)