|
@@ -35,7 +35,7 @@ public class DefineOperator implements LispOperator {
|
|
|
case "define":
|
|
|
return this.define(eval, lisp);
|
|
|
case "set!":
|
|
|
- return this.set(eval, lisp);
|
|
|
+ return this.set(lisp);
|
|
|
case "lambda":
|
|
|
String name = this.generateRandomName();
|
|
|
ConsList<Object> lambda = ConsListFactory.asList("lambda", lisp.car(), lisp.cdr().car());
|
|
@@ -87,7 +87,7 @@ public class DefineOperator implements LispOperator {
|
|
|
* @return
|
|
|
* @throws LispError
|
|
|
*/
|
|
|
- private LispElement set(LispEval eval, ConsList<Object> lisp) throws LispError {
|
|
|
+ private LispElement set(ConsList<Object> lisp) throws LispError {
|
|
|
if(lisp.size() != 2) {
|
|
|
throw new LispError(LispError.ERR_NUM_ARG);
|
|
|
}
|