diff options
author | Hugo Hörnquist <hugo@hornquist.se> | 2019-04-24 19:39:56 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@hornquist.se> | 2019-04-24 19:39:56 +0200 |
commit | 7ff11cc4995570486434eb4da0223286fffe5011 (patch) | |
tree | a58de9d12108edf9faa4e6088742ea7b619ea087 | |
parent | Made keys in vulgar output bold. (diff) | |
download | calp-7ff11cc4995570486434eb4da0223286fffe5011.tar.gz calp-7ff11cc4995570486434eb4da0223286fffe5011.tar.xz |
Add overriding define-syntax.
Diffstat (limited to '')
-rw-r--r-- | module/util.scm | 13 |
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)) |