Unix and Linux Discussions Tagged with he i |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
0 |
1,429 |
What is on Your Mind? |
|
|
|
8 |
1,912 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,820 |
IT Security RSS |
|
|
|
1 |
2,248 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
4,595 |
OS X Support RSS |
|
|
|
0 |
3,318 |
OS X Support RSS |
|
|
|
0 |
3,040 |
OS X Support RSS |
|
|
|
0 |
1,427 |
Complex Event Processing RSS News |
|
|
|
0 |
2,268 |
OS X Support RSS |
|
|
|
0 |
1,409 |
Complex Event Processing RSS News |
|
|
|
0 |
1,685 |
IT Security RSS |
|
|
|
0 |
3,378 |
UNIX and Linux RSS News |
|
|
|
8 |
4,323 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
5,283 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
4,007 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,681 |
Programming |
|
|
|
1 |
4,089 |
Programming |
|
|
|
1 |
4,065 |
Shell Programming and Scripting |
|
|
|
2 |
4,728 |
Shell Programming and Scripting |
|
|
|
2 |
2,785 |
UNIX for Advanced & Expert Users |
|
|
|
9 |
7,114 |
Programming |
|
|
|
1 |
4,643 |
Shell Programming and Scripting |
|
|
|
3 |
3,311 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
2,843 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,569 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
2,345 |
UNIX for Dummies Questions & Answers |
|
|
|
13 |
7,799 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
3,311 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,708 |
IP Networking |
|
|
|
7 |
4,591 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,459 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
7,570 |
Programming |
|
|
|
1 |
3,780 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
3,442 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
1,731 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,069 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,602 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,766 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
124,841 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,260 |
UNIX for Dummies Questions & Answers |
RATFOR(1) General Commands Manual RATFOR(1)
NAME
ratfor - rational Fortran dialect
SYNOPSIS
ratfor [ option ... ] [ filename ... ]
DESCRIPTION
Ratfor converts a rational dialect of Fortran into ordinary irrational Fortran. Ratfor provides control flow constructs essentially iden-
tical to those in C:
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 [n]
next [n]
and some syntactic sugar to make programs easier to read and write:
free form input:
multiple statements/line; automatic continuation
comments:
# this is a comment
translation of relationals:
>, >=, etc., become .GT., .GE., etc.
return (expression)
returns expression to caller from function
define:
define name replacement
include:
include filename
The option -h causes quoted strings to be turned into 27H constructs. -C copies comments to the output, and attempts to format it neatly.
Normally, continuation lines are marked with a & in column 1; the option -6x makes the continuation character x and places it in column 6.
Ratfor is best used with f77(1).
SEE ALSO
f77(1)
B. W. Kernighan and P. J. Plauger, Software Tools, Addison-Wesley, 1976.
RATFOR(1)