148064Sbostic.\" Copyright (c) 1991 The Regents of the University of California. 248064Sbostic.\" All rights reserved. 319454Smckusick.\" 448064Sbostic.\" %sccs.include.proprietary.man% 543083Scael.\" 6*50809Scael.\" @(#)ratfor.1 6.7 (Berkeley) 08/08/91 748064Sbostic.\" 843083Scael.Dd 943083Scael.Dt RATFOR 1 1043083Scael.Os ATT 7th 1143083Scael.Sh NAME 1243083Scael.Nm ratfor 1343083Scael.Nd rational Fortran dialect 1443083Scael.Sh SYNOPSIS 1543083Scael.Nm ratfor 1643083Scael.Op Ar option ... 1743083Scael.Op Ar filename ... 1843083Scael.Sh DESCRIPTION 1943083Scael.Nm Ratfor 2019454Smckusickconverts a rational dialect of Fortran into ordinary irrational Fortran. 2143083Scael.Nm Ratfor 2219454Smckusickprovides control flow constructs essentially identical to those in C: 23*50809Scael.Bl -tag -width indent 24*50809Scael.It Statement grouping: 2519454Smckusick{ statement; statement; statement } 26*50809Scael.It Decision-making: 27*50809Scael.Bd -unfilled -compact 2843083Scaelif (condition) statement { else statement } 2919454Smckusickswitch (integer value) { 3043083Scael\tcase integer: statement 3143083Scael\t... 3243083Scael\t[default]: statement 3319454Smckusick} 34*50809Scael.Ed 35*50809Scael.It Loops: 36*50809Scael.Bd -unfilled -compact 3719454Smckusickwhile (condition) statement 3819454Smckusickfor (expression; condition; expression) statement 3919454Smckusickdo limits statement 4043083Scaelrepeat statement [until (condition)] 4119454Smckusickbreak 4219454Smckusicknext 43*50809Scael.Ed 44*50809Scael.El 4543083Scael.Pp 46*50809ScaelAnd some syntactic sugar to make programs easier to read and write: 47*50809Scael.Bl -tag -width Fl 48*50809Scael.It Free form input: 4919454Smckusickmultiple statements/line; automatic continuation 50*50809Scael.It Comments: 5119454Smckusick# this is a comment 52*50809Scael.It Translation of relationals: 5319454Smckusick>, >=, etc., become .GT., .GE., etc. 54*50809Scael.It Return (expression) 5519454Smckusickreturns expression to caller from function 56*50809Scael.It Define: 5719454Smckusickdefine name replacement 58*50809Scael.It Include: 5919454Smckusickinclude filename 60*50809Scael.El 6143083Scael.Pp 6243083Scael.Nm Ratfor 6319454Smckusickis best used with 6443083Scael.Xr f77 1 . 6543083Scael.Sh SEE ALSO 6643083Scael.Xr f77 1 67*50809Scael.Rs 68*50809Scael.%A B. W. Kernighan 69*50809Scael.%A P. J. Plauger 70*50809Scael.%T "Software Tools" 71*50809Scael.%I Addison-Wesley 72*50809Scael.%D 1976 73*50809Scael.Re 7443083Scael.Sh HISTORY 7543083Scael.Nm Ratfor 76*50809Scaelappeared in 77*50809Scael.At v6 . 78