summaryrefslogtreecommitdiffstats
path: root/index.html
blob: 7e2d4c6dae37519d22d8c731fbdb44fe367da1db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html>
  <head>
    <title>automathon</title>
    <link rel='stylesheet' href='main.css'>
  </head>

  <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='bench'>bench</button>
    <fieldset>
      <legend>stack</legend>
      <ol id='stack'></ol>
    </fieldset>
    <fieldset>
      <legend>call stack</legend>
      <ol id='callstack'></ol>
    </fieldset>
    <fieldset>
      <legend>word list</legend>
      <div id='wordlist'></div>
    </fieldset>
    <canvas id='arena' width='512' height='512'>no canvas!</canvas>
    <script src='./main.mjs' type='module'></script>
  </body>
</html>