diff options
| author | Brian Cully <bjc@spork.org> | 2025-08-23 08:51:24 -0400 |
|---|---|---|
| committer | Brian Cully <bjc@spork.org> | 2025-08-23 08:51:24 -0400 |
| commit | 12c06171b3f94696e852c3910c116f56cbfc5b64 (patch) | |
| tree | 2a595842ae68c23150db63ef87bc01a1e9bfde8e /main.mjs | |
| parent | 79441128958669b16ce8dfe39a3684069921f604 (diff) | |
| download | automathon-12c06171b3f94696e852c3910c116f56cbfc5b64.tar.gz automathon-12c06171b3f94696e852c3910c116f56cbfc5b64.zip | |
wip: pass interp between js and rust
Diffstat (limited to 'main.mjs')
| -rw-r--r-- | main.mjs | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |
