Expand description
Parser — KDL schema file → crate::ir::Schema.
Parsing happens in two stages:
- deserialize —
club-kdl’sKdlDeserializederive fills the KDL-shapedrawstructs from the document. - lower —
rawstructs are converted into the validatedcrate::irrepresentation: enum-like strings become real enums, the flattypestring becomes acrate::ir::Ty, and channel semantics (datagramchannel_idrequirements) are checked.
Only the modern dialect is accepted — protocol / channel / request /
returns / event / field, standalone struct / enum, and the
entity dialect record / relation / id. Legacy service / method /
send / recv constructs are not parsed.
Enums§
- Parse
Error - An error produced while parsing a KDL schema.
Functions§
- parse
- Parse a KDL schema source string into a
Schema. Pure text in, pure value out — no filesystem access, no directive resolution. - parse_
doc - Parse an already-loaded
kdl::KdlDocumentinto aSchema. - parse_
path - Read a KDL schema file from disk, resolve every
(<)file/(<)globdirective in it viakdl_compose::compose, then parse the composed document into aSchema.