added env function and test
This commit is contained in:
parent
79184b18ef
commit
f22d807b57
5 changed files with 55 additions and 1 deletions
|
|
@ -87,6 +87,10 @@ impl SymTable {
|
|||
self.0.remove(arg)
|
||||
}
|
||||
|
||||
pub fn iter(&self) -> std::collections::hash_map::Iter<'_, String, Symbol> {
|
||||
self.0.iter()
|
||||
}
|
||||
|
||||
pub fn call_symbol(
|
||||
&mut self,
|
||||
name: &String,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue