emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Convert a Lisp expression to a tree diagram


From: Ihor Radchenko
Subject: Re: Convert a Lisp expression to a tree diagram
Date: Thu, 30 Jun 2022 23:17:54 +0800

Juan Manuel Macías <maciaschain@posteo.net> writes:

> 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...

Invoking search across my notes and archives (all stored in Org, of
course) yielded the following:

https://reddit.com/r/emacs/comments/u2ca5c/drawtreeel/
https://reddit.com/r/emacs/comments/kzeyun/pairtree_a_learning_tool_for_visualizing_elisp/

linking to

https://github.com/amno1/draw-cons-tree
https://github.com/zainab-ali/pair-tree.el (example: 
https://teddit.namazso.eu/pics/w:2172_vetc0martyb61.png)

Hope it helps.

Best,
Ihor

----
actual notes below:

***** CANCELLED /u/zainab-ali [Reddit:emacs] (2021) M-x emacs-reddit: 
pair-tree: a learning tool for visualizing Elisp lists :BOOKMARK:misc:CANCELLED:
SCHEDULED: <2021-03-28 Sun>
:PROPERTIES:
:ID: 1443107e70e8b4e1d6d17499e546a8603b98d03e
:CREATED: [2021-01-19 Tue 10:09]
:Source: 
[[https://www.reddit.com/r/emacs/comments/kzeyun/pairtree_a_learning_tool_for_visualizing_elisp/]]
:ARCHIVE_TIME: 2021-04-02 Fri 16:15
:ARCHIVE_FILE: ~/Org/notes.org
:ARCHIVE_OLPATH: Topics/Software/Emacs \ org-mode/No deadline
:ARCHIVE_CATEGORY: Emacs[D]
:ARCHIVE_TODO: CANCELLED
:ARCHIVE_ITAGS: COMMON NOREFILE NODEADLINE SKIP
:END:
:LOGBOOK:
- State "CANCELLED"  from "NEXT"          [2021-03-28 Sun 23:59]
CLOCK: [2021-03-28 Sun 23:57]--[2021-03-28 Sun 23:59] =>  0:02
- Refiled on [2021-02-27 Sat 20:47]
- Refiled on [2021-01-19 Tue 10:20]
:END:
:BIBTEX:
#+begin_src bibtex
@misc{1443107e70e8b4e1d6d17499e546a8603b98d03e,
  author =       {/u/zainab-ali},
  howpublished = {Reddit:emacs},
  keywords =     {emacs},
  note =         {Online; accessed 19 January 2021},
  title =        {M-x emacs-reddit: pair-tree: a learning tool for
                  visualizing Elisp lists},
  url =
                  
{https://www.reddit.com/r/emacs/comments/kzeyun/pairtree_a_learning_tool_for_visualizing_elisp/},
  year =         2021,
}
#+end_src
:END:
***** CANCELLED /u/__g_p__ [Reddit:emacs] (2022) draw-tree.el 
:BOOKMARK:misc:CANCELLED:
:PROPERTIES:
:TITLE:    draw-tree.el
:BTYPE:    misc
:ID:       Reddit-emacs-/u/__g_p__2022-draw-tree-el-78e
:AUTHOR:   /u/__g_p__
:CREATED:  [2022-04-13 Wed 22:50]
:HOWPUBLISHED: Reddit:emacs
:KEYWORDS: emacs
:NOTE:     Online; accessed 13 April 2022
:RSS:      https://www.reddit.com/r/emacs/comments/u2ca5c/drawtreeel/.rss
:URL:      https://www.reddit.com/r/emacs/comments/u2ca5c/drawtreeel/
:YEAR:     2022
:ARCHIVE_TIME: 2022-04-29 Fri 17:33
:ARCHIVE_FILE: ~/Org/notes.org
:ARCHIVE_OLPATH: Topics/Software/Emacs \ org-mode/No deadline
:ARCHIVE_CATEGORY: Emacs[D]
:ARCHIVE_TODO: CANCELLED
:ARCHIVE_ITAGS: COMMON NOREFILE NODEADLINE SKIP
:END:
:LOGBOOK:
- State "CANCELLED"  from "TODO"          [2022-04-28 Thu 22:56]
- Refiled on [2022-04-14 Thu 08:00]
:END:




reply via email to

[Prev in Thread] Current Thread [Next in Thread]