fix resolving of vars

This commit is contained in:
Sebastian Hugentobler 2025-05-28 09:21:59 +02:00
parent 463e4abd30
commit 94b57f8304
Signed by: shu
SSH key fingerprint: SHA256:ppcx6MlixdNZd5EUM1nkHOKoyQYoJwzuQKXM6J/t66M
6 changed files with 66 additions and 53 deletions

View file

@ -94,9 +94,6 @@ fn run_rox(input: &str, interpreter: &mut Interpreter) -> Result<(), RoxError> {
debug!("AST:\n{}", crate::ast_printer::print(&ast));
resolver.resolve(&ast)?;
println!("globals: {:?}", interpreter.globals);
println!("environment: {:?}", interpreter.environment);
println!("locals: {:?}", interpreter.locals);
interpreter.run(ast)?;
Ok(())