cl-ast: Remove tail from let (it caused more problems that it could've solved)

This commit is contained in:
2024-07-31 03:19:20 -05:00
parent de63a8c123
commit 8675f91aca
8 changed files with 7 additions and 25 deletions

View File

@@ -116,10 +116,9 @@ impl Interpret for Stmt {
}
impl Interpret for Let {
fn interpret(&self, env: &mut Environment) -> IResult<ConValue> {
let Let { mutable: _, name, ty: _, init, tail } = self;
let Let { mutable: _, name, ty: _, init } = self;
let init = init.as_ref().map(|i| i.interpret(env)).transpose()?;
env.insert(*name, init);
tail.as_ref().map(|e| e.interpret(env)).transpose()?;
Ok(ConValue::Empty)
}
}