Skip to content

Commit

Permalink
fix: add missing final line
Browse files Browse the repository at this point in the history
On the final line, eval must be called with two arguments: the
expression and the association list.

The final line is missing a closing parenthesis in the original document
to match the initial opening parenthesis.

This commit also adds a missing closing parenthesis on line 10.
  • Loading branch information
jkuebart committed Dec 4, 2023
1 parent ce48921 commit 993951f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions eval.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
(lambda (e a)
(cond ((null a) nil)
((eq e caar a)) (car a)
(t (assoc e (cdr a)))))
(t (assoc e (cdr a))))))
e
a)))))
((atom (car e))
Expand Down Expand Up @@ -73,4 +73,5 @@
a))
a)))
((eq (caar e) (quote label))
(eval (cons (caddar e) (cdr e))) a)))))
(eval (cons (caddar e) (cdr e))
(cons (cons (cadar e) (car e)) a))))))

0 comments on commit 993951f

Please sign in to comment.