Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ratfor(CP) — Xenix 2.3.4g

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     RATFOR(CP)               XENIX System V                RATFOR(CP)



     Name
          ratfor - Converts Rational FORTRAN into standard FORTRAN.

     Syntax
          ratfor [ option ... ] [ filename ... ]

     Description
          ratfor converts a rational dialect of FORTRAN into ordinary
          irrational FORTRAN.  ratfor provides control flow constructs
          essentially identical 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]

          It also provides some additional syntax 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 following options are available:



     Page 1                                           (printed 8/7/87)





     RATFOR(CP)               XENIX System V                RATFOR(CP)



          -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 an & in column 1.

          -6x  Makes the continuation character x and places it in
               column 6.















































     Page 2                                           (printed 8/7/87)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026