about summary refs log tree commit diff stats
path: root/lisp/js
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/js')
-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]