@r47onfire/nebula - v0.0.0
    Preparing search index...

    Function serializeResolved

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

      Type Parameters

      • R extends string
      • P extends string

      Parameters

      Returns string

      If the grammar is invalid (there is a lexical or ambient parameter that isn't bound and has no default)