shithub: femtolisp

Download patch

ref: 81fdc5ef972becd6c0f3b76f079c43f1fce8dc48
parent: ef4fa80a34dc54cd42fe3e0c157dcede5f5ed207
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Tue Dec 10 21:17:48 EST 2024

disenv.lsp: a script to disassemble everything

--- /dev/null
+++ b/disenv.lsp
@@ -1,0 +1,10 @@
+#!/usr/bin/env flisp
+(for-each (lambda (e)
+           (let ((v (top-level-value e)))
+                (when (and (function? v)
+                           (not (builtin? v)))
+                      (print e)
+                      (newline)
+                      (disassemble v)
+                      (newline))))
+          (environment))