A Lisp dialect designed for codingworkshops
(defunc fib (n)
(var a 0) (var b 1) (var f 1)
(defunc calc-fib (i)
(if (<= i n)
(do
(set f (+ a b))
(set a b)
(set b f)
(calc-fib (+ i 1)))
f))
(calc-fib 2))
(= (fib 10) 55)cd examples
elm reactorNavigate to http://localhost:8000/Main.elm
import Lisa
doParse source =
case Lisa.processString source of
Ok program ->
-- do something with program
Err err ->
Err errThis project is licensed under the GPL v3. See the LICENSE file for more details.