File: README

package info (click to toggle)
unlambda 2.0.0-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, sarge
  • size: 2,136 kB
  • ctags: 408
  • sloc: ansic: 1,484; perl: 527; java: 408; lisp: 375; ml: 199; makefile: 46
file content (30 lines) | stat: -rw-r--r-- 1,146 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
This directory contains an Unlamba interpreter written in Java.  This
is presumably the most pedagogical one, and it is *very* lengthily
commented, so you should probably start by reading it if you want to
know how an Unlambda interpreter is to be written.  This directory
also contains the compiled Java classes for this interpreter (to run
it, put them in a directory called unlambda/ below your classpath, and
run the Execute.main method).

The source is in unlambda.java (yes, I know I should have written one
source file per class, but this is just sooo pointless).  The ,v file
is the associated RCS version control file.  The .java files are the
(bytecode) compiled classes.

This should work with any version of Java.


If you need to (re)compile the source, do

  javac unlambda.java


To run it, put the files in $SOMEWHERE/unlambda/ where $SOMEWHERE is
in your $CLASSPATH, and run

  java unlambda.Execute 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).