소스 검색

Ajout initialise tableaux des operateurs

Arthur Brandao 6 년 전
부모
커밋
c2f1896428
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      src/migl/lisp/LispFactory.java

+ 6 - 0
src/migl/lisp/LispFactory.java

@@ -7,6 +7,8 @@ package migl.lisp;
  *
  */
 public class LispFactory {
+	
+	private static boolean first = true;
 
     private LispFactory() {
         // do nothing
@@ -18,6 +20,10 @@ public class LispFactory {
      * @return a new lisp interpreter.
      */
     public static Lisp makeIntepreter() {
+    	if(first) {
+    		LispEval.setupOperators();
+    		first = false;
+    	}
         return new LispImpl();
     }
 }