pi(1)
NAME
pi − Pascal interpreter code translator
SYNTAX
pi [options] [−i name...] name.p
DESCRIPTION
The pi command translates the program in the file name.p leaving interpreter code in the file obj in the current directory. The interpreter code can be executed using px. The pix command performs the functions of pi and px for ‘load and go’ Pascal.
OPTIONS
The following flags are interpreted by pi. The associated options can also be controlled in comments within the program as described in the "Berkeley Pascal User’s Manual."
−bBlock buffers the file output.
−iEnables listing for specified procedures and functions and while processing specified include files.
−lCreates a program listing while translating source.
−nBegins each listed include file on a new page with a banner line.
−pSuppresses control flow backtrace on error; suppresses statement limit counting.
−sAccepts standard Pascal only; non-standard constructs cause warning diagnostics.
−tSuppresses runtime tests of subrange variables and treat; treats assert statements as comments.
−uRuns in card image mode; only the first 72 characters of input lines are used.
−w
Suppresses all warning diagnostics.
−zEnables execution profiling with pxp by generating statement counters, and arranging for the creation of the profile data file pmon.out when the resulting object is executed.
RESTRICTIONS
The keyword packed is recognized but has no effect.
When include files are present, diagnostics relating to the last procedure in one file may appear after the beginning of the listing of the next.
DIAGNOSTICS
For a basic explanation do
pi
In the diagnostic output of the translator, lines containing syntax errors are listed with a flag indicating the point of error. Diagnostic messages indicate the action which the recovery mechanism took in order to be able to continue parsing. Some diagnostics indicate only that the input is ‘malformed.’ This occurs if the recovery can find no simple correction to make the input syntactically valid.
Semantic error diagnostics indicate a line in the source text near the point of error. Some errors evoke more than one diagnostic to help pinpoint the error; the follow-up messages begin with an ellipsis ‘...’.
The first character of each error message indicates its class:
E Fatal error; no code will be generated.
e Non-fatal error.
w Warning − a potential problem.
s Non-standard Pascal construct warning.
If a severe error occurs which inhibits further processing, the translator will give a diagnostic and then ‘QUIT’.
FILES
file.pinput file
file.iinclude file(s)
/usr/lib/pi3.*strings text of the error messages
/usr/lib/how_pi* basic usage explanation
objinterpreter code output
SEE ALSO
pix(1), px(1), pxp(1), pxref(1)
"Berkeley Pascal User’s Manual," ULTRIX-32 Supplementary Documents, Vol. II:Programmer