about summary refs log tree commit diff
path: root/third_party/lisp/quasiquote_2/macros.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/lisp/quasiquote_2/macros.lisp')
-rw-r--r--third_party/lisp/quasiquote_2/macros.lisp15
1 files changed, 15 insertions, 0 deletions
diff --git a/third_party/lisp/quasiquote_2/macros.lisp b/third_party/lisp/quasiquote_2/macros.lisp
new file mode 100644
index 000000000000..6ebeb47d081e
--- /dev/null
+++ b/third_party/lisp/quasiquote_2/macros.lisp
@@ -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)
+
+