linneman / tinyscheme

illustration how to embed TinyScheme within C programs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Illustration how to embed TinyScheme within a C program

TinyScheme is a lightweight Scheme interpreter written by Dimitrios Souflis and Kevin Cozens. Please refer to the project website for more detailed information about this specific scheme implementation.

This project is an out of the box illustration how to build the interpreter as a dynamic link library under an Unix operating system (Linux, BSD, Mac OS X).

Build and Install Shared Library

$ autoreconf -i
$ ./configure
$ make
$ make install (requires admin credentials)

Build and Run Sample Application

$ cd example
$ autoreconf -i
$ ./configure
$ make
$ ./tsrepl -c

The sample program reads endlessly lines from stdin and evaluates them within a scheme interpreter instance. Alternatively the repl can be started up in server mode by leaving out the option '-c'. Use the following line to connect remotely:

$ telnet <host-addresse> 37146

2015-09-09, Otto Linnemann

About

illustration how to embed TinyScheme within C programs

License:Other


Languages

Language:C 75.1%Language:Scheme 10.8%Language:C++ 10.2%Language:M4 3.5%Language:Makefile 0.4%