Expand description
Parsing for the Event Tree Definition Language (ETDL).
etdl-parser reads .etdl documents — the declarative, design-time DSL for
reliability-aware event-driven microservices defined by
IEC 62502:2010 (event tree analysis)
and IEC 61025:2006 (fault tree analysis) —
and resolves their references into AsyncAPI 3.0 contracts.
§Features
ast— full document AST with manualDeserialize(supports legacyeventTreeandx-*extension fields)ecel— the Event-tree Condition Expression Language (ECEL), a typed, side-effect-free expression language for barrier branch conditionsasyncapi— AsyncAPI 3.0 document loading and a schema-introspecting registryjsonptr— RFC 6901 JSON Pointer resolution foronFailureProbabilitySourceand other in-document references
§Example
use etdl_parser::parse_document_from_file;
use std::path::Path;
let doc = parse_document_from_file(Path::new("order-fulfillment.etdl"))?;