diff options
| author | Felix Perktold <Felix.Perktold@student.uibk.ac.at> | 2025-12-21 23:28:15 +0100 |
|---|---|---|
| committer | Felix Perktold <Felix.Perktold@student.uibk.ac.at> | 2025-12-21 23:28:15 +0100 |
| commit | 33b3d80c2dcd12dbf692984e0d736bfa9906a8b5 (patch) | |
| tree | 6808f532ce6af3674a27b2e1250c348fd8742f73 /lisp.y | |
| parent | 85e9fef4aa8855b6660ce8c8cc8d6f5fb0d507b6 (diff) | |
fix bug in apply, improve printing
Diffstat (limited to 'lisp.y')
| -rw-r--r-- | lisp.y | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -25,13 +25,15 @@ int yyerror(const char *s); %% sexprs: sexpr { + value *v = eval(global_env, $1); printf(";> "); - println_value(eval(global_env, $1)); + println_value(v); } | sexprs sexpr { + value *v = eval(global_env, $2); printf(";> "); - println_value(eval(global_env, $2)); + println_value(v); }; sexpr: atom |
