Independent core

TokLang — Module
TokLang

The 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.

source
TokLang.semantic_xml — Function
semantic_xml(doc; target=nothing) -> String

Semantic BPMN 2.0 XML of a document (attributes sorted, no layout), identical to the output of the Python reference implementation.

source
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.

source
TokLang.message — Function
message(d::Diag, lang="en") -> String

The text of a diagnostic, in English ("en") or in Polish ("pl").

source
TokLang.format_diag — Function
format_diag(d::Diag, lang="en", path=nothing) -> String

One 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.

source
TokLang.severity — Function
severity(d::Diag) -> String

The severity of a diagnostic: "error", "warning" or "note".

source