wip
This commit is contained in:
parent
6e02a1a644
commit
463e4abd30
13 changed files with 172 additions and 26 deletions
|
@ -94,6 +94,9 @@ 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(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue