Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xudifsd/libsi

C library for interpreting scheme
https://github.com/xudifsd/libsi

Last synced: 18 days ago
JSON representation

C library for interpreting scheme

Awesome Lists containing this project

README

        

libsi
=====

C library for interpret scheme

##install library
$ sudo apt install flex libgc-dev
$ make && sudo make install

it also includes a tiny demo which is under `si` directory
##compile demo

$ make demo

##try demo
because demo could not use libreadline itself(libreadline and libgc both use heap),
so recommend you use following command:

$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/
$ cd si && rlwrap ./si

In demo, you could try following function

si> (map (lambda (x) (+ x 20)) '(1 2 3))
si> (map (lambda (x) (let ((a (+ x 1)) (b (+ x 2))) (+ a b))) '(1 2 3))

Hope you enjoy it.

Dependency
=====

The library itself requires `libgc` and `libm`