Skip to main content

bind

Function bind 

Source
pub fn bind(
    forms: Vec<UnboundForm>,
    table: &mut SymbolTable,
) -> Result<(Vec<BoundForm>, Vec<SymbolMutation>), BindError>
Expand description

Bind a sequence of unbound forms against the given symbol table.

Mutations to table (symbol allocations, renames, alias attachments, retirement flag flips) are applied as each form binds. Pipeline callers that need transactional semantics should snapshot the table before calling bind and roll back on error.

§Errors

Returns the first BindError encountered.