Re: Programmatically expand macros

2020-06-20 Thread Stefan Israelsson Tampe
There is a small macro tool that will expand the arguments before calling the macros body. Forgot its name. This is closest you get with what you are asking for. Its a really cool macrology based on syntax rules. Its included in guile standard. On Tue, 16 Jun 2020, 19:59 Linus Björnstam, wrote:

Re: Programmatically expand macros

2020-06-19 Thread Catonano
Hi Linus Il giorno mar 16 giu 2020 alle ore 19:59 Linus Björnstam < linus.inter...@fastmail.se> ha scritto: > Hi! > > Is there any simple way to programmatically expand a macro? I already have > a PoC that uses syntax-local-binding, but that is quite complex. > > Say I have a macro called (hej bo

Programmatically expand macros

2020-06-16 Thread Linus Björnstam
Hi! Is there any simple way to programmatically expand a macro? I already have a PoC that uses syntax-local-binding, but that is quite complex. Say I have a macro called (hej body ...), can I in any simple way expand (body ...) so that all macros within are expanded? Without relying on syntax