summary refs log tree commit diff
path: root/recompile.e
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@irenes.space>2026-05-15 20:51:13 -0700
committerIrene Knapp <ireneista@irenes.space>2026-05-15 21:58:20 -0700
commit447921598269bae3e1406470015c37f23943cc74 (patch)
tree464583448ae74f83af637cefded39d8b3d431aff /recompile.e
parent1af849abc637c4890285c4d3cc08d99faae2ea41 (diff)
make the label transformation work all the way, no crashing
the code doesn't quite run yet, that'll be a future CL

Force-Push: yes
Change-Id: I71e6a45127c1fc37906d902e36142c17afef2a21
Diffstat (limited to 'recompile.e')
-rw-r--r--recompile.e12
1 files changed, 12 insertions, 0 deletions
diff --git a/recompile.e b/recompile.e
new file mode 100644
index 0000000..c6a6f7a
--- /dev/null
+++ b/recompile.e
@@ -0,0 +1,12 @@
+~ (entry pointer --)
+: recompile
+  dup word-heading
+  dup guess-entry-end swap entry-to-execution-token 8 +
+  { 2dup < }
+  { space dup @ dup is-codeword
+    { execution-token-to-entry entry-to-name emitstring }
+    { . } if-else
+    8 + } while newline ;
+
+' , recompile
+bye