about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--fnl/.clj-kondo/.cache/v1/cljs/user-activate.transit.json1
-rw-r--r--fnl/.clj-kondo/.cache/v1/lock0
-rw-r--r--fnl/.lsp/.cache/db.transit.json1
-rw-r--r--fnl/play.fnl2
-rw-r--r--lisp/js/README.md2
-rw-r--r--lisp/js/l.html4
-rw-r--r--lisp/js/lisp.js16
7 files changed, 14 insertions, 12 deletions
diff --git a/fnl/.clj-kondo/.cache/v1/cljs/user-activate.transit.json b/fnl/.clj-kondo/.cache/v1/cljs/user-activate.transit.json
new file mode 100644
index 0000000..6cf77d0
--- /dev/null
+++ b/fnl/.clj-kondo/.cache/v1/cljs/user-activate.transit.json
@@ -0,0 +1 @@
+["^ ","~$!db",["^ ","~:row",51,"~:col",1,"~:name","^0","~:ns","~$user-activate","~:top-ns","^5"],"~$clear-disposables!",["^ ","~:fixed-arities",["~#set",[0]],"~:private",true,"^4","^5","^3","^7","~:type","~:fn","^2",1,"^6","^5","^1",56],"~$push-disposable!",["^ ","^8",["^9",[1]],"^:",true,"^4","^5","^3","^=","^;","^<","^2",1,"^6","^5","^1",65],"~$register-problem-hover",["^ ","^8",["^9",[0]],"^:",true,"^4","^5","^3","^>","^;","^<","^2",1,"^6","^5","^1",71],"~$my-main",["^ ","^8",["^9",[0]],"^:",true,"^4","^5","^3","^?","^;","^<","^2",1,"^6","^5","^1",81],"~:filename","/Users/eli/.config/joyride/scripts/user_activate.cljs"]
\ No newline at end of file
diff --git a/fnl/.clj-kondo/.cache/v1/lock b/fnl/.clj-kondo/.cache/v1/lock
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/fnl/.clj-kondo/.cache/v1/lock
diff --git a/fnl/.lsp/.cache/db.transit.json b/fnl/.lsp/.cache/db.transit.json
new file mode 100644
index 0000000..912ced4
--- /dev/null
+++ b/fnl/.lsp/.cache/db.transit.json
@@ -0,0 +1 @@
+["^ ","~:classpath",["~#set",[]],"~:project-hash","","~:project-root","/Users/eli/Code/institute/tour/fnl","~:kondo-config-hash","cb38df931b21d76fb3e12b491958fb09626c7e6747cc3d10da8b7a53b0b2ec1a","~:dependency-scheme","jar","~:analysis",null,"~:analysis-checksums",["^ "],"~:project-analysis-type","~:project-and-full-dependencies","~:version",11,"~:stubs-generation-namespaces",["^1",[]]]
\ No newline at end of file
diff --git a/fnl/play.fnl b/fnl/play.fnl
index 45a8fbe..ca84e31 100644
--- a/fnl/play.fnl
+++ b/fnl/play.fnl
@@ -47,4 +47,4 @@ newtable ; -> { :jkl 999 :qrs 147 :tuv 258 }
 (lume.split "diode,capacitor,switch" ",") ; -> ["diode" "capacitor" "switch"]
 
 ;; generate a QUID and return a string representation:
-(lume.uuid) ; -> "d6cce35c-487a-458f-aab2-9032c2621f38"
+(lume.uuid) ; -> "d6cce35c-487a-458f-aab2-9032c2621f38"
\ No newline at end of file
diff --git a/lisp/js/README.md b/lisp/js/README.md
index 2f10a7e..add85c9 100644
--- a/lisp/js/README.md
+++ b/lisp/js/README.md
@@ -30,7 +30,7 @@ To run in the browser:
 </html>
 ```
 
-`lisp.run()` is a convinence, it wraps `lisp.interpret(lisp.parse())`. 
+`lisp.run()` is a convenience, it wraps `lisp.interpret(lisp.parse())`. 
 
 See also: 
 
diff --git a/lisp/js/l.html b/lisp/js/l.html
index 9784596..cd716f3 100644
--- a/lisp/js/l.html
+++ b/lisp/js/l.html
@@ -16,12 +16,12 @@
 			(concat "banana " "oatmeal " "waffels"))
 
 		(def foo
-			(add 1 2))
+			(+ 1 2))
 
 		(print foo)
 
 		(def bar
-			(add (add 3 3) 3))
+			(+ (+ 3 3) 3))
 
 		(print bar)
 
diff --git a/lisp/js/lisp.js b/lisp/js/lisp.js
index ee2b88d..3adb154 100644
--- a/lisp/js/lisp.js
+++ b/lisp/js/lisp.js
@@ -17,23 +17,23 @@
     },
 
     // math
-    add: (...args) => {
+    '+': (...args) => {
       return args.reduce((sum, val) => sum + val);
     },
 
-    sub: (...args) => { // Subtracts values.
+    '-': (...args) => { // Subtracts values.
       return args.reduce((sum, val) => sum - val);
     },
 
-    mul: (...args) => { // Multiplies values.
+    '*': (...args) => { // Multiplies values.
       return args.reduce((sum, val) => sum * val);
     },
 
-    div: (...args) => { // Divides values.
+    '/': (...args) => { // Divides values.
       return args.reduce((sum, val) => sum / val);
     },
 
-    mod: (a, b) => { // Returns the modulo of a and b.
+    '%': (a, b) => { // Returns the modulo of a and b.
       return a % b;
     },
 
@@ -78,15 +78,15 @@
     },
 
     // logic
-    gt: (a, b) => { // Returns true if a is greater than b, else false.
+    '>': (a, b) => { // Returns true if a is greater than b, else false.
       return a > b;
     },
 
-    lt: (a, b) => { // Returns true if a is less than b, else false.
+    '<': (a, b) => { // Returns true if a is less than b, else false.
       return a < b;
     },
 
-    eq: (a, b) => { // Returns true if a is equal to b, else false.
+    '=': (a, b) => { // Returns true if a is equal to b, else false.
       return a === b;
     },