|
@@ -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");
|