first pass for new make
[unix-history] / usr / src / usr.bin / pascal / pi / pi.1
CommitLineData
1628125f
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.\"
6d1ba9bc 5.\" @(#)pi.1 6.1 (Berkeley) %G%
1628125f 6.\"
6d1ba9bc 7.TH PI 1 ""
1628125f
KM
8.UC
9.SH NAME
10pi \- Pascal interpreter code translator
11.SH SYNOPSIS
12.B pi
13[
14.B option
15] [
16.B \-i
17name ...
18] name.p
19.SH DESCRIPTION
20.I Pi
21translates the program in the file
22.I name.p
23leaving interpreter code in the file
24.I obj
25in the current directory.
26The interpreter code can be executed using
27.I px.
28.I Pix
29performs the functions of
30.I pi
31and
32.I px
33for `load and go' Pascal.
34.PP
35The following flags are interpreted by
36.I pi;
37the associated options can also be controlled in comments within the program
38as described in the
39.I "Berkeley Pascal User's Manual."
40.TP 6
41.B \-b
42Block buffer the file
43.I output.
44.TP 6
45.B \-i
46Enable the listing for
47any specified procedures and functions and while processing any specified
48.B include
49files.
50.TP 6
51.B \-l
52Make a program listing during translation.
53.TP 6
54.B \-n
55Begin each listed
56.B include
57file on a new page with a banner line.
58.TP 6
59.B \-p
60Suppress the post-mortem control flow backtrace
61if an error occurs;
62suppress statement limit counting.
63.TP 6
64.B \-s
65Accept standard Pascal only;
66non-standard constructs cause warning diagnostics.
67.TP 6
68.B \-t
69Suppress runtime tests of subrange variables and treat
70.B assert
71statements as comments.
72.TP 6
73.B \-u
74Card image mode;
75only the first 72 characters of input lines are used.
76.TP 6
77.B \-w
78Suppress warning diagnostics.
79.TP 6
80.B \-z
81Allow execution profiling with
82.I pxp
83by generating statement counters, and arranging for the
84creation of the profile data file
85.I pmon.out
86when the resulting object is executed.
87.dt
88.SH FILES
89file.p input file
90.br
91file.i \fBinclude\fR file(s)
92.br
91d0cab8 93/usr/lib/pi2.*strings text of the error messages
1628125f
KM
94.br
95.nf
96/usr/lib/how_pi* basic usage explanation
97.fi
98obj interpreter code output
99.SH "SEE ALSO"
100Berkeley Pascal User's Manual
101.br
102pix(1),
103px(1),
104pxp(1),
105pxref(1)
106.SH DIAGNOSTICS
107For a basic explanation do
108.IP
109.B pi
110.PP
111In the diagnostic output of the translator,
112lines containing syntax errors are listed with a flag indicating the
113point of error.
114Diagnostic messages indicate the action which the recovery mechanism
115took in order to be able to continue parsing.
116Some diagnostics indicate only that the input is `malformed.'
117This occurs if the recovery can find no simple correction to make the input
118syntactically valid.
119.LP
120Semantic error diagnostics indicate a line in the source text near the
121point of error.
122Some errors evoke more than one diagnostic to help pinpoint the error;
123the follow-up messages begin with an ellipsis `...'.
124.LP
125.ne 8
126The first character of each error message indicates its class:
127.LP
128.ta 1ic 2.i
129 E Fatal error; no code will be generated.
130.br
131 e Non-fatal error.
132.br
133 w Warning \- a potential problem.
134.br
135 s Non-standard Pascal construct warning.
136.LP
137If a severe error occurs which inhibits further processing,
138the translator will give a diagnostic and then `QUIT'.
139.SH AUTHORS
140Charles B. Haley, William N. Joy, and Ken Thompson
141.br
142Ported to VAX-11 by Peter Kessler
143.SH BUGS
144The keyword
145.B packed
146is recognized but has no effect.
147.PP
148For clarity,
149semantic errors should be flagged at an appropriate place in the source text,
150and multiple instances of the `same' semantic error should be summarized
151at the end of a
152.B procedure
153or
154.B function
155rather than evoking many diagnostics.
156.PP
157When
158.B include
159files are present,
160diagnostics relating to the last procedure in one file may appear after the
161beginning of the listing of the next.