Lookup

Trait Lookup 

Source
pub trait Lookup {
    // Required method
    fn lookup(&mut self, name: &QualifiedName) -> EvalResult<Symbol>;
}
Expand description

Trait to handle symbol table.

Required Methods§

Source

fn lookup(&mut self, name: &QualifiedName) -> EvalResult<Symbol>

Lookup for local or global symbol by qualified name.

  • looks on stack
  • looks in symbol table
  • follows aliases (use statements)
  • detect any ambiguity
  • loads external files

Implementors§