From 12c06171b3f94696e852c3910c116f56cbfc5b64 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Sat, 23 Aug 2025 08:51:24 -0400 Subject: wip: pass interp between js and rust --- main.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'main.mjs') 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); -- cgit v1.3