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