From: Catonano <catonano@gmail.com>
To: "Linus Björnstam" <linus.internet@fastmail.se>
Cc: Guile User <guile-user@gnu.org>
Subject: Re: Programmatically expand macros
Date: Fri, 19 Jun 2020 12:14:11 +0200 [thread overview]
Message-ID: <CAJ98PDxsBgRba3ROSD1vv8B4YEnLOUucjZp5ewH5gkxHaJyWXQ@mail.gmail.com> (raw)
In-Reply-To: <390878b4-f329-4a52-9ec5-1fb65bfd9256@www.fastmail.com>
Hi Linus
Il giorno mar 16 giu 2020 alle ore 19:59 Linus Björnstam <
linus.internet@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 body ...), can I in any simple way expand
> (body ...) so that all macros within are expanded? Without relying on
> syntax-local-value and doing it all myself, that is.
>
No, Guile has no such facility
There was a previous discussion of this, here
https://lists.gnu.org/archive/html/guile-user/2018-05/msg00019.html
next prev parent reply other threads:[~2020-06-19 10:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-16 17:58 Programmatically expand macros Linus Björnstam
2020-06-19 10:14 ` Catonano [this message]
2020-06-20 15:53 ` Stefan Israelsson Tampe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJ98PDxsBgRba3ROSD1vv8B4YEnLOUucjZp5ewH5gkxHaJyWXQ@mail.gmail.com \
--to=catonano@gmail.com \
--cc=guile-user@gnu.org \
--cc=linus.internet@fastmail.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).