Rename "Local" to "Name" when referring to variables during compilation
* Variables were previously named "Local"s because they described a local variable - however, this is kind of a misnomer because it handles globals as well. This has been changed pretty much everywhere when appropriate (hopefully). * Renamed obj/names.rs to obj/reserved.rs, freeing up the "names" module for the new Names handle * Renamed obj/locals.rs to obj/names.rs, see above Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -4,7 +4,7 @@ pub mod frame;
|
||||
pub mod inst;
|
||||
|
||||
use crate::{
|
||||
obj::{names::*, prelude::*},
|
||||
obj::{reserved::*, prelude::*},
|
||||
vm::{consts::*, error::*, frame::*, inst::*},
|
||||
};
|
||||
use shredder::{GcSafe, Scanner, Scan};
|
||||
@@ -129,7 +129,7 @@ impl<'c> Vm<'c> {
|
||||
let obj_ref = self.const_pool.get(hdl).clone();
|
||||
self.push(obj_ref);
|
||||
}
|
||||
Inst::PushLocal(_sym) => todo!(),
|
||||
Inst::LoadName(_sym) => todo!(),
|
||||
Inst::Pop(Some(_sym)) => todo!(),
|
||||
Inst::Pop(None) => todo!(),
|
||||
Inst::GetAttr(sym) => {
|
||||
|
||||
Reference in New Issue
Block a user