The programs in this directory show simple INTERCAL programs.

To run a program, use the command:

    perl eg/program

from the distribution top level directory. 
Remember that input must be in EBCDIC.

To obtain a program listing, use:

    perl eg/program list

The following examples are available:

hello    - prints "Hello, World"

turing   - emulates a Turing machine. See the comments at the beginning for
	   the input and output formats etc

factor   - factorises large numbers (it can also be used to break RSA keys:
	   the private key essentially consists of two large prime numbers,
	   and the public key is their product). Requires a quantum computer,
	   but will work with the emulator if you only use small numbers.

rpn      - a simple INTERCAL rpn calculator. You can enter numbers in binary,
           separate them with "e" (like the "ENTER^" key on HP calculators),
	   and use INTERCAL operators (unary &, V, ?; binary ~, $) to operate.
	   Use "q" to quit. If you have Term::Readkey installed, it'll read
	   one character at a time, otherwise one line at a time. The program
	   will print the top of the stack ("x" register of HP calculators)
	   every time it changes, or when it feels like doing it.

