home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / PASCAL / VALZAH.ZIP / ABSTRACT.014 < prev    next >
Encoding:
Text File  |  1987-01-11  |  3.4 KB  |  104 lines

  1.  
  2. Contents of this disk
  3. =====================
  4.  
  5. Both playkal.pas and hw5.pas are solutions to programming assignments
  6. for my computer science classes at the University of Illinos.  They are
  7. included here to show how to build trees when you don't have pointers.
  8. They also illustrate a kludgey way of simulating Pascal records when you
  9. don't have them either.
  10.  
  11. stirling.pas is included to show a kludgey way to do output formatting.
  12.  
  13.                 Bob Van Valsah
  14.  
  15. ====> PPC.COM, PFET.COM and related files comprise
  16. Bob Van Valsah's Pascal compiler.  It is a compiler
  17. for a subset of the Pascal programming language, written
  18. in Pascal and can compile itself.
  19.      The sample programs that I compiled worked as they
  20. should.  The Eight Queens program (EQ.PAS) printed a bunch of
  21. permutations of the digits 1 to 8 tho I didn't get out
  22. my chess board and check them.
  23.      POWTWO.PAS prints the negative powers of two from .5 to
  24. .0009765625 (2**-1...2**-10).
  25.      The compiler was a class assignment for one of Bob's
  26. classes.  It is very well documented as to how to use the
  27. compiler and the specific subset it compiles (it even has
  28. some of Bob's usual creative misspellings).
  29.      Those interested in the innards of compilers or large
  30. programs in general should find this interesting.
  31.      Abstract by Paul Krystosek
  32.  
  33.  
  34. Notes on regenerating the compiler
  35. ==================================
  36.  
  37. When reassembling the runtime package, do not use LOAD to create RTP.COM.
  38. Instead, you must use a debugger and do the following:
  39.  
  40. 1) Assemble RTP.ASM to produce RTP.HEX.  Make note of the final code
  41.    address printed by the assembler.  RTP.COM should go up to this
  42.    address minus 1.
  43.  
  44. 2) Fire up your favorite debugger (DDT will do).
  45.  
  46. 3) Fill memory with 0's.  100h - 1000h should do.
  47.  
  48. 4) Now you can read in RTP.HEX, sta Group disk #40, useful for checking differences
  49. between different versions of the same program.
  50.  
  51.     EQ.COM -- Compiled output of EQ.PAS, the eight queens
  52. chess problem, written by Bob.
  53.  
  54.     EQ.PAS -- Source code in Pascal to print out all solutions
  55. to the eight-queens chess problem.
  56.  
  57.     FWD.PAS -- Sample Pascal Program.
  58.  
  59.     HW5.COM -- Sample program.
  60.  
  61.     HW5.PAS -- Sample PASCAL program to build an optimal search
  62. tree and decode a message.
  63.  
  64.     HW5DATA. -- Sample data for above program.
  65.  
  66.     PASYNTAX.DOC -- Bob's notes on PASCAL syntax.
  67.  
  68.     PC.SUB -- Submit file for compiling from .PAS file to .COM file.
  69.  
  70.     PFET.COM -- Part of PPC compiler package.
  71.  
  72.     PFET.PAS -- Source code for the PFET portion of the compiler
  73. package (compiles P-code into object code).
  74.  
  75.     PLAYDATA. -- data for following program.
  76.  
  77.     PLAYKAL.PAS -- Sample program to determine best moves in a game
  78. of Kalah (Anybody know how to play Kalah?)
  79.  
  80.     POPS.DOC -- Bob's documentation on the P-codes used by the
  81. compiler.
  82.  
  83.     POWTWO.PAS -- Sample program to print out the negative powers of 2.
  84.  
  85.     PPC.COM -- PASCAL PASCAL COMPILER.
  86.  
  87.     PPC.DOC -- Documentation on the compiler.
  88.  
  89.     PPC.PAS -- Pascal Source code for the compiler.
  90.  
  91.     PSTACK.DOC -- Documentation on the stack operations of the
  92. run-time P-machine.
  93.  
  94.     REGEN.DOC -- Notes on how to modify and recompile the compiler.
  95.  
  96.     RSPEED.COM -- Object of above.
  97.  
  98.     RTP.COM -- Run Time Package Object code file.
  99.  
  100.     STIRLING.PAS -- Sample program to generate Stirling numbers.
  101.  
  102.     TESTER.PAS -- Sample program.
  103.  
  104.