rxi / aria

A tiny, embeddable lisp-shaped language implemented in C89
MIT License
169 stars 16 forks source link

aria

A tiny, easily embeddable lisp-shaped language implemented in C89.

(do

  (= fib (fn (n)
    (if (>= n 2)
        (+ (fib (- n 1)) (fib (- n 2)))
        n)))

  (print (fib 20))) ; prints 6765

Overview

License

This library is free software; you can redistribute it and/or modify it under the terms of the MIT license. See LICENSE for details.