lookUpVariable method
Implementation
Object? lookUpVariable(Token name, Expr.Expr expr) {
if (locals.containsKey(expr)) {
int distance = locals[expr]!;
return environment.getAt(distance, name.lexeme);
} else {
return globals.get(name);
}
}