-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
69 lines (58 loc) · 1.87 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
<!doctype html>
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<style type="text/css">
#MonC { border:1px solid black; display:inline; float:left }
</style>
<title>Evaluateur de Lambda calcul et Visualisation</title>
</head>
<body>
<input type="text" name="terme" id="MonQ" />
<select id="MonS">
<option value="cbn">Call-by-name</option>
<option value="cbv">Call-by-value</option>
</select>
<button id="MonB">Evaluate</button>
<div>
<div style="display:inline-block; margin:10px" id="MonP">
</div>
<canvas id="MonC" width="500" height="500">
</canvas>
</div>
<div style="clear:both;">
<h3>Annexe</h3>
<h5>Syntaxe des lambda-termes : </h5>
<pre>
<expr> ::= <var>
| <func> <arg> # Applications.
| l <var> . <expr> # Abstractions.
<func> ::= <var>
| (l <var> . <expr>)
| <func> <arg>
<arg> ::= <var>
| (l <var> . <expr>)
| (<func> <arg>)
<var> ::= a| b| .... | Z
<const> ::= 0 | ... | 9 | <const>+
</pre>
<div>
<h5>Combinateur prédéfinis : </h5>
<ul>
<li>I ≡ (lx.x) - Identité</li>
<li>S ≡ (lxyz.(xz)(yz)) - Substitution</li>
<li>B ≡ (lxyz.x(yz)) - Composition</li>
<li>Y ≡ (lf.(lx.f(xx))(lx.f(xx))) - Point fixe</li>
<li>K ou T ≡ (lxy.x) - Vrai</li>
<li>F ≡ (lxy.y) - Faux</li>
<li>J ≡ (labcd.ab(adc))</li>
<li>C ≡ (lxyz.xzy) </li>
</ul>
</div>
<div id="examples">
<h5> Exemples</h5>
</div>
</div>
<script src="lambda_display.js"></script>
</body>
</html>