adjust syntax-set to use syntax-local-identifier-as-binding

This commit is contained in:
Matthew Flatt 2015-03-08 16:04:25 -06:00
parent 746e8ff1fb
commit f540a6c108

View File

@ -69,12 +69,16 @@
[def-ids (apply append (map (lambda (defn)
(syntax-case defn ()
[(_ (id ...) expr)
(syntax->list (syntax (id ...)))]))
(map
syntax-local-identifier-as-binding
(syntax->list (syntax (id ...))))]))
defns))]
[val-ids (apply append (map (lambda (defn)
(syntax-case defn (define-values)
[(define-values (id ...) expr)
(syntax->list (syntax (id ...)))]
(map
syntax-local-identifier-as-binding
(syntax->list (syntax (id ...))))]
[_else null]))
defns))])
(let ([dup (check-duplicate-identifier def-ids)])