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