1*48064Sbostic.\" Copyright (c) 1991 The Regents of the University of California. 2*48064Sbostic.\" All rights reserved. 319454Smckusick.\" 4*48064Sbostic.\" %sccs.include.proprietary.man% 543083Scael.\" 6*48064Sbostic.\" @(#)ratfor.1 6.6 (Berkeley) 04/16/91 7*48064Sbostic.\" 847335Scael.Vx 947335Scael.Vx 1043083Scael.Dd 1143083Scael.Dt RATFOR 1 1243083Scael.Os ATT 7th 1343083Scael.Sh NAME 1443083Scael.Nm ratfor 1543083Scael.Nd rational Fortran dialect 1643083Scael.Sh SYNOPSIS 1743083Scael.Nm ratfor 1843083Scael.Op Ar option ... 1943083Scael.Op Ar filename ... 2043083Scael.Sh DESCRIPTION 2143083Scael.Nm Ratfor 2219454Smckusickconverts a rational dialect of Fortran into ordinary irrational Fortran. 2343083Scael.Nm Ratfor 2419454Smckusickprovides control flow constructs essentially identical to those in C: 2543083Scael.Tw Fl 2643083Scael.Tp statement grouping: 2719454Smckusick{ statement; statement; statement } 2843083Scael.Tp decision-making: 2943083Scael.Ds I 3043083Scaelif (condition) statement { else statement } 3119454Smckusickswitch (integer value) { 3243083Scael\tcase integer: statement 3343083Scael\t... 3443083Scael\t[default]: statement 3519454Smckusick} 3643083Scael.De 3743083Scael.Tp loops: 3843083Scael.Ds L 3919454Smckusickwhile (condition) statement 4019454Smckusickfor (expression; condition; expression) statement 4119454Smckusickdo limits statement 4243083Scaelrepeat statement [until (condition)] 4319454Smckusickbreak 4419454Smckusicknext 4543083Scael.De 4643083Scael.Tp 4743083Scael.Pp 4819454Smckusickand some syntactic sugar to make programs easier to read and write: 4943083Scael.Tw Fl 5043083Scael.Tp free form input: 5119454Smckusickmultiple statements/line; automatic continuation 5243083Scael.Tp comments: 5319454Smckusick# this is a comment 5443083Scael.Tp translation of relationals: 5519454Smckusick>, >=, etc., become .GT., .GE., etc. 5643083Scael.Tp return (expression) 5719454Smckusickreturns expression to caller from function 5843083Scael.Tp define: 5919454Smckusickdefine name replacement 6043083Scael.Tp include: 6119454Smckusickinclude filename 6243083Scael.Tp 6343083Scael.Pp 6443083Scael.Nm Ratfor 6519454Smckusickis best used with 6643083Scael.Xr f77 1 . 6743083Scael.Sh SEE ALSO 6843083Scael.Xr f77 1 6919454Smckusick.br 7019454SmckusickB. W. Kernighan and P. J. Plauger, 7143083Scael.Em Software Tools , 7243083ScaelAddison-Wesley, 7343083Scael1976. 7443083Scael.Sh HISTORY 7543083Scael.Nm Ratfor 7643083Scaelappeared in Version 7 AT&T UNIX. 77