pub struct CompileManager {
    pub context_stack: Vec<CompileContext>,
    pub local_index: HashMap<(ContextId, String), LocalName>,
    pub memory_manager: MemoryManager,
    /* private fields */
}
Expand description

The manager in charge of converting any AST into valid bytecode.

Fields

context_stack: Vec<CompileContext>

A stack of contexts (corresponding to the stack of frame definitions)

local_index: HashMap<(ContextId, String), LocalName>

The index of variables in a given context and their corresponding LocalName’s

memory_manager: MemoryManager

Implementations

Create a new unused ContextId

Create a DebugSpanDescriptor, and attach a Span in the current context’s debug_symbol_descriptors

Get the current context at the top of the stack

source

pub fn compile_post_pre_op(&mut self, ast: &PostPreOp) -> CompileResult

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.