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