date and time created 88/12/12 20:54:43 by kfall
[unix-history] / usr / src / old / ratfor / ratfor.1
CommitLineData
5c7d0ca0 1.\" @(#)ratfor.1 6.1 (Berkeley) %G%
c74f2173 2.\"
5c7d0ca0 3.TH RATFOR 1 ""
c74f2173
KM
4.AT 3
5.SH NAME
6ratfor \- rational Fortran dialect
7.SH SYNOPSIS
8.B ratfor
9[ option ... ]
10[ filename ... ]
11.SH DESCRIPTION
12.I Ratfor
13converts a rational dialect of Fortran into ordinary irrational Fortran.
14.I Ratfor
15provides control flow constructs essentially identical to those in C:
16.TP
17statement grouping:
18.nf
19{ statement; statement; statement }
20.TP
21decision-making:
22if (condition) statement [ else statement ]
23.br
24switch (integer value) {
25 case integer: statement
26 ...
27 [ default: ] statement
28}
29.TP
30loops:
31while (condition) statement
32for (expression; condition; expression) statement
33do limits statement
34repeat statement [ until (condition) ]
35break
36next
37.LP
38and some syntactic sugar to make programs easier to read and write:
39.TP
40free form input:
41multiple statements/line; automatic continuation
42.TP
43comments:
44# this is a comment
45.TP
46translation of relationals:
47>, >=, etc., become .GT., .GE., etc.
48.TP
49return (expression)
50returns expression to caller from function
51.TP
52define:
53define name replacement
54.TP
55include:
56include filename
57.PP
58.fi
59.I Ratfor
60is best used with
61.IR f77 (1).
62.SH "SEE ALSO"
8fc58068 63f77(1)
c74f2173
KM
64.br
65B. W. Kernighan and P. J. Plauger,
66.IR "Software Tools" ,
67Addison-Wesley, 1976.