stx-utils: add curly-parens?

This commit is contained in:
Stephen Chang 2014-08-15 15:32:18 -04:00
parent 723c5bbaec
commit 820d56cf2a

View File

@ -6,4 +6,7 @@
(define (stx-andmap f . stx-lsts)
(apply andmap f (map syntax->list stx-lsts)))
(define (stx-flatten stxs)
(apply append (stx-map syntax->list stxs)))
(apply append (stx-map syntax->list stxs)))
(define (curly-parens? stx)
(define paren-prop (syntax-property stx 'paren-shape))
(and paren-prop (char=? #\{ paren-prop)))