Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 703 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 703 Bytes

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