Эх сурвалжийг харах

Changement nom méthode eval

Arthur Brandao 6 жил өмнө
parent
commit
7770a4356b

+ 1 - 1
src/migl/lisp/Lisp.java

@@ -39,7 +39,7 @@ public interface Lisp {
      * @throws LispError
      *             if the expression is malformed or cannot be evaluated.
      */
-    default Object eval(String expr) throws LispError {
+    default Object evaluateExpr(String expr) throws LispError {
         return evaluate(parse(expr));
     }
 }

+ 1 - 1
src/migl/lisp/REPL.java

@@ -33,7 +33,7 @@ public class REPL {
                     break;
                 }
                 try {
-                    System.out.println(lisp.eval(line));
+                    System.out.println(lisp.evaluateExpr(line));
                 } catch (LispError le) {
                     System.out.println("Error: " + le.getMessage());
                 }