Exemple #1
0
        public object visitAssignExpr(Expr.Assign expr)
        {
            object value = evaluate(expr.value);

            environment.assign(expr.name, value);
            return(value);
        }
Exemple #2
0
 public string visitAssignExpr(Expr.Assign expr)
 => parenthesize(expr.name.lexeme, expr.value);