Part
5-The
FORTRAN
Pre-Compiler Program
The
IBM
FORTRAN
Pre-Compiler is a
program
that
detects
and
permits
correction
of
errors in a
FORTRAN
source
program
before
the
object
program
is compiled.
The
Pre-Compiler detects
many
of
the
more
common
programming
errors in
individual source statements,
and
indicates possible logical errors in
the
source
program
as a whole.
Two
versions
of
the
Pre-Compiler
are
provided,
one
for use
with
the
IBM
1621
Paper
Tape
Reader
and
IBM
Tape
Punch,
and
the
other
for
the
IBM
1622
Card
Read
Punch. A
FORTRAN
source
program
which
is
to
be
processed
may
be
punched
in
paper
tape
or
cards,
or
may
be
entered
directly from
the
typewriter.
The
operation
of
the
Pre-Compiler
can
be
divided
into two phases:
Error
Analysis
and
Final
Program
Summary.
During
the
error analysis phase,
each
statement
in
the
FORTRAN
program
is
analyzed for
an
error.
If
an
error is
detected,
an
error
code
is
typed,
the
state-
ment
containing
the
error is typed,
and
the
program
halts so
that
you
can
type
the
statement
correctly.
During
this phase, a
new
FORTRAN
source
program
can
be
punched
in
paper
tape
or
cards. After all statements
have
been
analyzed
and
corrected, if desired, a final
program
summary
is
typed.
The
final
program
summary
phase
includes information
about
possible
sources
of
errors
not
detectable
in
individual
source statements.
An additional feature
of
the
Pre-Compiler program, using
the
1620 program
switches, permits you to easily
alter
the
functions
of
the
error analysis
phase
for
individual requirements.
The
following options are available.
1.
You
can
suspend
the
halt
and
error correction routines,
thereby
providing
a quick error analysis only.
These
routines
can
be
suspended
for
the
entire
program
or
for individual
error
halts
during
normal processing.
2.
You can
enter
the
program
through
the
console
typewriter
rather
than
by
card
or
paper
tape
input.
3.
You
can
eliminate
punching
of
an
edited
source program.
4.
You
can
have correct
program
statements typed, in
addition
to
the
normal
operation in which only
incorrect
statements are typed.
The
standard
1620
FORTRAN
Pre-Compiler system contains all
of
the
functional
subroutine names
included
in
the
standard
FORTRAN
system.
If
you
make
altera-
tions to
the
functional names,
or
if you
add
additional subroutines to
the
FORTRAN
system, you
must
make
the corresponding alterations
and
additions to
the
Pre-
Compiler system.
Operation
of
the Pre-Compiler Program
Error Codes
72
Before
you
process any
program
on
the
Pre-Compiler, you
should
be
familiar with
the
nature
of
the
errors
that
the
program
is deSigned
to
detect.
During
the
error analysis
phase
of
the
program,
each
statement
is
analyzed
for
one
or
more
specific errors.
These
errors consist of
51
of
the
most
common
errors
usually
found
in
FORTRAN
source programs.
As
an
aid
in
evaluating
these errors,
they
have
been
grouped
into
seven categories:
Arithmetic statements