Skip to content

Latest commit

History

69 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Lisa

A Lisp dialect designed for codingworkshops

Example

(defunc fib-recurse (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))
(defunc fib-while (n)
(var a 0) (var b 1) (var f 1)
(var i 2)
(while (<= i n)
(set f (+ a b))
(set a b)
(set b f)
(set i (+ i 1))
f))
(= (fib-recurse 10) (fib-while 10) 55)

Running examples

cd examples
elm reactor

Navigate to http://localhost:8000/Main.elm

Usage

importLisadoParse source =case Lisa.processString source ofOk program ->-- do something with programErr err ->Err err

License

This project is licensed under the GPL v3. See the LICENSE file for more details.

About

A Lisp dialect designed for codingworkshops

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages