1*44281Scael.\" Copyright (c) 1990 Regents of the University of California. 2*44281Scael.\" All rights reserved. The Berkeley software License Agreement 3*44281Scael.\" specifies the terms and conditions for redistribution. 419454Smckusick.\" 5*44281Scael.\" @(#)ratfor.1 6.3 (Berkeley) 06/26/90 643083Scael.\" 743083Scael.Dd 843083Scael.Dt RATFOR 1 943083Scael.Os ATT 7th 1043083Scael.Sh NAME 1143083Scael.Nm ratfor 1243083Scael.Nd rational Fortran dialect 1343083Scael.Sh SYNOPSIS 1443083Scael.Nm ratfor 1543083Scael.Op Ar option ... 1643083Scael.Op Ar filename ... 1743083Scael.Sh DESCRIPTION 1843083Scael.Nm Ratfor 1919454Smckusickconverts a rational dialect of Fortran into ordinary irrational Fortran. 2043083Scael.Nm Ratfor 2119454Smckusickprovides control flow constructs essentially identical to those in C: 2243083Scael.Tw Fl 2343083Scael.Tp statement grouping: 2419454Smckusick{ statement; statement; statement } 2543083Scael.Tp decision-making: 2643083Scael.Ds I 2743083Scaelif (condition) statement { else statement } 2819454Smckusickswitch (integer value) { 2943083Scael\tcase integer: statement 3043083Scael\t... 3143083Scael\t[default]: statement 3219454Smckusick} 3343083Scael.De 3443083Scael.Tp loops: 3543083Scael.Ds L 3619454Smckusickwhile (condition) statement 3719454Smckusickfor (expression; condition; expression) statement 3819454Smckusickdo limits statement 3943083Scaelrepeat statement [until (condition)] 4019454Smckusickbreak 4119454Smckusicknext 4243083Scael.De 4343083Scael.Tp 4443083Scael.Pp 4519454Smckusickand some syntactic sugar to make programs easier to read and write: 4643083Scael.Tw Fl 4743083Scael.Tp free form input: 4819454Smckusickmultiple statements/line; automatic continuation 4943083Scael.Tp comments: 5019454Smckusick# this is a comment 5143083Scael.Tp translation of relationals: 5219454Smckusick>, >=, etc., become .GT., .GE., etc. 5343083Scael.Tp return (expression) 5419454Smckusickreturns expression to caller from function 5543083Scael.Tp define: 5619454Smckusickdefine name replacement 5743083Scael.Tp include: 5819454Smckusickinclude filename 5943083Scael.Tp 6043083Scael.Pp 6143083Scael.Nm Ratfor 6219454Smckusickis best used with 6343083Scael.Xr f77 1 . 6443083Scael.Sh SEE ALSO 6543083Scael.Xr f77 1 6619454Smckusick.br 6719454SmckusickB. W. Kernighan and P. J. Plauger, 6843083Scael.Em Software Tools , 6943083ScaelAddison-Wesley, 7043083Scael1976. 7143083Scael.Sh HISTORY 7243083Scael.Nm Ratfor 7343083Scaelappeared in Version 7 AT&T UNIX. 74