Do you want to create an html visualization in html? The main thing to check is other code walkers for reference like https://github.com/ztellman/riddley but I strongly recommend trying this out yourself without using other libraries as you will learn a lot in the process.
You don't need to "convert" clojure to nested lists. It already is a nested list. Wrapping a clojure exp in a macro provides the macro with the unevaluated nested data. Alternatively, when viewing files, then you simply want to call read/read-string on raw clj file data. On Monday, November 29, 2021 at 3:16:23 PM UTC-5 kovas....@gmail.com wrote: > Just stumbled across this thread 10 years later! I'm actually interested > in doing the same thing: taking some clojure logic that I write and > converting it to a call-graph in html. Is there any prior art here I should > know about? Or can this be done with basic clojure to e.g. convert the > code of a function into nested lists for me to then convert to html? > > - Kovas > > On Tuesday, May 10, 2011 at 8:18:03 PM UTC-7 Bill Robertson wrote: > >> Thanks for the feedback and pointers. >> >> >> >> On May 10, 11:37 am, Timothy Baldridge <tbaldri...@gmail.com> wrote: >> > On Tue, May 10, 2011 at 10:26 AM, Jonathan Fischer Friberg < >> > >> > odysso...@gmail.com> wrote: >> > > "How do I actually just load code w/o evaluating it?" >> > > mostly when you want something like this, you want a macro. >> Manipulating >> > > code is also done within macros. >> > >> > Yeah, I would consider the whole code-is-data thing to refer more to >> using >> > macros than eval. For something fun to read up on this check out this >> > tutorial: >> > >> > http://www.learningclojure.com/2010/09/clojure-faster-than-machine-co... >> >> > >> > Here the author goes and takes a tree data structure, and on-the-fly >> > generates function that represents that structure. The result is some >> > insanely fast code. >> > >> > Timothy > > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/826a9a4d-5b83-4f40-9eaf-2d6f77c3fa93n%40googlegroups.com.