Re: [racket-users] Re: how to transform syntax post-expansion?

2016-02-15 Thread Nota Poin
On Monday, February 15, 2016 at 5:43:38 PM UTC, Ryan Culpepper wrote:
> The macro should use `local-expand` rather than `expand`. See the docs 
> for `local-expand`, since it takes more arguments. I would guess you 
> probably want to pass along `(syntax-local-context)` and use an empty 
> stop list.

Oh, awesome! I'll look into that, thanks!

-- 
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.


Re: [racket-users] Re: how to transform syntax post-expansion?

2016-02-15 Thread Ryan Culpepper

On 02/14/2016 11:07 PM, Nota Poin wrote:

I suppose I could do something like this:

(define-syntax (transform-post-expansion stx)
   (syntax-case (expand stx) ()
 (...)))



The macro should use `local-expand` rather than `expand`. See the docs 
for `local-expand`, since it takes more arguments. I would guess you 
probably want to pass along `(syntax-local-context)` and use an empty 
stop list.


Ryan

--
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.


[racket-users] Re: how to transform syntax post-expansion?

2016-02-14 Thread Nota Poin
On Monday, February 15, 2016 at 4:07:53 AM UTC, Nota Poin wrote:
> (define-syntax (transform-post-expansion stx)
>   (syntax-case (expand stx) ()
> (...)))

Right, expand the syntax to expand the syntax... that'll work out great...

-- 
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.


[racket-users] Re: how to transform syntax post-expansion?

2016-02-14 Thread Nota Poin
I suppose I could do something like this:

(define-syntax (transform-post-expansion stx)
  (syntax-case (expand stx) ()
(...)))

-- 
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.