diff options
| author | Felix Perktold <Felix.Perktold@student.uibk.ac.at> | 2025-12-21 02:01:00 +0100 |
|---|---|---|
| committer | Felix Perktold <Felix.Perktold@student.uibk.ac.at> | 2025-12-21 02:01:00 +0100 |
| commit | e3b757ab811e82f8e1022b0bba0be5f3c328f8b7 (patch) | |
| tree | 622899eddc04da4a862f340bd2910c9d72acdd3f /lisp.y | |
| parent | bb631d0e744fa91c663a7a35195125e36c1139b0 (diff) | |
add environments for symbol definition/lookup
Diffstat (limited to 'lisp.y')
| -rw-r--r-- | lisp.y | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -28,8 +28,8 @@ static int is_integer(double x) { %start sexprs %% -sexprs: sexpr { print_val($1); printf("\n"); } - | sexprs sexpr { print_val($2); printf("\n"); }; +sexprs: sexpr { print_value($1); printf("\n"); } + | sexprs sexpr { print_value($2); printf("\n"); }; sexpr: atom | list |
