Created
November 6, 2010 12:13
-
-
Save dumbs/665364 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) | |
(let ((res (map-meval list env))) | |
(nth (- (list-length res) 1) res))) | |
(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