Skip to content

Commit

Permalink
added let
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentToups committed Apr 16, 2012
1 parent 6efaa2c commit 208275d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion parenlab.el
Expand Up @@ -300,7 +300,6 @@ regular, non-functional if statement."
(pl:transcode-sequence body)
(basic-save-buffer))
(kill-buffer output-buffer)))

(defvar *pl-macros* (make-hash-table))

(defun pl:pl-macrop (symbol)
Expand All @@ -321,6 +320,9 @@ regular, non-functional if statement."
(pl:def-pl-macro with (symbol value &body body)
`(funcall (lambda (,symbol) ,@body) ,value))

(pl:def-pl-macro let (bindings &body body)
`(funcall (lambda ,(mapcar #'car bindings) ,@body) ,@(mapcar #'cadr bindings)))

(defun-match pl:transcode ((list-rest (p #'pl:non-keyword-symbolp the-function) arguments))
"Handle the-function calls."
(pl:transcode the-function)
Expand Down

0 comments on commit 208275d

Please sign in to comment.