This directory contains an Unlambda interpreter written in C.  It is
made to be used with the Hans Boehm conservative C/C++ garbage
collector, which you can find on
http://www.hpl.hp.com/personal/Hans_Boehm/gc/ (or on
http://reality.sgi.com/boehm/gc.html if the former doesn't work).  Two
compiled versions are included in the directory: one for
i686-gnu-linux with glibc 2.1.1 at least and one for
sparc-sun-solaris2.5 (has been tested on Solaris 2.5, 2.6 and 7).
They are statically linked with the garbage collector.


To compile use

  $CC $CFLAGS -o unlambda unlambda.c -I$INCPATH $BOEHMGC

where $CC is your C compiler (for example, gcc), $CFLAGS are your
favorite compilation options (I suggest -O6 -Wall -ansi), $INCPATH is
the path to the gc.h file which came with the Boehm GC and $BOEHMGC is
the gc.a file itself for the Boehm GC.


To run, use

  ./unlambda inputfile.unl

where inputfile.unl is the Unlambda source program.  If no file is
specified, the interpreter will read it from the standard input (in
which case the program's input, if any, should come after the program
itself).
