@@ -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));
}
@@ -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());