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