syntax/parse: fixed splicing syntax class bugs
svn: r16690
This commit is contained in:
parent
0080e2b673
commit
a64e9278d1
|
@ -379,7 +379,7 @@
|
||||||
(with-enclosing-fail previous-fail
|
(with-enclosing-fail previous-fail
|
||||||
k))))))]
|
k))))))]
|
||||||
[#s(hpat:var _attrs name parser (arg ...) (nested-a ...))
|
[#s(hpat:var _attrs name parser (arg ...) (nested-a ...))
|
||||||
#`(let ([result (parser x)])
|
#`(let ([result (parser x arg ...)])
|
||||||
(if (ok? result)
|
(if (ok? result)
|
||||||
(let* ([rest (car result)]
|
(let* ([rest (car result)]
|
||||||
[local-fc (cadr result)]
|
[local-fc (cadr result)]
|
||||||
|
|
|
@ -81,7 +81,7 @@
|
||||||
(identifier? #'name)
|
(identifier? #'name)
|
||||||
(defstxclass stx #'name #'() #'rhss #t)]
|
(defstxclass stx #'name #'() #'rhss #t)]
|
||||||
[(define-splicing-syntax-class (name arg ...) . rhss)
|
[(define-splicing-syntax-class (name arg ...) . rhss)
|
||||||
(andmap identifier? #'(name arg ...))
|
(andmap identifier? (syntax->list #'(name arg ...)))
|
||||||
(defstxclass stx #'name #'(arg ...) #'rhss #t)]))
|
(defstxclass stx #'name #'(arg ...) #'rhss #t)]))
|
||||||
|
|
||||||
(define-syntax (define-conventions stx)
|
(define-syntax (define-conventions stx)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user