|
|
Power 6/32 Unix version 1.2b
.TH RATFOR 1 "18 January 1983"
.SH NAME
ratfor \- rational Fortran dialect
.SH SYNOPSIS
.B ratfor
[ -h ]
[ -6(char) ]
[ -C ]
[ filename ... ]
.SH DESCRIPTION
.I Ratfor
converts a rational dialect of Fortran into ordinary irrational Fortran.
.PP
The following options can be applied:
.TP
.BR \-h
character string will be converted into hollerith format. e.g. "..."
to 27h... if this flag is on.
.TP
.BR \-6
The character that immediate follow this flag will be the character
that will appear in column 6 as a continuation of line symbol. If
the flag is off, the '&' will appear in column 1 as default.
.TP
.BR \-C
If this flag is on, additional comment lines appear on the converted
code. These comment lines are usually derived from the for loop or
while loop usage.
.PP
.I Ratfor
provides control flow constructs essentially identical to those in C:
.TP
statement grouping:
.nf
{ statement; statement; statement }
.TP
decision-making:
if (condition) statement [ else statement ]
.br
switch (integer value) {
case integer: statement
...
[ default: ] statement
}
.TP
loops:
while (condition) statement
for (expression; condition; expression) statement
do limits statement
repeat statement [ until (condition) ]
break
next
.LP
and some syntactic sugar to make programs easier to read and write:
.TP
free form input:
multiple statements/line; automatic continuation
.TP
comments:
# this is a comment
.TP
translation of relationals:
>, >=, etc., become .GT., .GE., etc.
.TP
return (expression)
returns expression to caller from function
.TP
define:
define name replacement
.TP
include:
include filename
.PP
.fi
.I Ratfor
is best used with
.IR f77 (1).
.SH "SEE ALSO"
f77(1)
.br
B. W. Kernighan and P. J. Plauger,
.IR "Software Tools" ,
Addison-Wesley, 1976.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.