From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id oGKzDdDqv2X95gAA62LTzQ:P1 (envelope-from ) for ; Sun, 04 Feb 2024 20:51:44 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id oGKzDdDqv2X95gAA62LTzQ (envelope-from ) for ; Sun, 04 Feb 2024 20:51:44 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1707076304; a=rsa-sha256; cv=none; b=CMork3LjL+VMHOGlicTeKpxQBuQYvElFTE5fzAVs1MEjyhlUxJDxQJUA4uayaabFImz0ef Kx/b81qavqO1S5PVwPaj67QUdzpt8NbwcFzyqV3Ma8ODN9ZHSqOypRzSogt+S/bF1vDnqi WjkOevdsprtT6WhJkG52zQr+xF3cFgJIRzsW/Bak7oRwaS7bGJ9dm0QecqRc7pohAVywii ljUtCx/2Mxa3pt5MHhGnKQXoP29EJl/Kpu7RktUz6mqbDZrBTiJdsfW7OB/He3i7wkAn9c +pITJf+Bba7va+NJP5wbgK7GRz0DHDi2Ej3I9iDH1rlsVf8we9+Q2I9YeS/IAQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1707076304; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=gUShauxlwb0Q5YU75un2iIlODxExpcC0Ej0Khc0TQfk=; b=Hnjy08ciRD9Qu1+OdcCymHFEi7TZ05j0arf7O5t1uVC0M431iRsw+2Ip7mWH43ZV/zk/gc FiwZGXLMF5PkjlP58JXeapfkLWfko0ZscIFpgFPzuhKlVMKLeKupm5Z0dmYi/7B5SxzYrJ BSXQQO799lT3l8oATz/oOhl4pNgPm23ItmZSTDw+0RjqOB0W0u5cN/79yJ6qBoP/ubcExd 5w6iT4Kfrp5xyt8lY7t01mKA/l6laB1z65S68FQZtQJFsNl840m7j3KlBkNTwVcxKI346f yz+BtH+HadOHzhfNZXEGiUN5dbRyTInaqzCaXUgoh4EcdoUQML66notapCywlQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E97CBAB2B for ; Sun, 4 Feb 2024 20:51:43 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rWiW9-00028r-0h; Sun, 04 Feb 2024 14:51:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rWiW6-00027s-PT; Sun, 04 Feb 2024 14:51:02 -0500 Received: from vmi993448.contaboserver.net ([194.163.141.236] helo=mutix.org) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rWiW5-0002ye-1X; Sun, 04 Feb 2024 14:51:02 -0500 Received: from [192.168.1.169] (host86-132-246-87.range86-132.btcentralplus.com [86.132.246.87]) (Authenticated sender: cdo) by mutix.org (Postfix) with ESMTPSA id 7F8C3A607FD; Sun, 4 Feb 2024 20:50:56 +0100 (CET) Message-ID: <03f7199a-daf2-e070-8156-6837d7e20e32@mutix.org> Date: Sun, 4 Feb 2024 19:50:54 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 To: guile-user@gnu.org Content-Language: en-US From: Christina O'Donnell Subject: Getting all symbols in a Scheme file as a list Cc: help-guix@gnu.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=194.163.141.236; envelope-from=cdo@mutix.org; helo=mutix.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Spam-Score: -5.97 X-Migadu-Queue-Id: E97CBAB2B X-Migadu-Spam-Score: -5.97 X-TUID: WhmE/uYsQ/ZP Hi, I'm trying to write a Guile script to trace symbol definition and reference between modules in a large Guile repo (GNU/Guix), for the purposes of large scale refactoring. I'm wondering how I could programmatically get all the values in a Scheme file as an S-expression. From the manual, I know that the REPL has meta keyword ',binding' and ',apropos' which let you search and list all bindings in accessible to a module. These are exactly what I need only, since they're meta-commands, they don't produce Scheme expressions. Does anyone have any pointers? Should I go down the route of,    (open-input-pipe (string-append "guile -l" file "-c ,binding")) ? Seems a little bit baroque to me, I'd expect a simpler way of doing it. Any libraries anyone knows of? Kind regards,  - Christina