<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Is there any way to tell syntax-parse to parse a pattern within a parametization ?<div><br></div><div>For example in something like this:</div><div><font face="Courier New">(define within-y? (make-parameter #f))</font></div><div><font face="Courier New">(define-syntax-class x</font></div><div><font face="Courier New"> [pattern _ #:when (within-y?)])</font></div><div><font face="Courier New">(define-syntax-class y</font></div><div><font face="Courier New"> [pattern </font><span style="font-family: 'Courier New';">:x])</span></div><div><font face="Courier New">(define (parse stx)</font></div><div><font face="Courier New"> (syntax-parse stx</font></div><div><font face="Courier New"> [:y #t]))</font></div><div><br></div><div>How do I tell it to parse the y syntax-class within a (parameterize ([within-y? #t]) …) form?</div><div><br></div></body></html>