Fixing function call

Previously only returned last element of ast, without evaluating other
elements
recursive env_get is now iterative

Signed-off-by: teo3300 <matteo.rogora@live.it>
This commit is contained in:
teo3300
2024-01-25 22:36:50 +09:00
parent 2147bc7494
commit d16f93c153
6 changed files with 52 additions and 294 deletions

View File

@ -3,4 +3,6 @@
(assert-eq nil (ok? (1)))
(assert-eq true (ok? 1))
(ok? (assert true))
(not (ok? (assert nil)))
(not (ok? (assert nil)))
(assert (not (ok? (assert-fail '1))))
(assert (ok? (assert-fail '(1))))