Add detailed error reporting, remove panics
diff --git a/src/lisp/Jmk b/src/lisp/Jmk
index 5b00b6d..ed2e788 100644
--- a/src/lisp/Jmk
+++ b/src/lisp/Jmk
@@ -13,10 +13,16 @@
archetype(c)
archetype(asm)
+NO_READLINE ?= 0
+
CFLAGS += -Ivendor/luajit/dynasm -Werror -lreadline # -fsanitize=address
LDFLAGS += -lreadline
ASMFLAGS += -felf -Fdwarf
+ifeq ($(NO_READLINE),1)
+CFLAGS += -DNO_READLINE
+endif
+
OBJECTS = main.o \
lisp.o \
compiler.o \
@@ -24,7 +30,8 @@
plat/linux.o \
istream.o \
gc.o \
- call_list.o
+ call_list.o \
+ error.o
LUA = vendor/luajit/src/host/minilua