MiniLisp
A Lisp interpreter compiled to WebAssembly with runtime function definitions
Loading WASM...
Saved Functions
No functions defined yet
Built-in operations:
(+ 1 2 3)
(* 6 7)
(- 100 (* 2 (+ 10 20)))
(/ 42 6)
(car '(1 2 3))
(< 5 10)
(if (< 5 10) 1 0)
Define functions (saved to localStorage):
(defun square (x) (* x x))
(square 7)
(defun abs (x) (if (< x 0) (- 0 x) x))
(abs -42)
(defun factorial (n) (if (< n 2) 1 (* n (factorial (- n 1)))))
(factorial 6)