浏览代码

Amélioration code

Arthur Brandao 6 年之前
父节点
当前提交
87ace5728f
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/migl/lisp/LispEval.java

+ 1 - 2
src/migl/lisp/LispEval.java

@@ -16,8 +16,7 @@ public class LispEval {
 	 */
 	
 	private static Map<String, LispOperator> operators = new HashMap<>();
-	
-	public static void setupOperators() {
+	static {
 		operators.put("not", (lisp) -> {
 			if(lisp.size() != 1) {
 				throw new LispError("Incorrect number of argument");