commit d63585ea0d1732265754afc953e8874514383221
parent 972537a4641363c9557e21f77e9b8fc58c4eb0d9
Author: JackFirth <jackhfirth@gmail.com>
Date: Tue, 9 Dec 2014 22:38:56 -0800
Utils
Add some comments
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/stx-utils.rkt b/stx-utils.rkt
@@ -39,6 +39,8 @@
[() #'()]
[a #'a])))
+;; Shorthand for adding new identifiers based on other formatted ones to
+;; syntax patterns
(define-simple-macro (with-derived-ids ([pat-id:id format base-id-stx] ...) stx-expr)
(with-syntax ([pat-id
(format-id base-id-stx