Re: [racket-users] Extracting the body of a fully-expanded module (with submodules)

2016-12-15 Thread Dupéron Georges
Thanks Matthew! Your solution seems to work fine, the trampoline idea is a very neat trick. I like how it's safe to use require and begin because the continue macro returns fully-expanded syntax which won't be affected by the code injected around (for some reason I thought it was necessary to o

Re: [racket-users] Extracting the body of a fully-expanded module (with submodules)

2016-12-14 Thread Matthew Flatt
At Wed, 14 Dec 2016 18:12:52 -0800 (PST), Dupéron Georges wrote: > Hello! > > This is a follow-up to the excellent answer by Alex Knauth on StackOverflow > here: http://stackoverflow.com/a/38032107/324969 and this mailing-list > thread: > https://groups.google.com/forum/#!topic/racket-users/sS-

[racket-users] Extracting the body of a fully-expanded module (with submodules)

2016-12-14 Thread Dupéron Georges
Hello! This is a follow-up to the excellent answer by Alex Knauth on StackOverflow here: http://stackoverflow.com/a/38032107/324969 and this mailing-list thread: https://groups.google.com/forum/#!topic/racket-users/sS-pUUGp9o4 I'm trying to write a module meta-language mylang, which accepts a s