[racket] Syntax class patterns and nested attributes

From: Jack Firth (jackhfirth at gmail.com)
Date: Tue Feb 3 17:30:07 EST 2015

Suppose I have these syntax classes:

(define-syntax-class A
  (pattern (a1 a2:B a3)))

(define-syntax-class B
  (pattern (b1 b2 b3)))

I'd like to be able to access nested attributes, like so:

(define foo
  (syntax-parser
    [blah:A #'blah.a2.b1]))

Currently, this doesn't work (and it doesn't even throw an error either).
How could I do this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20150203/ed223e74/attachment.html>

Posted on the users mailing list.