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
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
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
3 matches
Mail list logo