home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / pascal / utility / tp4tools / read.me < prev    next >
Encoding:
Text File  |  1988-04-28  |  3.3 KB  |  97 lines

  1. The  p-pascal directory on this diskette contains DOS ".exe" files for
  2. the standard portable Pascal compiler and its p-code interpretor.  The
  3. reference for these two programs is in the book: 
  4.  
  5.      Pemberton, S. Pascal  Implementation.  Ellis-Horwood  Publishers,
  6.        Ltd., England, 1981.
  7.  
  8. The Pascal programs listed in the above book have been translated into
  9. ANSI C programs that use huge pointer arrays and compiled to run under
  10. the DOS 3.2 operating system. 
  11.  
  12.  
  13. NOTE ON USING THE COMPILER:
  14.  
  15. This implementation limits Pascal sets to 64 members and strings to no
  16. more than 11 characters apiece. 
  17.  
  18. Some  small  source  program  examples  are  included in the "samples"
  19. directory on this diskette. They illustrate the lower case  input  re-
  20. quired by the compiler and the required command parameters.
  21.  
  22. Note in particular that using (*$c+*) causes programs to be  compiled.
  23. Without  the  c+  present, the compiler only checks for errors without
  24. generating code. 
  25.  
  26. Command line calling sequences for the compiler and interpretor are as
  27. described below.
  28.  
  29. For the compiler:
  30.  
  31. compiler  your_source_code.inp  p_code_output.prr
  32.  
  33. or
  34.  
  35. compiler con  p_code_output.prr
  36.  
  37. The above command line illustrates how source programs can be typed in
  38. from the keyboard if "con" is used as an argument on the compiler com-
  39. mand  line;  but editing is limited to the current line only. Refer to
  40. the DOS manual description of the "copy con output_file"  command  for
  41. information about how to use the console keyboard for program input to
  42. the  compiler.  In particular, "control-Z" or ^Z is used as the end of
  43. file mark to terminate source programs.
  44.  
  45. The  file  extensions  ".prr"  and ".prd" refer to the Pascal compiler
  46. listings in the above book. ".pas" and ".pcd" are just handy mnemonics
  47. and are not required as file extensions. 
  48.  
  49. Compiler listings are sent to the screen, unless DOS  I/O  redirection
  50. is used:
  51.  
  52. compiler source.pas  object.pcd  >  lpt1 (* parallel printer *)
  53.  
  54. or
  55.  
  56. compiler source.pas  object.pcd  >  com1 (* serial printer *)
  57.  
  58. or
  59.  
  60. compiler source.pas  object.pcd  >  a:listing.asc
  61.  
  62.  
  63. NOTES ON USING THE INTERPRETOR:
  64.  
  65. For the interpretor:
  66.  
  67. interpretor  p_code_input.prd  temp_file.prr
  68.  
  69. or
  70.  
  71. interpretor  p_code_input.pcd  temp_file.prr
  72.  
  73. The interpretor also has  available  the  standard  Pascal  input  and
  74. output  files,  known  in  the  C  language  as  stdin  and stdout. So
  75. programs compiled for the interpretor can access up to three files.
  76.  
  77. Note that the interpretor has  some  limitations,  most  important  of
  78. which  is  that strings are limited to 11 characters at present. Also,
  79. sets can have up to 64 members. This is a relatively  complete  Pascal
  80. otherwise.  It  is  intended as a teaching system, with the p-code in-
  81. terpretor to be used by students in compiler courses. Thus, the p-code
  82. output from the compiler is in ascii format, so that  it  can  be  in-
  83. spected and compared with the source code and used in conjunction with
  84. the listings in the above book. 
  85.  
  86. Compiler  error  messages  use the error number format that appears in
  87. the book
  88.      Jensen,  K.  and  Wirth,  N.  Pascal  User  Manual  and   Report.
  89.      Springer Publishing Co., 1974.
  90.  
  91. C source listings are available for a small charge from
  92.  
  93. Victor Schneider
  94. 291 Summit Avenue
  95. Brighton, MA 02146 USA
  96.  
  97.