From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Holger Peters Newsgroups: gmane.lisp.guile.devel Subject: [PATCH 0/1] Preserve source properties in unparse-tree-il Date: Fri, 30 Oct 2020 17:00:47 +0100 Message-ID: Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17136"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Holger Peters To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Fri Oct 30 17:03:43 2020 Return-path: Envelope-to: guile-devel@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 1kYWsQ-0004IS-EM for guile-devel@m.gmane-mx.org; Fri, 30 Oct 2020 17:03:42 +0100 Original-Received: from localhost ([::1]:56506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYWsP-0004n8-D4 for guile-devel@m.gmane-mx.org; Fri, 30 Oct 2020 12:03:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYWqW-00038q-MT for guile-devel@gnu.org; Fri, 30 Oct 2020 12:01:44 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:33815) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYWqU-0005C3-8I for guile-devel@gnu.org; Fri, 30 Oct 2020 12:01:44 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id EA19B2400FC for ; Fri, 30 Oct 2020 17:01:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1604073684; bh=LG0cIIOuLRxAa+jk8VvIkiUi/NbuOo3JEo2p2fv3IRI=; h=From:To:Cc:Subject:Date:From; b=lID38cSwoHB6Wf9jRIgsd8jx1MhYuy4U3CSx1CvyEMjJmZykmW+HuuBRERMCe365+ cVdqBPnSujEyWiicnkxxzpzFd6s7RFgbuajs1gFy963KeiTS06LF8b1AFVhhAk6NHt ltoFg80prfovid17k+/f7+uUJ8Q+t961J/C+YkQDEXv7aob6yLJe5ayl0SziF62SW0 VixHaCljpjkcnvMMGp8B3gBXz0TGXDww4uecWBvpfSsRpQsVkM63HI3gm8nWn73t+f kNtW4HgVJq+EI09dnPZhIp22jg0hppyW3OpBxkCrDXNxg3tA3VVvvrQlHXGAJHhoEC yzqACbDkNbShA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CN6Vq2pbkz6tmF; Fri, 30 Oct 2020 17:01:23 +0100 (CET) X-Mailer: git-send-email 2.28.0 Received-SPF: pass client-ip=185.67.36.66; envelope-from=holger.peters@posteo.de; helo=mout02.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/30 12:01:24 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 30 Oct 2020 12:03:27 -0400 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.io gmane.lisp.guile.devel:20606 Archived-At: I realized that parse-tree-il uses source-properties to fill the location slots in the tree-il AST elements, while unparse-tree-il doesn't set source-properties on the resulting list values. This patch preserves the source-properties in the unparse-tree-il transformation so it should now be possible to translate back and forth. Holger Peters (1): Preserve source properties in unparse-tree-il module/language/tree-il.scm | 75 +++++++++++++++++++++---------------- 1 file changed, 42 insertions(+), 33 deletions(-) -- 2.28.0