Re: [racket] Syntax class patterns and nested attributes

2015-02-03 Thread Jack Firth
Is #:auto-nested-attributes documented anywhere? I can't seem to find it in the syntax class documentation On Tue, Feb 3, 2015 at 3:28 PM, Alexander D. Knauth wrote: > If you switch the order in which the syntax-classes are defined and add > #:auto-nested-attribustes, this works: > #lang racket

Re: [racket] Syntax class patterns and nested attributes

2015-02-03 Thread Alexander D. Knauth
If you switch the order in which the syntax-classes are defined and add #:auto-nested-attribustes, this works: #lang racket (require syntax/parse) (define-syntax-class B (pattern (b1 b2 b3))) (define-syntax-class A #:auto-nested-attributes (pattern (a1 a2:B a3))) (define foo (syntax-parser

[racket] Syntax class patterns and nested attributes

2015-02-03 Thread Jack Firth
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 e