-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
73 lines (59 loc) · 2.79 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet"
href="https://tree-sitter.github.io/tree-sitter/assets/css/style.css?v=5364ac4ea8579e219f208af7953e7376108997fe"
media="screen" type="text/css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.45.0/codemirror.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/clusterize.js/0.18.0/clusterize.min.css">
<title>AutoDev Tree-sitter|Playground</title>
</head>
<body id="container">
<h1>AutoDev Syntax Tree Playground</h1>
<div id="playground-container">
<h4>Code</h4>
<select id="language-select">
<option value="c">C</option>
<option value="cpp">C++</option>
<option value="c_sharp">C#</option>
<option value="go">Go</option>
<option value="java">Java</option>
<option value="javascript">JavaScript</option>
<option value="kotlin">Kotlin</option>
<option value="markdown">Markdown</option>
<option value="lua">Lua</option>
<option value="python">Python</option>
<option value="ruby">Ruby</option>
<option value="rust">Rust</option>
<option value="swift">Swift</option>
<option value="toml">TOML</option>
<option value="typescript">TypeScript</option>
<option value="tsx">TypeScript React</option>
<option value="zig">Zig</option>
</select>
<input id="logging-checkbox" type="checkbox" checked="checked"></input>
<label for="logging-checkbox">Log</label>
<input id="query-checkbox" type="checkbox" checked="checked"></input>
<label for="query-checkbox">Query</label>
<textarea id="code-input"></textarea>
<div id="query-container" style="visibility: hidden; position: absolute;">
<h4>Query</h4>
<textarea id="query-input"></textarea>
</div>
<h4>Tree</h4>
<span id="update-time"></span>
<div id="output-container-scroll">
<pre id="output-container" class="highlight"></pre>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.45.0/codemirror.min.js"></script>
<script>LANGUAGE_BASE_URL = 'wasm'</script>
<script src="https://tree-sitter.github.io/tree-sitter.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/clusterize.js/0.18.0/clusterize.min.js"></script>
<script src="https://tree-sitter.github.io/tree-sitter/assets/js/playground.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.bundle.min.js"></script>
</body>
</html>