Skip to main content

Module describe

Module describe 

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