Independent core
TokLang — Module
TokLangThe tok language in Julia. The independent core of the package (lexer, parser, canonical printer fmt and semantic BPMN 2.0 export semantic_xml) is a second implementation of the specification, checked against the conformance corpus in conformance/. TokLang.Engine gives the whole language through the Rust engine, TokLang.Sim the native simulator for large experiments and TokLang.Fit the calibration of simulation parameters on event logs.
TokLang.parse_tok — Function
parse_tok(text) -> (Document, Vector{Diag})Parse a tok document.
TokLang.fmt — Function
fmt(doc) -> StringCanonical text of a parsed document.
TokLang.semantic_xml — Function
semantic_xml(doc; target=nothing) -> StringSemantic BPMN 2.0 XML of a document (attributes sorted, no layout), identical to the output of the Python reference implementation.
TokLang.Diag — Type
Diag(code, line, id=nothing; arguments...)A diagnostic of the independent core: its code (for example "P001"), the line of the document, the id of the element it concerns, or nothing, and the args of its message. message gives the text and severity the severity.
TokLang.message — Function
message(d::Diag, lang="en") -> StringThe text of a diagnostic, in English ("en") or in Polish ("pl").
TokLang.format_diag — Function
format_diag(d::Diag, lang="en", path=nothing) -> StringOne line for a person to read, with the place, the severity, the code and the text of the diagnostic, as tok check prints it; path is the file named at the start of the line.
TokLang.severity — Function
severity(d::Diag) -> StringThe severity of a diagnostic: "error", "warning" or "note".