[racket] is there any way to tell syntax-parse to parse a pattern within a parametization ?

From: Alexander D. Knauth (alexander at knauth.org)
Date: Fri Aug 1 12:23:21 EDT 2014

Is there any way to tell syntax-parse to parse a pattern within a parametization ?

For example in something like this:
(define within-y? (make-parameter #f))
(define-syntax-class x
  [pattern _ #:when (within-y?)])
(define-syntax-class y
  [pattern :x])
(define (parse stx)
  (syntax-parse stx
    [:y #t]))

How do I tell it to parse the y syntax-class within a (parameterize ([within-y? #t]) …) form?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140801/6e442490/attachment.html>

Posted on the users mailing list.