Guile または SRFI-46 を使用すると、 Specifying a Custom Ellipsis Identifierに示すように可能です。しかし、SISCまたは「純粋なスキーム」R5RSで可能ですか?
省略記号を使用しなくても可能であることはわかっていますが、次の例のように内側の省略記号を使用する必要がある場合はどうすればよいでしょうか?
(define-syntax define-quotation-macros
(syntax-rules ()
((_ (macro-name head-symbol) ...)
(begin (define-syntax macro-name
(syntax-rules ::: ()
((_ x :::)
(quote (head-symbol x :::)))))
...))))
(define-quotation-macros (quote-a a) (quote-b b) (quote-c c))
(quote-a 1 2 3) ⇒ (a 1 2 3)