-
-
Save SuzanneSoy/665371 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun map-meval (list env) | |
(mapcar (lambda (x) (meval x env)) list)) | |
(defun meval-progn (list env) | |
(if (endp list) | |
nil | |
(if (endp (cdr list)) | |
(meval (car list) env) | |
(progn | |
(meval (car list) env) | |
(meval-progn (cdr list) env))))) | |
(defun meval (expr &optional env) | |
"Interprète le langage intermédiaire passé en paramètre." | |
(cond | |
... | |
((match :progn (first expr)) | |
(meval-progn (cdr expr))) | |
...) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment