chicode/lisa/3.0.2

NOTE: the latest version is 5.1.5

Lisa

A Lisp dialect designed for codingworkshops

Example

(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)

Running examples

cd examples
elm reactor

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

Usage

import Lisa

doParse source =
    case Lisa.processString source of
        Ok program ->
            -- do something with program

        Err err ->
          Err err

License

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