rxi / aria

A tiny, embeddable lisp-shaped language implemented in C89

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  • Supports numbers (floats), symbols, strings, pairs, lambdas, macros
  • Stack tracebacks with filename and line numbers on error
  • Exception-like error handling
  • Simple implementation and garbage collector
  • Easy-to-use C API

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.

About

A tiny, embeddable lisp-shaped language implemented in C89

License:MIT License


Languages

Language:C 82.7%Language:Common Lisp 16.5%Language:NewLisp 0.6%Language:Shell 0.2%