add orig-stx parameter

svn: r9056
This commit is contained in:
Sam Tobin-Hochstadt 2008-03-22 01:40:13 +00:00
parent 3552f7f73b
commit c914aab4ea
2 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,7 @@
;; this parses the clauses using parse/cert, then compiles them
;; go : syntax syntax syntax certifier -> syntax
(define (go parse/cert stx exprs clauses cert)
(parameterize ([orig-stx stx])
(syntax-case clauses ()
[([pats . rhs] ...)
(let ([len (length (syntax->list exprs))])
@ -42,4 +43,4 @@
(let ([xs exprs]
...)
(let ([fail (lambda () #,(syntax/loc stx (match:error orig-expr)))])
body))))))]))
body))))))])))

View File

@ -19,6 +19,7 @@
(current-continuation-marks)
val)))
(define orig-stx (make-parameter #f))
(define-struct Pat () #:transparent)
;; v is an identifier