aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@hornquist.se>2019-04-24 19:39:56 +0200
committerHugo Hörnquist <hugo@hornquist.se>2019-04-24 19:39:56 +0200
commit7ff11cc4995570486434eb4da0223286fffe5011 (patch)
treea58de9d12108edf9faa4e6088742ea7b619ea087
parentMade keys in vulgar output bold. (diff)
downloadcalp-7ff11cc4995570486434eb4da0223286fffe5011.tar.gz
calp-7ff11cc4995570486434eb4da0223286fffe5011.tar.xz
Add overriding define-syntax.
-rw-r--r--module/util.scm13
1 files changed, 12 insertions, 1 deletions
diff --git a/module/util.scm b/module/util.scm
index 5e54fbc4..14b6cfde 100644
--- a/module/util.scm
+++ b/module/util.scm
@@ -8,9 +8,20 @@
mod! sort* sort*!
find-min
catch-multiple)
- #:replace (let* set!)
+ #:replace (let* set! define-syntax)
)
+((@ (guile) define-syntax) define-syntax
+ (syntax-rules ()
+ ((_ (name args ...) body ...)
+ ((@ (guile) define-syntax) name
+ (lambda (args ...)
+ body ...)))
+ ((_ otherwise ...)
+ ((@ (guile) define-syntax) otherwise ...))))
+
+
+
(define-public upstring->symbol (compose string->symbol string-upcase))
(define-public symbol-upcase (compose string->symbol string-upcase symbol->string))