home *** CD-ROM | disk | FTP | other *** search
-
- Contents of this disk
- =====================
-
- Both playkal.pas and hw5.pas are solutions to programming assignments
- for my computer science classes at the University of Illinos. They are
- included here to show how to build trees when you don't have pointers.
- They also illustrate a kludgey way of simulating Pascal records when you
- don't have them either.
-
- stirling.pas is included to show a kludgey way to do output formatting.
-
- Bob Van Valsah
-
- ====> PPC.COM, PFET.COM and related files comprise
- Bob Van Valsah's Pascal compiler. It is a compiler
- for a subset of the Pascal programming language, written
- in Pascal and can compile itself.
- The sample programs that I compiled worked as they
- should. The Eight Queens program (EQ.PAS) printed a bunch of
- permutations of the digits 1 to 8 tho I didn't get out
- my chess board and check them.
- POWTWO.PAS prints the negative powers of two from .5 to
- .0009765625 (2**-1...2**-10).
- The compiler was a class assignment for one of Bob's
- classes. It is very well documented as to how to use the
- compiler and the specific subset it compiles (it even has
- some of Bob's usual creative misspellings).
- Those interested in the innards of compilers or large
- programs in general should find this interesting.
- Abstract by Paul Krystosek
-
-
- Notes on regenerating the compiler
- ==================================
-
- When reassembling the runtime package, do not use LOAD to create RTP.COM.
- Instead, you must use a debugger and do the following:
-
- 1) Assemble RTP.ASM to produce RTP.HEX. Make note of the final code
- address printed by the assembler. RTP.COM should go up to this
- address minus 1.
-
- 2) Fire up your favorite debugger (DDT will do).
-
- 3) Fill memory with 0's. 100h - 1000h should do.
-
- 4) Now you can read in RTP.HEX, sta Group disk #40, useful for checking differences
- between different versions of the same program.
-
- EQ.COM -- Compiled output of EQ.PAS, the eight queens
- chess problem, written by Bob.
-
- EQ.PAS -- Source code in Pascal to print out all solutions
- to the eight-queens chess problem.
-
- FWD.PAS -- Sample Pascal Program.
-
- HW5.COM -- Sample program.
-
- HW5.PAS -- Sample PASCAL program to build an optimal search
- tree and decode a message.
-
- HW5DATA. -- Sample data for above program.
-
- PASYNTAX.DOC -- Bob's notes on PASCAL syntax.
-
- PC.SUB -- Submit file for compiling from .PAS file to .COM file.
-
- PFET.COM -- Part of PPC compiler package.
-
- PFET.PAS -- Source code for the PFET portion of the compiler
- package (compiles P-code into object code).
-
- PLAYDATA. -- data for following program.
-
- PLAYKAL.PAS -- Sample program to determine best moves in a game
- of Kalah (Anybody know how to play Kalah?)
-
- POPS.DOC -- Bob's documentation on the P-codes used by the
- compiler.
-
- POWTWO.PAS -- Sample program to print out the negative powers of 2.
-
- PPC.COM -- PASCAL PASCAL COMPILER.
-
- PPC.DOC -- Documentation on the compiler.
-
- PPC.PAS -- Pascal Source code for the compiler.
-
- PSTACK.DOC -- Documentation on the stack operations of the
- run-time P-machine.
-
- REGEN.DOC -- Notes on how to modify and recompile the compiler.
-
- RSPEED.COM -- Object of above.
-
- RTP.COM -- Run Time Package Object code file.
-
- STIRLING.PAS -- Sample program to generate Stirling numbers.
-
- TESTER.PAS -- Sample program.
-