Thank you @notjack! I did look at splicing syntax classes, but I didn't understand that I needed #:attributes
, ~seq
, #:with
, etc. I'll take some more time to read the documentation about syntax classes to get a better hang of it.
Also, thanks for the suggestion to use define-syntax-parse-rule
. I think a lot of my macros can be shortened using this syntax.