1*62203Sbostic.\" Copyright (c) 1991, 1993 2*62203Sbostic.\" The Regents of the University of California. All rights reserved. 319454Smckusick.\" 448064Sbostic.\" %sccs.include.proprietary.man% 543083Scael.\" 6*62203Sbostic.\" @(#)ratfor.1 8.1 (Berkeley) 06/06/93 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: 2350809Scael.Bl -tag -width indent 2450809Scael.It Statement grouping: 2519454Smckusick{ statement; statement; statement } 2650809Scael.It Decision-making: 2750809Scael.Bd -unfilled -compact 2843083Scaelif (condition) statement { else statement } 2919454Smckusickswitch (integer value) { 3043083Scael\tcase integer: statement 3143083Scael\t... 3243083Scael\t[default]: statement 3319454Smckusick} 3450809Scael.Ed 3550809Scael.It Loops: 3650809Scael.Bd -unfilled -compact 3719454Smckusickwhile (condition) statement 3819454Smckusickfor (expression; condition; expression) statement 3919454Smckusickdo limits statement 4043083Scaelrepeat statement [until (condition)] 4119454Smckusickbreak 4219454Smckusicknext 4350809Scael.Ed 4450809Scael.El 4543083Scael.Pp 4650809ScaelAnd some syntactic sugar to make programs easier to read and write: 4750809Scael.Bl -tag -width Fl 4850809Scael.It Free form input: 4919454Smckusickmultiple statements/line; automatic continuation 5050809Scael.It Comments: 5119454Smckusick# this is a comment 5250809Scael.It Translation of relationals: 5319454Smckusick>, >=, etc., become .GT., .GE., etc. 5450809Scael.It Return (expression) 5519454Smckusickreturns expression to caller from function 5650809Scael.It Define: 5719454Smckusickdefine name replacement 5850809Scael.It Include: 5919454Smckusickinclude filename 6050809Scael.El 6143083Scael.Pp 6243083Scael.Nm Ratfor 6319454Smckusickis best used with 6443083Scael.Xr f77 1 . 6543083Scael.Sh SEE ALSO 6643083Scael.Xr f77 1 6750809Scael.Rs 6850809Scael.%A B. W. Kernighan 6950809Scael.%A P. J. Plauger 7050809Scael.%T "Software Tools" 7150809Scael.%I Addison-Wesley 7250809Scael.%D 1976 7350809Scael.Re 7443083Scael.Sh HISTORY 7543083Scael.Nm Ratfor 7650809Scaelappeared in 7750809Scael.At v6 . 78