Expand description
Reading dialects and acts for a host, so no host re-encodes CBCL’s grammar to look inside one (SPEC-013 REQ-018, SPEC-010 REQ-002). Three reads, each the parser’s and the installed structures’ view, returned as JSON:
define_text(<define | (meta (define …)) | (meta (teach (define …)))>) → canonical "(define …)"
describe_dialect(<dialect text>) → {name, author, opener, verbs, roles, state, domains, bounds, text}
read_act(<message text>) → {dialect, address, verb, recipients, fields, thread, from, causedBy}Functions§
- define_
form - The
(define …)form of a dialect text, a(meta (define …)), or a(meta (teach (define …)))teach frame, in canonical serialisation. - define_
text_ str define_text: the canonical text of the(define …)a frame carries.- describe
- What a host or a view needs to know about a dialect, from the installed structures.
- describe_
dialect_ str describe_dialect: a dialect text (or teach frame) → its description as JSON.- read_
act_ exact_ str - Read fields with explicit atom kinds where ordinary JSON would lose information.
- read_
act_ str read_act: an act’s wire text → its dialect, address, verb, recipients, data fields (routing excluded), and routing, as JSON.