Explorar o código

Ajout initialise tableaux des operateurs

Arthur Brandao %!s(int64=6) %!d(string=hai) anos
pai
achega
c2f1896428
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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();
     }
 }