tab complete! yay!

Signed-off-by: Ava Hahn <ava@sunnypup.io>
This commit is contained in:
Ava Apples Affine 2023-05-03 15:13:18 -07:00
parent c2cc8571bc
commit 1ef0a534db
Signed by: affine
GPG key ID: 3A4645B8CF806069
2 changed files with 216 additions and 19 deletions

View file

@ -96,6 +96,10 @@ impl SymTable {
self.0.iter()
}
pub fn keys(&self) -> std::collections::hash_map::Keys<String, Symbol> {
self.0.keys()
}
pub fn update(&mut self, other: &mut SymTable) {
/* updates self with all syms in other that match the following cases:
* * sym is not in self