Rxi/aria: A tiny, embeddable lisp-shaped language implemented in C89

LauriSticht 9年前

来自: https://github.com/rxi/aria

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. SeeLICENSE for details.