///|
test {
let scan = @envelope.scan(
"@startuml\nstate Ready\nReady --> Done : finish\n@enduml\n",
)
let read = @state.read(scan)
let document = read.document.unwrap()
let model = @state.to_state(document).state.unwrap()
assert_eq(model.transitions[0].source, "Ready")
assert_eq(model.transitions[0].target, "Done")
}pub struct ReadResult {
nodes : ReadOnlyArray[Node]
document : Document?
diagnostics : ReadOnlyArray[Diagnostic]
}Install
Download zipPlantUML for diagrams.mbt: native state, activity, regex, EBNF, JSON and YAML readers, writers and conversion to diagram models