You need to escape the ... with another ..., like this:

#lang racket/base

(require
  (for-syntax
   racket/base))

(define-syntax (test stx)
  (syntax-case stx ()
    ((_ n e ...)

     #'(define-syntax (n stx)
         (syntax-case stx ()
           ((_ e0 (... ...))
            #'(n (e ...) e0 (... ...))
            ))))))


(test asdf 1 2 3)

On Wed, Mar 15, 2017 at 12:30 PM, Dan Liebgold
<dan_liebg...@naughtydog.com> wrote:
>
> Oops, try this link instead (that one had simple mistakes):
>
> http://pasterack.org/pastes/68032
>
> On Wednesday, March 15, 2017 at 9:22:24 AM UTC-7, Dan Liebgold wrote:
>> I feel like I'm forgetting something basic, but how can I have a syntax 
>> transformer expand to a define-syntax, both using ellipses?
>>
>> http://pasterack.org/pastes/27441
>>
>> pasterack doesn't seem to return the error, which is
>>
>>   syntax: no pattern variables before ellipsis in template in: ...
>>
>> at the second "...".
>>
>> Thanks,
>> Dan
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to