summaryrefslogtreecommitdiffstats
path: root/main.mjs
diff options
context:
space:
mode:
authorBrian Cully <bjc@spork.org>2025-08-23 08:51:24 -0400
committerBrian Cully <bjc@spork.org>2025-08-23 08:51:24 -0400
commit12c06171b3f94696e852c3910c116f56cbfc5b64 (patch)
tree2a595842ae68c23150db63ef87bc01a1e9bfde8e /main.mjs
parent79441128958669b16ce8dfe39a3684069921f604 (diff)
downloadautomathon-12c06171b3f94696e852c3910c116f56cbfc5b64.tar.gz
automathon-12c06171b3f94696e852c3910c116f56cbfc5b64.zip
wip: pass interp between js and rust
Diffstat (limited to 'main.mjs')
-rw-r--r--main.mjs5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.mjs b/main.mjs
index c07dccd..a555a60 100644
--- a/main.mjs
+++ b/main.mjs
@@ -1,4 +1,4 @@
-import init, { compile, run, tick } from './pkg/automathon.js';
+import init, { compile, run, tick, wordlist, ip, interp } from './pkg/automathon.js';
async function loaded() {
console.debug('running init');
@@ -13,6 +13,9 @@ async function loaded() {
document.querySelector('#tick').onclick = e => {
console.debug('tick clicked', e);
tick();
+ console.debug('result of ip', ip());
+ console.debug('result of wordlist', wordlist());
+ console.debug('result of interp', interp());
};
document.querySelector('#run').onclick = e => {
console.debug('run clicked', e);