-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
80 lines (78 loc) · 2.54 KB
/
index.html
File metadata and controls
80 lines (78 loc) · 2.54 KB
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
74
75
76
77
78
79
80
<html>
<head>
<script src="require.js"></script>
<script>
var onInput, onToggle;
require(['playground'], function (Playground) {
onInput = Playground.onInput;
onToggle = Playground.onToggle;
onInput(); // render initial answer
});
</script>
</head>
<body>
<table width="100%">
<tr>
<td>
<textarea cols="80" rows="30" autofocus
id="input"
oninput="onInput()">
(input ([llama {goes here}])
(or
(let ([(where what) (maybe (conc "anywhere you " what))])
(where "want")
(where "like"))))</textarea>
</td>
<td>
<textarea cols="80" rows="30" readonly
id="output"></textarea>
</td>
</tr>
<tr>
<td></td>
<td>
<form>
<table>
<tr>
<td>
<input type="radio" name="showWhat" onchange="onToggle()"
value="tokens" id="radioTokens">
<label for="radioTokens">Tokens</label>
</td>
<td>
<input type="radio" name="showWhat" onchange="onToggle()"
value="parse" id="radioParse">
<label for="radioParse">Parse Tree</label>
</td>
</tr>
<tr>
<td>
<input type="radio" name="showWhat" onchange="onToggle()"
value="evaluate" id="radioEvaluate">
<label for="radioEvaluate">Evaluated Tree</label>
</td>
<td>
<input type="radio" name="showWhat" onchange="onToggle()"
value="sexpr" id="radioSexpr">
<label for="radioSexpr">Evaluated S-Expression</label>
</td>
</tr>
<tr>
<td>
<input type="radio" name="showWhat" onchange="onToggle()"
value="nodes" id="radioNodes">
<label for="radioNodes">XML Nodes</label>
</td>
<td>
<input type="radio" name="showWhat" onchange="onToggle()"
value="text" id="radioText" checked>
<label for="radioText">XML Text</label>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>
</html>