-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
41 lines (37 loc) · 1.03 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/icon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css">
<title>Parser</title>
</head>
<body>
<div id="terminal">
<div id="terminal-history"></div>
> <div id="terminal-input" contenteditable="true"></div>
<button id="caret" for="input"> </button>
</div>
<div id="visualization">
<details open>
<summary>JSON</summary>
<pre id="ast-json"></pre>
</details>
<details open>
<summary>Tokens</summary>
<div id="tokens"></div>
</details>
<details class="full-height" open>
<summary>Graph</summary>
<div id="ast-container" class="dot-background">
<div id="ast-group">
<svg id="ast-connections" fill="none"></svg>
<div id="ast-nodes"></div>
</div>
</div>
</details>
</div>
<script src="./src/main.ts" type="module"></script>
</body>
</html>