cl-interpret: process use items and imports in the interpreter

This commit is contained in:
2025-02-18 21:44:52 -06:00
parent af9c293907
commit edabbe1655
6 changed files with 78 additions and 10 deletions

View File

@@ -97,8 +97,8 @@ impl Environment {
self.frames.push((frame, name));
}
pub fn pop_frame(&mut self) -> Option<StackFrame> {
self.frames.pop().map(|f| f.0)
pub fn pop_frame(&mut self) -> Option<(StackFrame, &'static str)> {
self.frames.pop()
}
pub fn eval(&mut self, node: &impl Interpret) -> IResult<ConValue> {