Annotation of cci/usr/src/man/man1/ratfor.1, revision 1.1.1.1

1.1       root        1: .TH RATFOR 1 "18 January 1983"
                      2: .SH NAME
                      3: ratfor \- rational Fortran dialect
                      4: .SH SYNOPSIS
                      5: .B ratfor
                      6: [ -h ]
                      7: [ -6(char) ]
                      8: [ -C ]
                      9: [ filename ... ]
                     10: .SH DESCRIPTION
                     11: .I Ratfor
                     12: converts a rational dialect of Fortran into ordinary irrational Fortran.
                     13: .PP
                     14: The following options can be applied:
                     15: .TP
                     16: .BR \-h
                     17: character string will be converted into hollerith format. e.g. "..."
                     18: to 27h... if this flag is on.
                     19: .TP
                     20: .BR \-6
                     21: The character that immediate follow this flag will be the character
                     22: that will appear in column 6 as a continuation of line symbol.  If
                     23: the flag is off, the '&' will appear in column 1 as default.
                     24: .TP
                     25: .BR \-C
                     26: If this flag is on, additional comment lines appear on the converted
                     27: code.  These comment lines are usually derived from the for loop or
                     28: while loop usage.
                     29: .PP
                     30: .I Ratfor
                     31: provides control flow constructs essentially identical to those in C:
                     32: .TP
                     33: statement grouping:
                     34: .nf
                     35: { statement; statement; statement }
                     36: .TP
                     37: decision-making:
                     38: if (condition) statement [ else statement ]
                     39: .br
                     40: switch (integer value) {
                     41:        case integer:   statement
                     42:        ...
                     43:        [ default: ]    statement
                     44: }
                     45: .TP
                     46: loops:
                     47: while (condition) statement
                     48: for (expression; condition; expression) statement
                     49: do limits statement
                     50: repeat statement [ until (condition) ]
                     51: break
                     52: next
                     53: .LP
                     54: and some syntactic sugar to make programs easier to read and write:
                     55: .TP
                     56: free form input:
                     57: multiple statements/line; automatic continuation
                     58: .TP
                     59: comments:
                     60: # this is a comment
                     61: .TP
                     62: translation of relationals:
                     63: >, >=, etc., become .GT., .GE., etc.
                     64: .TP
                     65: return (expression)
                     66: returns expression to caller from function
                     67: .TP
                     68: define:
                     69: define name replacement
                     70: .TP
                     71: include:
                     72: include filename
                     73: .PP
                     74: .fi
                     75: .I Ratfor
                     76: is best used with
                     77: .IR f77 (1).
                     78: .SH "SEE ALSO"
                     79: f77(1)
                     80: .br
                     81: B. W. Kernighan and P. J. Plauger,
                     82: .IR "Software Tools" ,
                     83: Addison-Wesley, 1976.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.