1.\" Copyright (c) 1990 Regents of the University of California. 2.\" All rights reserved. The Berkeley software License Agreement 3.\" specifies the terms and conditions for redistribution. 4.\" 5.\" @(#)ratfor.1 6.4 (Berkeley) 07/24/90 6.\" 7.Dd 8.Dt RATFOR 1 9.Os ATT 7th 10.Sh NAME 11.Nm ratfor 12.Nd rational Fortran dialect 13.Sh SYNOPSIS 14.Nm ratfor 15.Op Ar option ... 16.Op Ar filename ... 17.Sh DESCRIPTION 18.Nm Ratfor 19converts a rational dialect of Fortran into ordinary irrational Fortran. 20.Nm Ratfor 21provides control flow constructs essentially identical to those in C: 22.Tw Fl 23.Tp statement grouping: 24{ statement; statement; statement } 25.Tp decision-making: 26.Ds I 27if (condition) statement { else statement } 28switch (integer value) { 29\tcase integer: statement 30\t... 31\t[default]: statement 32} 33.De 34.Tp loops: 35.Ds L 36while (condition) statement 37for (expression; condition; expression) statement 38do limits statement 39repeat statement [until (condition)] 40break 41next 42.De 43.Tp 44.Pp 45and some syntactic sugar to make programs easier to read and write: 46.Tw Fl 47.Tp free form input: 48multiple statements/line; automatic continuation 49.Tp comments: 50# this is a comment 51.Tp translation of relationals: 52>, >=, etc., become .GT., .GE., etc. 53.Tp return (expression) 54returns expression to caller from function 55.Tp define: 56define name replacement 57.Tp include: 58include filename 59.Tp 60.Pp 61.Nm Ratfor 62is best used with 63.Xr f77 1 . 64.Sh SEE ALSO 65.Xr f77 1 66.br 67B. W. Kernighan and P. J. Plauger, 68.Em Software Tools , 69Addison-Wesley, 701976. 71.Sh HISTORY 72.Nm Ratfor 73appeared in Version 7 AT&T UNIX. 74