From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?Linus_Bj=C3=B6rnstam?= Newsgroups: gmane.lisp.guile.user Subject: Programmatically expand macros Date: Tue, 16 Jun 2020 19:58:17 +0200 Message-ID: <390878b4-f329-4a52-9ec5-1fb65bfd9256@www.fastmail.com> Mime-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="78945"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.3.0-dev0-529-g3ee424a-fm-20200611.001-g3ee424a1 To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Tue Jun 16 19:59:26 2020 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jlFrn-000KQ7-MF for guile-user@m.gmane-mx.org; Tue, 16 Jun 2020 19:59:24 +0200 Original-Received: from localhost ([::1]:49484 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jlFrm-0004ue-Gy for guile-user@m.gmane-mx.org; Tue, 16 Jun 2020 13:59:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59674) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jlFrP-0004si-O4 for guile-user@gnu.org; Tue, 16 Jun 2020 13:58:59 -0400 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:53817) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jlFrN-0008JW-RX for guile-user@gnu.org; Tue, 16 Jun 2020 13:58:59 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id F05D35C00B3 for ; Tue, 16 Jun 2020 13:58:55 -0400 (EDT) Original-Received: from imap1 ([10.202.2.51]) by compute4.internal (MEProxy); Tue, 16 Jun 2020 13:58:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.se; h= mime-version:message-id:date:from:to:subject:content-type :content-transfer-encoding; s=fm3; bh=0YxQ1A62sQEqMdz/WvxuKHx/50 GKToX1ohLAtdCUNCQ=; b=hfOUIFqVfXYUQofVhVi7dNRal7+sqTagPx/b0Mqcqz 1Epw2jRwHKdx854pxBGNG5HET/PCF6pl45hR2J75q3G1Q9HizknaOTlKB1gDyFZR aFbJJ+Zl2scKOk1klp80D/8Zh0k83Y2CfPGMf9vqLGKts3R42qyzgm/BtEd3WzVr NoGMGuFjK3tConT9L4xFtpV1henVWDeQtbiV2C9ecM4Q/GSzvDG7Yd5uX486lWvK lKNI3k89kuQp71QgHXlwg9z1Zt6KI2jAG6tbJf2l/bln+n2JCzXYlVN6bBGPSN5o MC69DkRiJnVBFzcgke5tZVW9BwpJbeqkC8JKkJ4wil6A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=0YxQ1A 62sQEqMdz/WvxuKHx/50GKToX1ohLAtdCUNCQ=; b=ocpo88PTZwXWAwjZFERcsd XJjm4ALklzUGsPWDAIMFL/w/DvcZ+xGgTz0uV8MUIDnqCeIbZmAK0lYKLbP0Ngop iPv4QOfnRAY1lqqZ73wDxT6xYFQhnhyB241sGAQWVMV7Prq8gvYQkl5u19CoPteZ gwy03cC3b8Kz8AJJfkg8J6D6R1uS6Buw68ImgXLBD+fpsHpDUS0f8e1ftpfzjSvZ Rp73rLe8KhRye+VugBZZr9ovu29swvMfTOCn1uxEJJMTkA6wzT+gMyApYNggjlnu G6FDCHf2nuAdumOUJIOXqWO1H+hzMaK4XWgLCV4d0BxLTEH6miqhHtQ+s/9utJcQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudejtddguddvvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgfgsehtqh ertderreejnecuhfhrohhmpefnihhnuhhspgeujhpnrhhnshhtrghmuceolhhinhhushdr ihhnthgvrhhnvghtsehfrghsthhmrghilhdrshgvqeenucggtffrrghtthgvrhhnpeekte fhjedtvdehveefudejffetheffhedtleehteffueeljeeuudffgffffeejueenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlihhnuhhsrdhinh htvghrnhgvthesfhgrshhtmhgrihhlrdhsvg X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id A2A4AC200A5; Tue, 16 Jun 2020 13:58:55 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Received-SPF: pass client-ip=66.111.4.26; envelope-from=linus.internet@fastmail.se; helo=out2-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/16 13:58:55 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:16591 Archived-At: Hi! Is there any simple way to programmatically expand a macro? I already ha= ve a PoC that uses syntax-local-binding, but that is quite complex.=20 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 s= yntax-local-value and doing it all myself, that is. Best regards Linus Bj=C3=B6rnstam