public Void visitLetStmt(Stmt.Let stmt) { Declare(stmt.name); if (stmt.initializer != null) { Resolve(stmt.initializer); } Define(stmt.name); return(null); }
public Void visitLetStmt(Stmt.Let stmt) { object value = null; if (stmt.initializer != null) { value = Evaluate(stmt.initializer); } environment.Define(stmt.name.lexeme, value); return(null); }