Squashed 'third_party/lisp/quasiquote_2/' content from commit cac90875d1
git-subtree-dir: third_party/lisp/quasiquote_2 git-subtree-split: cac90875d1f66e9385e559bfebafe6b7808b0930
This commit is contained in:
commit
47f60d0996
8 changed files with 895 additions and 0 deletions
15
macros.lisp
Normal file
15
macros.lisp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
|
||||
(in-package #:quasiquote-2.0)
|
||||
|
||||
(defmacro define-dig-like-macro (name)
|
||||
`(defmacro ,name (n-or-form &optional (form nil form-p) &environment env)
|
||||
(if (not form-p)
|
||||
`(,',name 1 ,n-or-form)
|
||||
(let ((*env* env))
|
||||
(transform-dig-form `(,',name ,n-or-form ,form))))))
|
||||
|
||||
|
||||
(define-dig-like-macro dig)
|
||||
(define-dig-like-macro odig)
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue