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 / puman1.n < prev    next >
Encoding:
Text File  |  1991-04-17  |  11.0 KB  |  450 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. .\"    @(#)puman1.n    6.2 (Berkeley) 4/17/91
  33. .\"
  34. .if !\n(xx \{\
  35. .so tmac.p \}
  36. .if n 'ND
  37. 'nr H1 0
  38. .NH
  39. Sources of information
  40. .PP
  41. This section lists the resources available
  42. for information about
  43. general features of
  44. .UX ,
  45. text editing,
  46. the Pascal language,
  47. and the
  48. .UP
  49. implementation,
  50. concluding with a list of references.
  51. The available documents include both so-called standard documents \-
  52. those distributed with all
  53. .UX
  54. system \-
  55. and documents (such as this one) written at Berkeley.
  56. .NH 2
  57. Where to get documentation
  58. .PP
  59. Current documentation for most of the
  60. .UX
  61. system is available ``on line'' at your terminal.
  62. Details on getting such documentation interactively are given
  63. in section 1.3.
  64. .NH 2
  65. Documentation describing UNIX
  66. .PP
  67. The following documents are those recommended as tutorial and
  68. reference material about the
  69. .UX
  70. system.
  71. We give the documents with the introductory and tutorial materials
  72. first, the reference materials last.
  73. .SH
  74. UNIX For Beginners \- Second Edition
  75. .PP
  76. This document is the basic tutorial for 
  77. .UX
  78. available with the standard system.
  79. .SH
  80. Communicating with UNIX
  81. .PP
  82. This is also a basic tutorial on the system and assumes
  83. no previous familiarity
  84. with computers; it was written at Berkeley.
  85. .SH
  86. An introduction to the C shell
  87. .PP
  88. This document introduces
  89. .I csh,
  90. the shell in common use at Berkeley, and provides a good deal of general
  91. description about the way in which the system functions.
  92. It provides a useful glossary of terms used in discussing the system.
  93. .SH
  94. UNIX Programmer's Manual
  95. .PP
  96. This manual is the major source of details on the components of the
  97. .UX
  98. system.
  99. It consists of an Introduction,
  100. a permuted index,
  101. and eight command sections.
  102. Section 1 consists of descriptions of most of the ``commands''
  103. of
  104. .UX .
  105. Most of the other sections have limited relevance to the user
  106. of
  107. Berkeley
  108. Pascal, being of interest mainly to system programmers.
  109. .PP
  110. U\s-2NIX\s0
  111. documentation often refers the reader to sections of the manual.
  112. Such a reference consists of a command name and a section number or name.
  113. An example of such a reference would be:
  114. .I ed
  115. (1).
  116. Here
  117. .I ed
  118. is a command name \- the standard
  119. .UX
  120. text editor, and `(1)' indicates that its documentation is in section 1 of the
  121. manual.
  122. .PP
  123. The pieces of the
  124. Berkeley
  125. Pascal system are
  126. .I pi
  127. (1),
  128. .X
  129. (1),
  130. the combined Pascal translator and interpretive executor
  131. .IX
  132. (1),
  133. the Pascal compiler
  134. .PC
  135. (1),
  136. the Pascal execution profiler
  137. .XP
  138. (1),
  139. and
  140. the Pascal cross-reference generator
  141. .I pxref
  142. (1).
  143. .PP
  144. It is possible to obtain a copy of a manual section
  145. by using the
  146. .I man
  147. (1) command.
  148. To get the Pascal documentation just described one could issue the
  149. command:
  150. .LS
  151. % \*bman pi\fP
  152. .LE
  153. to the shell.
  154. The user input here is shown in
  155. .B "bold face" ;
  156. the `% ',
  157. which was printed by the shell as a prompt,
  158. is not.
  159. Similarly the command:
  160. .LS
  161. % \*bman man\fP
  162. .LE
  163. asks the
  164. .I man
  165. command to describe itself.
  166. .NH 2
  167. Text editing documents
  168. .PP
  169. The following documents introduce the various
  170. .UX
  171. text editors.
  172. Most Berkeley users use a version of the text editor
  173. .I ex;
  174. either
  175. .I edit,
  176. which is a version of
  177. .I ex
  178. for new and casual users,
  179. .I ex
  180. itself,
  181. or
  182. .I vi
  183. (visual) which focuses on the display editing portion of
  184. .I ex.
  185. .SH
  186. A Tutorial Introduction to the UNIX Text Editor
  187. .PP
  188. This document, written by Brian Kernighan of Bell Laboratories,
  189. is a tutorial for the standard
  190. .UX
  191. text editor
  192. .I ed.
  193. It introduces you to the basics of text editing,
  194. and provides enough information to meet day-to-day editing needs,
  195. for
  196. .I ed
  197. users.
  198. .SH
  199. Edit: A tutorial
  200. .PP
  201. This introduces the use of
  202. .I edit,
  203. an editor similar to
  204. .I ed
  205. which provides a more hospitable environment for beginning users.
  206. .SH
  207. Ex/edit Command Summary
  208. .PP
  209. This summarizes the features of the editors
  210. .I ex
  211. and
  212. .I edit
  213. in a concise form.  If you have used a line oriented editor before
  214. this summary alone may be enough to get you started.
  215. .SH
  216. Ex Reference Manual \- Version 3.7
  217. .PP
  218. A complete reference on the features of
  219. .I ex
  220. and
  221. .I edit.
  222. .SH
  223. An Introduction to Display Editing with Vi
  224. .PP
  225. .I Vi
  226. is a display oriented text editor.  It can be used on most any \s-2CRT\s0
  227. terminal,
  228. and uses the screen as a window into the file you are editing.  Changes
  229. you make to the file are reflected in what you see.  This manual serves
  230. both as an introduction to editing with
  231. .I vi
  232. and a reference manual.
  233. .SH
  234. Vi Quick Reference
  235. .PP
  236. This reference card is a handy quick guide to
  237. .I vi;
  238. you should get one when you get the introduction to
  239. .I vi.
  240. .NH 2
  241. Pascal documents \- The language
  242. .PP
  243. This section describes the documents on the Pascal language
  244. which are likely to be most useful to the
  245. Berkeley
  246. Pascal user.
  247. Complete references for these documents are given in section 1.7.
  248. .SH
  249. Pascal User Manual
  250. .PP
  251. By Kathleen Jensen and Niklaus Wirth, the
  252. .I "User Manual"
  253. provides a tutorial introduction to the features
  254. of the language Pascal,
  255. and serves as an excellent quick-reference to the language.
  256. The reader with no familiarity with Algol-like languages 
  257. may prefer one of the Pascal text books listed below,
  258. as they provide more examples and explanation.
  259. Particularly important here are pages 116-118 which define the syntax
  260. of the language.
  261. Sections 13 and 14 and Appendix F pertain only to the
  262. 6000-3.4 implementation of Pascal.
  263. .SH
  264. Pascal Report
  265. .PP
  266. By Niklaus Wirth, this document is bound with the
  267. .I "User Manual."
  268. It is the guiding reference for implementors and the fundamental
  269. definition of the language.
  270. Some programmers find this report too concise to be of practical use,
  271. preferring the
  272. .I "User Manual"
  273. as a reference.
  274. .SH
  275. Books on Pascal
  276. .PP
  277. Several good books which teach Pascal or use it as a medium are
  278. available.
  279. The books by Wirth
  280. .I "Systematic Programming"
  281. and
  282. .I "Algorithms + Data Structures = Programs"
  283. use Pascal as a vehicle for teaching programming and data structure
  284. concepts respectively.
  285. They are both recommended.
  286. Other books on Pascal are listed in the references below.
  287. .NH 2
  288. Pascal documents \- The Berkeley Implementation
  289. .PP
  290. This section describes the documentation which is available
  291. describing the
  292. Berkeley
  293. implementation of Pascal.
  294. .SH
  295. User's Manual
  296. .PP
  297. The document you are reading is the 
  298. .I "User's Manual"
  299. for
  300. .UP .
  301. We often refer the reader to the
  302. Jensen-Wirth
  303. .I "User Manual"
  304. mentioned above,
  305. a different document with a similar name.
  306. .SH
  307. Manual sections
  308. .PP
  309. The sections relating to Pascal in the
  310. .I "UNIX Programmer's Manual"
  311. are
  312. .IX
  313. (1),
  314. .PI
  315. (1),
  316. .PC
  317. (1),
  318. .X
  319. (1),
  320. .I pxp
  321. (1),
  322. and
  323. .I pxref
  324. (1).
  325. These sections give a description of each program,
  326. summarize the available options,
  327. indicate files used by the program,
  328. give basic information on the diagnostics produced 
  329. and include a list of known bugs.
  330. .SH
  331. Implementation notes
  332. .PP
  333. For those interested in the internal organization of the
  334. Berkeley
  335. Pascal system there are a series of
  336. .I "Implementation Notes"
  337. describing these details.
  338. The
  339. .I "Berkeley Pascal PXP Implementation Notes"
  340. describe the Pascal interpreter
  341. .X \|;
  342. and the
  343. .I "Berkeley Pascal PX Implementation Notes"
  344. describe the structure of the
  345. execution profiler
  346. .I pxp .
  347. .br
  348. .ne 8
  349. .NH 2
  350. References
  351. .de re
  352. .sp
  353. .IP
  354. 'nf
  355. ..
  356. .SH
  357. UNIX Documents
  358. .re
  359. .I "Communicating With UNIX"
  360. Computer Center
  361. University of California, Berkeley
  362. January, 1978.
  363. .re
  364. Ricki Blau and James Joyce
  365. .I "Edit: a tutorial"
  366. UNIX User's Supplementary Documents (USD), 14
  367. University of California, Berkeley, CA. 94720
  368. April, 1986.
  369. .re
  370. .I "Ex/edit Command Summary"
  371. Computer Center
  372. University of California, Berkeley
  373. August, 1978.
  374. .re
  375. William Joy
  376. .I "Ex Reference Manual \- Version 3.7"
  377. UNIX User's Supplementary Documents (USD), 16
  378. University of California, Berkeley, CA. 94720
  379. April, 1986.
  380. .re
  381. William Joy
  382. .I "An Introduction to Display Editing with Vi"
  383. UNIX User's Supplementary Documents (USD), 15
  384. University of California, Berkeley, CA. 94720
  385. April, 1986.
  386. .re
  387. William Joy
  388. .I "An Introduction to the C shell (Revised)"
  389. UNIX User's Supplementary Documents (USD), 4
  390. University of California, Berkeley, CA. 94720
  391. April, 1986.
  392. .re
  393. Brian W. Kernighan
  394. .I "UNIX for Beginners \- Second Edition"
  395. UNIX User's Supplementary Documents (USD), 1
  396. University of California, Berkeley, CA. 94720
  397. April, 1986.
  398. .re
  399. Brian W. Kernighan
  400. .I "A Tutorial Introduction to the UNIX Text Editor"
  401. UNIX User's Supplementary Documents (USD), 12
  402. University of California, Berkeley, CA. 94720
  403. April, 1986.
  404. .re
  405. Dennis M. Ritchie and Ken Thompson
  406. .I "The UNIX Time Sharing System"
  407. Reprinted from Communications of the ACM July 1974 in
  408. UNIX Programmer's Supplementary Documents, Volume 2 (PS2), 1
  409. University of California, Berkeley, CA. 94720
  410. April, 1986.
  411. .SH
  412. Pascal Language Documents
  413. .re
  414. Cooper and Clancy
  415. .I "Oh! Pascal!, 2nd Edition"
  416. W. W. Norton & Company, Inc.
  417. 500 Fifth Ave., NY, NY. 10110
  418. 1985, 475 pp.
  419. .re
  420. Cooper
  421. .I "Standard Pascal User Reference Manual"
  422. W. W. Norton & Company, Inc.
  423. 500 Fifth Ave., NY, NY. 10110
  424. 1983, 176 pp.
  425. .re
  426. Kathleen Jensen and Niklaus Wirth
  427. .I "Pascal \- User Manual and Report"
  428. Springer-Verlag, New York.
  429. 1975, 167 pp.
  430. .re
  431. Niklaus Wirth
  432. .I "Algorithms + Data structures = Programs"
  433. Prentice-Hall, New York.
  434. 1976, 366 pp.
  435. .SH
  436. Berkeley Pascal documents
  437. .PP
  438. The following documents are available from the Computer Center Library
  439. at the University of California, Berkeley.
  440. .nf
  441. .re
  442. William N. Joy
  443. .I "Berkeley Pascal PX Implementation Notes"
  444. Version 1.1, April 1979.
  445. (Vax-11 Version 2.0 By Kirk McKusick, December, 1979)
  446. .re
  447. William N. Joy
  448. .I "Berkeley Pascal PXP Implementation Notes"
  449. Version 1.1, April 1979.
  450.