summaryrefslogtreecommitdiffstats
path: root/index.html
diff options
context:
space:
mode:
authorBrian Cully <bjc@spork.org>2025-08-22 11:39:14 -0400
committerBrian Cully <bjc@spork.org>2025-08-22 11:39:14 -0400
commit40352318ad887ad0bab7c9a3d22695bbcbe9f738 (patch)
tree2d9822c1762cbc0852114149539abfa21185cc93 /index.html
parenta1c946b747325b4d7df778ebc70112338482f143 (diff)
downloadautomathon-40352318ad887ad0bab7c9a3d22695bbcbe9f738.tar.gz
automathon-40352318ad887ad0bab7c9a3d22695bbcbe9f738.zip
start hooking the web ui up to rust
Diffstat (limited to 'index.html')
-rw-r--r--index.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/index.html b/index.html
index c985df4..16b132f 100644
--- a/index.html
+++ b/index.html
@@ -7,6 +7,21 @@
<body>
<h1>automathon</h1>
+ <textarea>
+: fac
+ dup
+ 1 > if
+ dup 1 - fac *
+ then
+ ;
+5 fac
+ </textarea>
+ <button id='compile'>compile</button>
+ <button id='tick'>tick</button>
+ <button id='run'>run</button>
+ <div id='datastack'></div>
+ <div id='callstack'></div>
+ <div id='wordlist'></div>
<canvas id='arena' width='512' height='512'>no canvas!</canvas>
<script src='./main.mjs' type='module'></script>
</body>