RATFOR(1) UNIX Programmer's Manual RATFOR(1)
ratfor - rational Fortran dialect
S
\bSY
\bYN
\bNO
\bOP
\bPS
\bSI
\bIS
\bS
r
\bra
\bat
\btf
\bfo
\bor
\br [ option ... ] [ filename ... ]
D
\bDE
\bES
\bSC
\bCR
\bRI
\bIP
\bPT
\bTI
\bIO
\bON
\bN
_
\bR_
\ba_
\bt_
\bf_
\bo_
\br converts a rational dialect of Fortran into ordinary
irrational Fortran. _
\bR_
\ba_
\bt_
\bf_
\bo_
\br provides control flow constructs
essentially identical to those in C:
{ statement; statement; statement }
if (condition) statement [ else statement ]
while (condition) statement
for (expression; condition; expression) statement
repeat statement [ until (condition) ]
and some syntactic sugar to make programs easier to read and write:
multiple statements/line; automatic continuation
translation of relationals:
>, >=, etc., become .GT., .GE., etc.
returns expression to caller from function
_
\bR_
\ba_
\bt_
\bf_
\bo_
\br is best used with _
\bf_
\b7_
\b7(1).
Printed 7/9/88 April 29, 1985 1
RATFOR(1) UNIX Programmer's Manual RATFOR(1)
S
\bSE
\bEE
\bE A
\bAL
\bLS
\bSO
\bO
B. W. Kernighan and P. J. Plauger, _
\bS_
\bo_
\bf_
\bt_
\bw_
\ba_
\br_
\be _
\bT_
\bo_
\bo_
\bl_
\bs, Addison-
Printed 7/9/88 April 29, 1985 2