Re: [racket-users] Expanding Macros

2020-07-09 Thread Thomas Del Vecchio
Thanks so much! Using (with-syntax ([expanded-b (datum->syntax #'b (local-expand #'b 'expression #f))]) worked out great! On Thursday, July 9, 2020 at 9:44:08 PM UTC-4, William J. Bowman wrote: > > You might want `local-expand`. It can still give you something that is > expanded > further th

Re: [racket-users] Expanding Macros

2020-07-09 Thread William J. Bowman
You might want `local-expand`. It can still give you something that is expanded further than you want, unless you know exactly which identifier you want to stop at, which you can specify in the stop list. https://docs.racket-lang.org/reference/stxtrans.html#%28def._%28%28quote._~23~25kernel%29._

[racket-users] Expanding Macros

2020-07-09 Thread Thomas Del Vecchio
I'm trying to work through expanding a macro to pass the result into another macro. I've attached and pasted the spec below that is my toy example. I've tried using expand, but it gives me "(C (#%app (#%top . B) (quote 1) (quote 2)))" instead of "(C (in 1 2))". I've also tried many other things