-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlisp.html
More file actions
40 lines (35 loc) · 1.02 KB
/
lisp.html
File metadata and controls
40 lines (35 loc) · 1.02 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Lisp Interpreter</title>
<link rel="stylesheet"
href="//cdn.rawgit.com/milligram/milligram/master/dist/milligram.min.css">
<style>
textarea { width: 100%; height: 200px; }
#input, #output, #console, #environment { font-family: monospace; }
.error { color: red; }
</style>
</head>
<body>
<h1>Lisp Interpreter</h1>
<h2>Program</h2>
<textarea id="input">
(define (fib n)
(if (<= n 1)
1
(+ (fib (- n 1)) (fib (- n 2)))))
(fib 10)
</textarea>
<input type="submit" id="evaluate" value="Evaluate"/>
<h2>Output</h2>
<p id="output"></p>
<h3>Console</h3>
<p id="console"></p>
<h3>Environment</h3>
<p id="environment"></p>
<script src="lisp.dart.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-QK0KCHXW3F"></script>
<script>window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'G-QK0KCHXW3F');</script>
</body>
</html>