-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
85 lines (74 loc) · 2.83 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
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>λab</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>λab</h1>
<div id="program" contenteditable="true">(λx. x) λy. y</div>
<div class="graph" id="graph_result_output"></div>
<div class="graph" id="graph_output"></div>
<ul id="program_result"></ul>
<p class="help program_help">Press the backslash key to type a λ.</p>
<div id="program_error">
▼
<span id="program_errorMessage"></span>
</div>
<div id="options">
<input type = "checkbox"
name = "guess"
id = "guess"
value = "guess"/>
<label for = "cbv">Interactive Mode</label>
<form id="strategy" action="">
<h3>Reduction Strategy</h3>
<p>
<input type = "radio"
name = "evalStrat"
id = "cbv"
value = "cbv"
checked = "checked" />
<label for = "cbv">Call-By-Value</label>
</p>
<p>
<input type = "radio"
name = "evalStrat"
id = "cbn"
value = "cbn" />
<label for = "cbn">Call-By-Name</label>
</p>
<p>
<input type = "radio"
name = "evalStrat"
id = "normal"
value = "normal" />
<label for = "normal">Full Normal Order</label>
</p>
<p>
<input type = "radio"
name = "evalStrat"
id = "appl"
value = "appl" />
<label for = "appl">Full Applicative Order</label>
</p>
<h3>Share</h3>
<input type="text" id="share_link" readonly>
</form>
</div>
<button id="show_options">⚙︎</button>
<div id="macro" contenteditable="true">IF ≜ λb. λt. λf. b t f </div>
<ul id="macro_result"></ul>
<p class="macro_help">Press the = key to type a ≜. Press the enter key when done to save your definition.</p>
<p class = "macro_list_help">Your currently defined macros: </p>
<ul id = "macrolist"></ul>
<div id="macro_error">
▼
<span id="macro_errorMessage"></span>
</div>
<script src="lambdalab.bundle.js"></script>
</body>
</html>