blob: f1e27b238c94814441e3165fef84e6d14b803bbc (
plain) (
tree)
|
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>lisp</title>
<script src="lisp.js" type="text/javascript"></script>
</head>
<body>
<script>
// note the surrounding parentheses!
// these are important and necessary (for now)
const a = `(
(print
(concat "banana " "oatmeal " "waffels"))
(def foo
(+ 1 2))
(print foo)
(def bar
(+ (+ 3 3) 3))
(print bar)
(fn bird
(s t)
(concat s t))
(print
(bird "tweet " "twoot"))
)`;
const ret = lisp.run(a);
</script>
</body>
</html>
|