Does this get you what you want?
#lang racket
(require (for-syntax syntax/parse racket/syntax))
(define-syntax (define-stuff stx)
(syntax-parse stx
[(_ attr-name macro-name)
#:with c.attr-name (format-id #'c ~a.~a #'c #'attr-name)
#'(begin
(begin-for-syntax
Is there a way to access an attribute, other than with the . syntax?
For example, the following example does not work:
#lang racket
(require (for-syntax syntax/parse))
(define-syntax (define-stuff stx)
(syntax-parse stx
[(_ attr-name macro-name)
#'(begin
(begin-for-syntax
2 matches
Mail list logo