This commit is contained in:
Scott Richmond 2024-12-11 19:13:06 -05:00
parent 229470fee3
commit b2e08fe207

View File

@ -312,9 +312,8 @@ impl<'src> Process<'src> {
pub fn eval(&mut self) -> LResult<'src> {
use Ast::*;
let root_node = self.ast;
let root_span = self.span;
let result = match self.ast {
let (root_node, root_span) = (self.ast, self.span);
let result = match root_node {
Nil => Ok(Value::Nil),
Boolean(b) => Ok(Value::Boolean(*b)),
Number(n) => Ok(Value::Number(*n)),