Skip to content

Instantly share code, notes, and snippets.

@dumbs
Created November 6, 2010 12:13
Show Gist options
  • Save dumbs/665364 to your computer and use it in GitHub Desktop.
Save dumbs/665364 to your computer and use it in GitHub Desktop.
(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