RATFOR(1) DOMAIN/IX Reference Manual (SYS5) RATFOR(1)
NAME
ratfor - rational FORTRAN dialect
USAGE
ratfor [ options ] [ files ]
DESCRIPTION
Ratfor converts a rational dialect of FORTRAN into ordinary
FORTRAN. It provides control flow constructs essentially
identical to those in C, as well as simplified syntax to
make programs easier to read and write. These constructs
are described below:
statement grouping:
{ statement; statement; statement }
decision-making:
if (condition) statement [ else statement ]
switch (integer value) {
case integer: statement
...
[ default: ] statement
}
loops:
while (condition) statement
for (expression; condition; expression) statement
do limits statement
repeat statement [ until (condition) ]
break
next
free form input:
multiple statements/line; automatic continuation
comments:
# this is a comment.
translation of relationals:
>, >=, etc., become .GT., .GE., etc.
return expression to caller from function:
return (expression)
define:
define name replacement
include:
include file
OPTIONS
-h Turn quoted strings into 27H constructs.
Printed 6/10/85 RATFOR-1
RATFOR(1) DOMAIN/IX Reference Manual (SYS5) RATFOR(1)
-C Copy comments to the output and attempt to format
it neatly.
RATFOR-2 Printed 6/10/85
RATFOR(1) DOMAIN/IX Reference Manual (SYS5) RATFOR(1)
-6x Make the continuation character x and place it in
column six. Normally, continuation lines are
marked with an ampersand (&) in column one.
Printed 6/10/85 RATFOR-3