blob: a0775ae1b0c5f2f4173fdce2e3942030c8e1659c (
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
51
52
53
54
55
56
57
58
59
60
|
<!DOCTYPE html>
<html>
<head>
<title>automathon</title>
<link rel='stylesheet' href='main.css'>
</head>
<body>
<h1>automathon</h1>
<canvas id='arena' width='300px' height='300px'>
oh no! no canvas support!
</canvas>
<div id='editor'>
<div id='code'>
<select id='src-select'>
<option>rob.fs</option>
<option>fac.fs</option>
<option>slo-fac.fs</option>
</select>
<button id='compile'>compile</button>
<br>
<div id='src' contenteditable='plaintext-only'></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>
<fieldset class='vars'>
<legend>vars</legend>
<dl id='vars'></dl>
</fieldset>
</div>
</div>
</div>
<script src='./main.mjs' type='module'></script>
</body>
</html>
|