summaryrefslogtreecommitdiff
path: root/lisp.y
diff options
context:
space:
mode:
authorFelix Perktold <Felix.Perktold@student.uibk.ac.at>2026-02-01 13:37:50 +0100
committerFelix Perktold <Felix.Perktold@student.uibk.ac.at>2026-02-01 13:37:50 +0100
commit36425a408d841093a12e2b74328bcb7aed6acafc (patch)
tree7661fbc51886e3dd030d3e71be21057be5ab9d09 /lisp.y
parentf8fe85b3203ea5e675af6fa4a66c3c8b7c7575e3 (diff)
improved lambda printingmaster
Diffstat (limited to 'lisp.y')
-rw-r--r--lisp.y3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp.y b/lisp.y
index 2ed97bf..f566990 100644
--- a/lisp.y
+++ b/lisp.y
@@ -12,8 +12,7 @@ void eval_and_print_REPL(value *v) {
if(!v) { return; }
if (v->type == VT_PAIR && car(v)->type == VT_SYMBOL && !strcmp(car(v)->as.sym, "define")) {
eval(global_env, v);
- printf(";> defined ");
- println_value(car(cdr(v)));
+ printf(";> defined %s\n", car(cdr(v))->as.sym);
return; // Skip printing for define so infinite lists do not eval
}
value *evaled = eval(global_env, v);