about summary refs log tree commit diff stats
path: root/lisp
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2023-12-07 18:49:46 -0500
committerelioat <elioat@tilde.institute>2023-12-07 18:49:46 -0500
commitf270049491626b47badeef792beb8963c9661f49 (patch)
tree2b169f0ba16db7d86afdac86b7408a8cf29fc2bc /lisp
parent0b0c398d5710172e34f11fa6baa13288ebd6a5e1 (diff)
downloadtour-f270049491626b47badeef792beb8963c9661f49.tar.gz
*
Diffstat (limited to 'lisp')
-rw-r--r--lisp/js/README.md2
-rw-r--r--lisp/js/l.html2
-rw-r--r--lisp/js/lisp.js2
3 files changed, 3 insertions, 3 deletions
diff --git a/lisp/js/README.md b/lisp/js/README.md
index add85c9..e49585e 100644
--- a/lisp/js/README.md
+++ b/lisp/js/README.md
@@ -23,7 +23,7 @@ To run in the browser:
 	<script>
 		const ret = lisp.run(
 			`(print 
-				(add 3 3))`
+				(+ 3 3))`
 			);
 	</script>
 </body>
diff --git a/lisp/js/l.html b/lisp/js/l.html
index cd716f3..f1e27b2 100644
--- a/lisp/js/l.html
+++ b/lisp/js/l.html
@@ -25,7 +25,7 @@
 
 		(print bar)
 
-		(defn bird
+		(fn bird
 			(s t)
 			(concat s t))
 
diff --git a/lisp/js/lisp.js b/lisp/js/lisp.js
index 36b691d..5f7c550 100644
--- a/lisp/js/lisp.js
+++ b/lisp/js/lisp.js
@@ -272,7 +272,7 @@
       context.scope[identifier] = interpret(value, context);
       return value;
     },
-    defn: function (input, context) {
+    fn: function (input, context) {
       const fnName = input[1].value;
       const fnParams = input[2].type === TYPES.string && input[3]
         ? input[3]