sl_compiler

Trait SloshVmTrait

pub trait SloshVmTrait {
    // Required methods
    fn set_line_val(&mut self, state: &mut CompileState, val: Value);
    fn get_reserve_global(&mut self, symbol: Interned) -> u32;
    fn set_named_global(&mut self, string: &str, value: Value) -> u32;
    fn set_global_builtin(
        &mut self,
        string: &str,
        func: fn(_: &mut GVm<CompileEnvironment>, _: &[Value]) -> Result<Value, VMError>,
    ) -> u32;
    fn dump_globals(&self);
    fn globals(&self) -> &HashMap<Interned, usize>;
    fn own_line(&self) -> Option<u32>;
    fn set_line_num(&mut self, line_num: u32);
    fn line_num(&self) -> u32;
    fn specials(&self) -> &Specials;
    fn global_intern_slot(&self, symbol: Interned) -> Option<u32>;
}

Required Methods§

fn set_line_val(&mut self, state: &mut CompileState, val: Value)

fn get_reserve_global(&mut self, symbol: Interned) -> u32

fn set_named_global(&mut self, string: &str, value: Value) -> u32

fn set_global_builtin( &mut self, string: &str, func: fn(_: &mut GVm<CompileEnvironment>, _: &[Value]) -> Result<Value, VMError>, ) -> u32

fn dump_globals(&self)

fn globals(&self) -> &HashMap<Interned, usize>

fn own_line(&self) -> Option<u32>

fn set_line_num(&mut self, line_num: u32)

fn line_num(&self) -> u32

fn specials(&self) -> &Specials

fn global_intern_slot(&self, symbol: Interned) -> Option<u32>

Implementations on Foreign Types§

§

impl SloshVmTrait for GVm<CompileEnvironment>

§

fn set_line_val(&mut self, state: &mut CompileState, val: Value)

§

fn get_reserve_global(&mut self, symbol: Interned) -> u32

§

fn set_named_global(&mut self, string: &str, value: Value) -> u32

§

fn set_global_builtin( &mut self, string: &str, func: fn(_: &mut GVm<CompileEnvironment>, _: &[Value]) -> Result<Value, VMError>, ) -> u32

§

fn dump_globals(&self)

§

fn globals(&self) -> &HashMap<Interned, usize>

§

fn own_line(&self) -> Option<u32>

§

fn set_line_num(&mut self, line_num: u32)

§

fn line_num(&self) -> u32

§

fn specials(&self) -> &Specials

§

fn global_intern_slot(&self, symbol: Interned) -> Option<u32>

Implementors§