scheme package 1.1


1 - What is scheme package?

scheme package is a Java package which provides a Scheme language kernel. ScmLoader, ScmInterpreter and ScmApplet are three examples of how to use this package.
It contains:

2 - What sort of Scheme does it implement?

When you use the class scheme.kernel.ScmStandardKernel, the Scheme language implemented is r4rs compliant with some limitations: scheme.extensions.ScmExtendedKernel inherits from the previous kernel and adds some extensions:

3 - The examples.

    All the examples use the class ScmExtendedInterpreter to evaluate Scheme expressions. As mentioned above, this class adds features to the standard kernel. It is itself an example that shows how to create a new Scheme kernel with new predefined procedures written in Java.

    a - ScmInterpreter.

        This application is defined in 'ScmInterpreter.java'. It implements a simple Scheme language interactive interpreter. When executed, it searchs for the file 'Scheme.scm' in the current directory, loads and runs it, and starts a top-level loop.

    b - ScmLoader.

        Defined in 'ScmLoader.java', this application only loads and runs the Scheme source files given on the command line.

    c - ScmApplet.

        This applet is defined in 'ScmApplet.java'. It is a simple applet that allows user to interactively evaluate Scheme expressions. You can run this applet by opening 'SchemeApplet.html' in your favorite HTML browser. You must first create 'scm.jar' (just type 'make jar' on the command line, or see the command in the file 'Makefile' if you do not have the make command installed on you system.


 Stéphane Hillion - 1998