diff options
| author | Felix Perktold <Felix.Perktold@student.uibk.ac.at> | 2025-12-21 23:05:40 +0100 |
|---|---|---|
| committer | Felix Perktold <Felix.Perktold@student.uibk.ac.at> | 2025-12-21 23:05:40 +0100 |
| commit | 85e9fef4aa8855b6660ce8c8cc8d6f5fb0d507b6 (patch) | |
| tree | 4155495cac8198ed00539103009275028320fb4f /lisp.y | |
| parent | c3273084cc4b1fa4657a5e52590825fd114841e4 (diff) | |
more pretty printing
Diffstat (limited to 'lisp.y')
| -rw-r--r-- | lisp.y | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -25,11 +25,13 @@ int yyerror(const char *s); %% sexprs: sexpr { - print_value(eval(global_env, $1)); printf("\n"); + printf(";> "); + println_value(eval(global_env, $1)); } | sexprs sexpr { - print_value(eval(global_env, $2)); printf("\n"); + printf(";> "); + println_value(eval(global_env, $2)); }; sexpr: atom |
