diff options
| author | Felix Perktold <Felix.Perktold@student.uibk.ac.at> | 2026-01-22 13:42:34 +0100 |
|---|---|---|
| committer | Felix Perktold <Felix.Perktold@student.uibk.ac.at> | 2026-01-22 13:42:34 +0100 |
| commit | a31d9092201d6e9fefde7403b19ed93512aa6b47 (patch) | |
| tree | 804281f58c43a24b40d7626380241a23367d5ff1 /lisp.y | |
| parent | eaa0ad227969429b333d6ef26e4f4c9f266fbee5 (diff) | |
lambdas now eval whole body and return the last element of the body instead of just evaluating and returnin the first element
Diffstat (limited to 'lisp.y')
| -rw-r--r-- | lisp.y | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -16,8 +16,9 @@ void eval_and_print_REPL(value *v) { println_value(car(cdr(v))); return; // Skip printing for define so infinite lists do not eval } + value *evaled = eval(global_env, v); printf(";> "); - println_value(eval(global_env, v)); + println_value(evaled); } %} |
