about summary refs log tree commit diff stats
path: root/lisp/js/l.html
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/js/l.html')
-rw-r--r--lisp/js/l.html32
1 files changed, 28 insertions, 4 deletions
diff --git a/lisp/js/l.html b/lisp/js/l.html
index 2699c4e..06c4357 100644
--- a/lisp/js/l.html
+++ b/lisp/js/l.html
@@ -8,10 +8,34 @@
 </head>
 <body>
 	<script>
-		const ret = lisp.run(
-			`(print 
-				(add 3 3))`
-			);
+		// note the surrounding parentheses!
+		// these are important and necessary (for now)
+		const a = `(
+
+		(print
+			(concat "banana " "oatmeal " "waffels"))
+
+		(def foo
+			(add 1 2))
+
+		(print foo)
+
+		(def bar
+			(add (add 3 3) 3))
+
+		(print bar)
+
+		(defn bird
+			(s t)
+			(concat s t))
+
+		(print 
+			(bird "tweet " "twoot"))
+
+
+		)`;
+
+		const ret = lisp.run(a);
 	</script>
 </body>
 </html>
\ No newline at end of file