
 --------  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 benchmark program.
                on linux & cygwin, use /proc/uptime for a timer, so run with a
                command like this:

                        ./dhry /proc/uptime


whet.pas	another classic benchmark 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	demo for console.inc.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.


sheep.pas	simple sheepdog game, using code from console.inc.pas


eliza.pas       the classic conversation program


dirDemo.pas	file and directory listing program
                assumes posix environment

plot.pas        enter a function, call gnuplot to show it on a graph
                shows how to call other programs from pascal
                needs gnuplot installed

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


basic.p		chipmunk basic
basic.txt

lander.bas	basic game - moonlander
wumpus.bas	basic game - hunt the wumpus

pxg.inc.pas	simple knowledge base generator
pxg.pas
test.kdb

rtest.pas       test randomness of various random number functions
