Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ratfor(1) — sys5 — Apollo Domain/IX SR9.5

Media Vault

Software Library

Restoration Projects

Artifacts Sought



RATFOR(1)                DOMAIN/IX 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




Printed 12/4/86                                          RATFOR-1







RATFOR(1)                DOMAIN/IX SYS5                 RATFOR(1)



OPTIONS
     -h        Turn quoted strings into 27H constructs.

     -C        Copy comments to the output and attempt to format
               it neatly.

     -6x       Make the continuation character x and place it in
               column six.  Normally, continuation lines are
               marked with an ampersand (&) in column one.

RELATED INFORMATION
     DOMAIN/IX Support Tools Guide









































RATFOR-2                                          Printed 12/4/86





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