The canonical serialization of a combinator tree with its parameter
references resolved: param nodes contribute the serialization of the
argument they name (resolved in the lexical scope), ambient nodes the
serialization of the dynamic binding they name (resolved in the dynamic scope
captured by that binding, so a binding's value never depends on itself), and
bind nodes serialize their body under the dynamic scope the bind creates.
Nothing is cached, since the result depends on the scopes, not just the
tree.
The serialization exactly encodes the fields that feed the combinator hash
(see hashFields on the operation definitions), in definition order, so it
can (in theory) be unparsed back into the resolved tree it came from.
Currently, the format is undocumented and there is no parsing function, but
there is also really no need to be parsing it.
The canonical serialization of a combinator tree with its parameter references resolved:
paramnodes contribute the serialization of the argument they name (resolved in the lexical scope),ambientnodes the serialization of the dynamic binding they name (resolved in the dynamic scope captured by that binding, so a binding's value never depends on itself), andbindnodes serialize their body under the dynamic scope the bind creates. Nothing is cached, since the result depends on the scopes, not just the tree.The serialization exactly encodes the fields that feed the combinator hash (see
hashFieldson the operation definitions), in definition order, so it can (in theory) be unparsed back into the resolved tree it came from. Currently, the format is undocumented and there is no parsing function, but there is also really no need to be parsing it.