From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EIN5DObOvWLOyQAAbAwnHQ (envelope-from ) for ; Thu, 30 Jun 2022 18:27:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UGaDDObOvWJOKQAA9RJhRA (envelope-from ) for ; Thu, 30 Jun 2022 18:27:18 +0200 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 C6E23115D2 for ; Thu, 30 Jun 2022 18:27:17 +0200 (CEST) Received: from localhost ([::1]:49190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6x0d-0001yB-Ve for larch@yhetil.org; Thu, 30 Jun 2022 12:27:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6x00-0001wn-0c for emacs-orgmode@gnu.org; Thu, 30 Jun 2022 12:26:36 -0400 Received: from mail-he1eur04olkn0831.outbound.protection.outlook.com ([2a01:111:f400:fe0d::831]:35968 helo=EUR04-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6wzx-0006Pc-M9 for emacs-orgmode@gnu.org; Thu, 30 Jun 2022 12:26:35 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=anQQzWsdOt+H8nDuurbWCleVKawbAB9h7rTzlNq6echjbhbjwzXf+h8rP/R3uZZUKHq8NY4rTX8hUieyqtZUebi2seNgYl2dbmTsUsYiTujC1o3h/o1z8cmLIebm6SUi+D8k1zjpOjKSmUza0p65cnak0CYcTzTIFXGFivxiUyuzdckUi+AxJOGBPfav96LyZyd4cK9e5Yz2P9tGItfTl9INDKSb9+M3n3KJSZ07aXFElfptT3WcHQr9ao7f+/isd8pOyvUAaa1TbMaVGMWqe6fJzTkp0kHzJKjTi5fYE+rGseOAMja8oVA4F1/aJucC8FhC2I7KQ5j/w7bMMZQvXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=P1WkVN6yF6Ez+8GOjF9J1repm2pTUQuHMGdu/U7V3Ao=; b=K372iT8ufx8HQ9ta5xw89FzUFfS2eqqaI3iN9SlFpaeY2oRIiRWC8os1HAF3YrH7f7gVc/eAGybRO78ak+qHd3z/ttlRvpMiXESTh9D2owOhbXoEt7ctjuzvu4lzua/IwRn694/5EnC9JKbk4BSSsNXxC92R3LJfOK1C9DzyLuZSOn6OczrIiDwdk585E79EiyV6nI4zKSEn303YA5vUJ1zeCa5YBw5Cu0I70XSjUwURKp3dCPSnNkFX/aytyDBk/F3sWIDi+aiaQHUB+WOhzW/JH6c4StcGZTBnbMPUk8xAZH2rBHGMCOoPlh00jjLqqO5Y4dxGJOHvIVnJbkxxrQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=P1WkVN6yF6Ez+8GOjF9J1repm2pTUQuHMGdu/U7V3Ao=; b=YsPn1s/KMhb7pz3nWV0bgphqWu7HXOkbCYB4p1Tx3Kq1uiSblflakFs6V9a7Hs6A7RZNJ68HyQRM1nbFP+282uSLCmz1vdMPW4a7THwga44oBIQoTM+c8RknpYtBuuNcB1+ETbQODcoJebn17SQm00Db0K6MS4il4VVf7w4475scu6NNE5wPYbPgvDyRt1h7goKk83ofQ+R5y+lEOzUO5SOtSEesnZHW+3PkAo+HKsCiOIZe/lPaOd9PeEoqTCSvDoHPjrW+AChRBKha6Vt6iV8mrhBUv7EPa3W0KlFFmxG893zB13eV8cN2ipXN82tlevcWDOQ7Cm0NeXqIULygEQ== Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) by AS4PR09MB5767.eurprd09.prod.outlook.com (2603:10a6:20b:576::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.18; Thu, 30 Jun 2022 16:21:27 +0000 Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::1995:84ad:afa1:1f39]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::1995:84ad:afa1:1f39%9]) with mapi id 15.20.5395.014; Thu, 30 Jun 2022 16:21:27 +0000 From: arthur miller To: =?iso-8859-1?Q?Juan_Manuel_Mac=EDas?= , orgmode Subject: RE: Convert a Lisp expression to a tree diagram Thread-Topic: Convert a Lisp expression to a tree diagram Thread-Index: AQHYjIyPshrFP2hPV0KDNnZdZUezdq1oIcwh Date: Thu, 30 Jun 2022 16:21:27 +0000 Message-ID: References: <87edz6utcm.fsf@posteo.net> In-Reply-To: <87edz6utcm.fsf@posteo.net> Accept-Language: sv-SE, en-US Content-Language: sv-SE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [uPQHuLrOtiujah+LJ1BNpVwk1pszUwun] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 928637b7-cf65-46cc-e800-08da5ab495b4 x-ms-traffictypediagnostic: AS4PR09MB5767:EE_ x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: MWi7f4sYgBYlx1Dw3xNvWLnL7SQEUNkmWYteX3j2r3EkeIhcc4Qw/RHD8MCfJxGN7gqhQoNWw4jUHQkAYHZhyfBVEVAony90AjuKMUztfsICnH31VgTiSu2zxkCGGxvaqXr3PT8Or24pYmHQPETabCZjRbViN5ffX5KUEnn0lToJFQZusx7BjXUpoKMo/HYLPm60oFtFQqfVRv8Qv3SNgfOYx2khKs7c6Oy5Jzk4ECTltksMTTXwdKaE6/SpfPJKtffuQF9H923j5Ld6ow5dRf2F1EOU9SZcuHDchITolHlYumrKvhqyDB9jTPq/STpgL3PfJI4zosd+3nTkaPb/Xh0vXvBccXnu81xOg0j1OTXBPN7BQ3XmoD0gOlVTHXn8HeEFmBfrnU4ggua1VC4WhJVgZULxEVhYnFCDpgC+3yLqvMYFHj5rISUwNxuDzYdgQAM6PD6SMalswuLfiweKrVpfkB15Y79YHqDzmCm2/4wM0Ll8rrIBAujSWIwrtDoOBEepNJZFPXdeyQ9E+uEx0ChdWAdjltyXqUdYOwMuAR/acRhUkvaLl1A38zdXJmEGh2OfZkKpADcMJ4cPtFGsYvog8u4/3g7ug0NYvxJBLgdJFs3COmVk95yTxSsv87A5LJDnxLf+QQJJCQaEFNp2Uw== x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?jgXy7lQvoblHomL0IzBZY/tzjP38yES39Io+toTO0kQt4Op0+6VW0nVWHY?= =?iso-8859-1?Q?QwjB1RjxI347iKv1nqT2efoIJn9Q1yg9zfq8Fs1UucrRJgowCEYD50cUB6?= =?iso-8859-1?Q?j9iBhtHn1MhP73teYfk7vCDBzZNY9YXYO57/uUPY9iS5VhqVjezexsWGrq?= =?iso-8859-1?Q?CvoPIlEDzkYqV3Sz0YbZ9xDjfNrNlJILtNdj2VqjVMQib93rzK5wLT/2CW?= =?iso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9MyTcXXRCJroA?= =?iso-8859-1?Q?by/uQZiKSuIagH1ykChbJNiwZF/+cA/b1QLFrbMmTGNbnYTQOi5ZCYoFzE?= =?iso-8859-1?Q?uGGieBCK7RzGjvO2ILhD81OGB33wZ/jQuyvrhAqOn26gyBqukv/PMfmKB4?= =?iso-8859-1?Q?ioR33IlkXeB9Q8yUEqPSjfPjwmuTcZl8VUiaPBHYreya2H41yW1ZZMEGtT?= =?iso-8859-1?Q?7btPDUE9Ut4vPIQ+ed0OX1LixA=3D=3D?= Content-Type: multipart/alternative; boundary="_000_AM9PR09MB497751D0C6C440BD2464CE3896BA9AM9PR09MB4977eurp_" MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-64da6.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM9PR09MB4977.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 928637b7-cf65-46cc-e800-08da5ab495b4 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Jun 2022 16:21:27.7995 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR09MB5767 Received-SPF: pass client-ip=2a01:111:f400:fe0d::831; envelope-from=arthur.miller@live.com; helo=EUR04-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, HTML_MESSAGE=0.001, 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: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656606438; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=P1WkVN6yF6Ez+8GOjF9J1repm2pTUQuHMGdu/U7V3Ao=; b=Nm18YAg7SmvlJgaBZ1Bnu7ucLzT9nr79OXpKJycUidOwSCUA0XzgCfhpbBloyYjonKzRdt re8BbQSkNtn91NrX+jjbdRMKXozVN1KLRBK0ZAz0S7D+UpYOw3MaTJhsfQI69IbNlvaoVs ZqC1mcUKvg4b4icfIVx8ttElbYklF3nttxpRVGSXtc9SBOILpGEbdAVhn4lYDv7Tz1AvO8 azKqTpEmUTBaXjk46+VlYLT0P7t/uCbcEWcpUtPrYPSfjke21qN7VwSDF8TWC0YT8hOLPJ vuZzPBDpt/sp1Ydah/SK55ocf9Z1BgPS3anUtlLGEOKayASysms/Kv11zT5fOQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1656606438; a=rsa-sha256; cv=pass; b=jzafqETBLpnJPnr8Lyl/XiDfFdO3zxhR99PIoQgQKxg4PXFTQAL0kW9wKBf/YyTw0m9D57 3Se65DmLGUpWxozfeuaWxkYGI4v/LyoMfNF1UD52BrJol79luiJyHlZ9dqhjFCP6Oe7ma7 EE79HOTXO58qgOr2f1b/1GB5G7z/hxcVgXDnq6MHufpc+UeHgtoh7lKskALbBd3TxBIooB Gc5ZIatXAmLuEhH9n76BhRUFjE8vo4hGk5hX/qE1rhTABrrlJ8coRYF9CP2aaAL1CvhmX/ hEPA6e1PbhGJUdJ2VuW7BJr9sUXy4w6nLWr50NcEROGsgtkSoX8bvrGiaOoQOA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=live.com header.s=selector1 header.b="YsPn1s/K"; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=live.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.25 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=live.com header.s=selector1 header.b="YsPn1s/K"; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=live.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: C6E23115D2 X-Spam-Score: -5.25 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9pVP2LMQJv27 --_000_AM9PR09MB497751D0C6C440BD2464CE3896BA9AM9PR09MB4977eurp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable This one draws graph of cons cells (lists): https://github.com/amno1/draw-cons-tree I never tried with random s-expressions, but I guess you could pass them in= as lists? -------- Originalmeddelande -------- Fr=E5n: Juan Manuel Mac=EDas Datum: 2022-06-30 16:20 (GMT+01:00) Till: orgmode =C4mne: Convert a Lisp expression to a tree diagram Hi all, Sorry for the slight offtopic. I'd like to be able to graphically convert (from a src block) a Lisp expression to a tree diagram, similar to trees used in (human) syntax and grammar, especially generative grammar (this is a web app for generating such trees: http://www.ironcreek.net/syntaxtree/). I think I can try some LaTeX hack using the 'forest' package (here's a related thread with pros and cons: https://tex.stackexchange.com/questions/140812/drawing-a-lisp-expression-as= -a-tree), but I was wondering if anyone knows of any more emacs/elisp/org friendly packages/solutions. Some time ago I saw an Emacs package that could convert a Elisp expression into an ascii text tree diagram, but I can't remember its name and I can't find it anywhere... Best regards, Juan Manuel --_000_AM9PR09MB497751D0C6C440BD2464CE3896BA9AM9PR09MB4977eurp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
This one draws graph of cons cells (lists): 

https://github.com/amno1/draw-cons-tree

I never tried with random s-expressions, but I guess you = could pass them in as lists?


-------- Originalmeddelande --------
Fr=E5n: Juan Manuel Mac=EDas <maciaschain@posteo.net>
Datum: 2022-06-30 16:20 (GMT+01:00)
Till: orgmode <emacs-orgmode@gnu.org>
=C4mne: Convert a Lisp expression to a tree diagram

Hi all,

Sorry for the slight offtopic. I'd like to be able to graphically
convert (from a src block) a Lisp expression to a tree diagram, similar
to trees used in (human) syntax and grammar, especially generative
grammar (this is a web app for generating such trees:
http://www.ironcreek.net/= syntaxtree/). I think I can try some LaTeX hack
using the 'forest' package (here's a related thread with pros and cons:
https://tex.stackexchange.com/questions/140812/drawing= -a-lisp-expression-as-a-tree),
but I was wondering if anyone knows of any more emacs/elisp/org friendly packages/solutions. Some time ago I saw an Emacs package that could
convert a Elisp expression into an ascii text tree diagram, but I can't
remember its name and I can't find it anywhere...

Best regards,

Juan Manuel


--_000_AM9PR09MB497751D0C6C440BD2464CE3896BA9AM9PR09MB4977eurp_--