summaryrefslogtreecommitdiffstats
path: root/index.html
blob: 77c2bdcf033e2855a2fe7523a892818d5bbec3a4 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html>
  <head>
    <title>automathon</title>
    <link rel='stylesheet' href='main.css'>
  </head>

  <body>
    <h1>automathon</h1>

    <div id='editor'>
      <div id='code'>
        <button id='compile'>compile</button>
        <br>
        <div id='src' contenteditable='plaintext-only'>: fac
    dup
    1 > if
        dup 1 - fac *
    then
    ;
5 fac
drop</div>
      </div>

      <div id='state-container'>
        <div id='state'>
          <div class='controls'>
            <button id='tick'>tick</button>
            <button id='bench'>bench</button>
            <button id='blinken'>blinken</button>
          </div>
          <fieldset class='wordlist'>
            <legend>word list</legend>
            <div id='wordlist'></div>
          </fieldset>
          <fieldset class='stack'>
            <legend>stack</legend>
            <ol id='stack'></ol>
          </fieldset>
          <fieldset class='callstack'>
            <legend>call stack</legend>
            <ol id='callstack'></ol>
          </fieldset>
        </div>
      </div>
    </div>
    <br>
    <script src='./main.mjs' type='module'></script>
  </body>
</html>