stxclass: fixed parsing of stxclass description

svn: r13262
This commit is contained in:
Ryan Culpepper 2009-01-23 02:06:05 +00:00
parent 2c65d062fc
commit 9b79cc7e8c
2 changed files with 4 additions and 4 deletions

View File

@ -254,8 +254,8 @@
(exact-nonnegative-integer? (syntax-e #'depth)))
(raise-syntax-error #f "bad attribute declaration" stx attr-stx))
(make-attr (syntax-e #'attr) (syntax-e #'depth) null))]))
description
transparent?
description
#'parser-expr)]))
(define (parse-rhs*-patterns rest)
@ -271,10 +271,10 @@
(raise-syntax-error #f "syntax class has no variants" ctx))
(let ([sattrs (intersect-attrss (map rhs:pattern-attrs patterns) ctx)])
(make rhs:union stx sattrs
description
transparent?
description
patterns)))
(syntax-case rest (pattern basic-syntax-class)
[((basic-syntax-class . _))
(parse-rhs*-basic rest)]

View File

@ -158,7 +158,7 @@
(define-syntax (debug-rhs stx)
(syntax-case stx ()
[(debug-rhs rhs)
(let ([rhs (parse-rhs #'rhs #f)])
(let ([rhs (parse-rhs #'rhs #f stx)])
#`(quote #,rhs))]))
(define-syntax (debug-pattern stx)