home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / bsd_srcs / share / doc / ps1 / 04.pascal / puman0.n < prev    next >
Encoding:
Text File  |  1991-04-17  |  5.2 KB  |  155 lines

  1. .\" Copyright (c) 1980 The Regents of the University of California.
  2. .\" All rights reserved.
  3. .\"
  4. .\" Redistribution and use in source and binary forms, with or without
  5. .\" modification, are permitted provided that the following conditions
  6. .\" are met:
  7. .\" 1. Redistributions of source code must retain the above copyright
  8. .\"    notice, this list of conditions and the following disclaimer.
  9. .\" 2. Redistributions in binary form must reproduce the above copyright
  10. .\"    notice, this list of conditions and the following disclaimer in the
  11. .\"    documentation and/or other materials provided with the distribution.
  12. .\" 3. All advertising materials mentioning features or use of this software
  13. .\"    must display the following acknowledgement:
  14. .\"    This product includes software developed by the University of
  15. .\"    California, Berkeley and its contributors.
  16. .\" 4. Neither the name of the University nor the names of its contributors
  17. .\"    may be used to endorse or promote products derived from this software
  18. .\"    without specific prior written permission.
  19. .\"
  20. .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  21. .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  22. .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  23. .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  24. .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  25. .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  26. .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  27. .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  28. .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  29. .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  30. .\" SUCH DAMAGE.
  31. .\"
  32. .\"    @(#)puman0.n    6.3 (Berkeley) 4/17/91
  33. .\"
  34. .so tmac.p
  35. .EH 'PS1:4-%''Berkeley Pascal User\'s Manual'
  36. .OH 'Berkeley Pascal User\'s Manual''PS1:4-%'
  37. .TL
  38. Berkeley Pascal User's Manual
  39. .br
  40. Version 3.1 \- April 1986
  41. .AU
  42. William N. Joy\(dd, Susan L. Graham, Charles B. Haley\(dd,
  43. Marshall Kirk McKusick, and Peter B. Kessler\(dd
  44. .AI
  45. Computer Science Division
  46. .if n Department of Electrical Engineering
  47. .if n and Computer Science
  48. .if t Department of Electrical Engineering and Computer Science
  49. University of California, Berkeley
  50. Berkeley, California  94720
  51. ...AI
  52. ...MH
  53. .AB
  54. .FS
  55. Copyright 1977, 1979, 1980, 1983
  56. W. N. Joy, S. L. Graham, C. B. Haley, M. K. McKusick, P. B. Kessler
  57. .FE
  58. .FS
  59. \(ddAuthor's current addresses:
  60. William Joy: Sun Microsystems, 2550 Garcia Ave., Mountain View, CA 94043;
  61. Charles Haley: S & B Associates, 1110 Centennial Ave., Piscataway, NJ  08854;
  62. Peter Kessler: Xerox Research Park, Palo Alto, CA
  63. .FE
  64. .PP
  65. Berkeley
  66. Pascal
  67. is designed for interactive instructional use
  68. and runs on the \s-2PDP\s0/11 and \s-2VAX\s0/11 computers.
  69. Interpretive code is produced,
  70. providing fast translation at the expense of slower execution speed.
  71. There is also a fully compatible compiler for the \s-2VAX\s0/11.
  72. An execution profiler and
  73. Wirth's cross reference program are also
  74. available with the system.
  75. .PP
  76. The system supports full Pascal.
  77. The language accepted is 
  78. `standard' Pascal,
  79. and a small number of extensions.
  80. There is an option to suppress the extensions.
  81. The extensions include a separate compilation facility
  82. and the ability to link to object modules
  83. produced from other source languages.
  84. .PP
  85. The
  86. .UM
  87. gives a list of sources relating to the
  88. .UX
  89. system, the Pascal language, and the
  90. .UP
  91. system.
  92. Basic usage examples are provided for the Pascal components
  93. .PI ,
  94. .X ,
  95. .IX ,
  96. .PC ,
  97. and
  98. .XP .
  99. Errors commonly encountered in these programs are discussed.
  100. Details are given of special considerations due to the
  101. interactive implementation.
  102. A number of examples are provided including many dealing with
  103. input/output.  An appendix supplements Wirth's
  104. .I "Pascal Report"
  105. to form the full definition of the Berkeley implementation of the language.
  106. .AE
  107. .sp
  108. .SH
  109. 'if n 'ND
  110. Introduction
  111. .PP
  112. The
  113. .UP
  114. .UM
  115. consists of five major sections and an appendix.
  116. In section 1 we give sources of information about 
  117. .UX ,
  118. about the programming
  119. language Pascal, and about the
  120. Berkeley
  121. implementation of the language.
  122. Section 2 introduces the
  123. Berkeley
  124. implementation and provides a number of tutorial examples.
  125. Section 3 discusses the error diagnostics produced by the translators
  126. .PC
  127. and
  128. .PI ,
  129. and the runtime interpreter
  130. .X .
  131. Section 4 describes input/output with special attention given to features
  132. of the interactive implementation and to features unique to
  133. .UX .
  134. Section 5 gives details on the components of the system
  135. and explanation of all relevant options.
  136. The
  137. .UM
  138. concludes with an appendix to Wirth's
  139. .I "Pascal Report"
  140. with which it forms a precise definition of the implementation.
  141. .SH
  142. History of the implementation
  143. .PP
  144. The first
  145. Berkeley
  146. system was written by Ken Thompson in early 1976.
  147. The main features of the present system were implemented by
  148. Charles Haley and William Joy during the latter half of 1976.
  149. Earlier versions of this system have been in use since January, 1977.
  150. .PP
  151. The system was moved to the \s-2VAX\s0-11
  152. by Peter Kessler and Kirk McKusick
  153. with the porting of the interpreter in the spring of 1979,
  154. and the implementation of the compiler in the summer of 1980.
  155.