Lisp interpreter written in C.
By REPL, compute the 10th term of the Fibonacci sequence:
$ make run
tisp> (defun fibo (n) (if (< n 3) 1 (+ (fibo (- n 1)) (fibo (- n 2)))))
fibo
tisp> (fibo 10)
55
You can run REPL by running
$ make run
on top of the source tree.
You can do all unittests by running
$ make test
on top of the source tree.
The unittests are defined in test/main.py
.
- Python3 (for test)