|
@@ -331,11 +331,8 @@ public class LispEval {
|
|
String operator = LispElement.generate(lisp.car()).toStr();
|
|
String operator = LispElement.generate(lisp.car()).toStr();
|
|
LispOperator op = this.operators.get(operator);
|
|
LispOperator op = this.operators.get(operator);
|
|
if(op == null) {
|
|
if(op == null) {
|
|
- if(this.define.isLambda(operator)) {
|
|
|
|
- return this.operators.get("lambda").apply(this, operator, lisp.cdr());
|
|
|
|
- } else {
|
|
|
|
- throw new LispError(operator + LispError.ERR_UNKNOW, new UnsupportedOperationException("Unknow operator"));
|
|
|
|
- }
|
|
|
|
|
|
+ //On suppose que l'operateur est une expression lambda
|
|
|
|
+ return this.operators.get("lambda").apply(this, operator, lisp.cdr());
|
|
}
|
|
}
|
|
try {
|
|
try {
|
|
return op.apply(this, operator, lisp.cdr());
|
|
return op.apply(this, operator, lisp.cdr());
|