
 --------  example programs and demos  --------


superpascal/    concurrent programming dialect of pascal

adventure.pas   simple adventure game, easy to follow and modify

e.pas		calculate e, the base of natural logarithms, to thousands of
                decimal places


sieve.pas	find prime numbers, demonstrates very large set sizes.
                Currently set for primes up to 50000, but compiling with
                maximum optimisation, ie

                         $P5CDIR/p5c -O3 sieve

                can find primes up to 500000 in a few seconds with even modest
                hardware.


paranoia.pas	determine quality of your floating point library


dynstr.pas	abstract strings


dhry.pas	classic benchnark program.
                on linux & cygwin, use /proc/uptime for a timer, so run with a
                command like this:

                        ./dhry /proc/uptime


whet.pas	another classic benchnark program
                use /proc/uptime for a timer


bench.p         stanford baby benchmark, from DEC's western research labs
                not so well known as the other benchmarks here. Less likey to
                have compilers tuned to run it faster, so might provide a better
                comparison of relative performance.
                use /proc/uptime for a timer


console.pas	console i/o with screen colours, unbuffered keypress,
                cursor positioning, etc
                implements features similar to those provided by
                turbo pascal's crt unit.
                assumes ansi console codes and posix environment - so if
                you're running under mingw try xterm instead of the default console.


dirDemo.pas	file and directory listing program
                assumes posix environment


plzero.pas      simple compiler for pascal like language.
                If you're interested to know how compilers work, google plzero.

test.pl0        test program for plzero.pas

test.exp        expected output for test.pl0

