converted man page
[unix-history] / usr / src / old / ratfor / ratfor.1
index 5e04f0a..c124814 100644 (file)
@@ -1,67 +1,73 @@
-.\"    @(#)ratfor.1    5.1 (Berkeley) %G%
+.\" Copyright (c) 1990 Regents of the University of California.
+.\" All rights reserved.  The Berkeley software License Agreement
+.\" specifies the terms and conditions for redistribution.
 .\"
 .\"
-.TH RATFOR 1 "18 January 1983"
-.AT 3
-.SH NAME
-ratfor \- rational Fortran dialect
-.SH SYNOPSIS
-.B ratfor
-[ option ... ]
-[ filename ... ]
-.SH DESCRIPTION
-.I Ratfor
+.\"     @(#)ratfor.1   6.3 (Berkeley) %G%
+.\"
+.Dd 
+.Dt RATFOR 1
+.Os ATT 7th
+.Sh NAME
+.Nm ratfor
+.Nd rational Fortran dialect
+.Sh SYNOPSIS
+.Nm ratfor
+.Op Ar option ...
+.Op Ar filename ...
+.Sh DESCRIPTION
+.Nm Ratfor
 converts a rational dialect of Fortran into ordinary irrational Fortran.
 converts a rational dialect of Fortran into ordinary irrational Fortran.
-.I Ratfor
+.Nm Ratfor
 provides control flow constructs essentially identical to those in C:
 provides control flow constructs essentially identical to those in C:
-.TP
-statement grouping:
-.nf
+.Tw Fl
+.Tp statement grouping:
 { statement; statement; statement }
 { statement; statement; statement }
-.TP
-decision-making:
-if (condition) statement [ else statement ]
-.br
+.Tp decision-making:
+.Ds I
+if (condition) statement { else statement }
 switch (integer value) {
 switch (integer value) {
-       case integer:   statement
-       ...
-       [ default: ]    statement
+\tcase integer:        statement
+\t...
+\t[default]: statement
 }
 }
-.TP
-loops:
+.De
+.Tp loops:
+.Ds L
 while (condition) statement
 for (expression; condition; expression) statement
 do limits statement
 while (condition) statement
 for (expression; condition; expression) statement
 do limits statement
-repeat statement [ until (condition) ]
+repeat statement [until (condition)]
 break
 next
 break
 next
-.LP
+.De
+.Tp
+.Pp
 and some syntactic sugar to make programs easier to read and write:
 and some syntactic sugar to make programs easier to read and write:
-.TP
-free form input:
+.Tw Fl
+.Tp free form input:
 multiple statements/line; automatic continuation
 multiple statements/line; automatic continuation
-.TP
-comments:
+.Tp comments:
 # this is a comment
 # this is a comment
-.TP
-translation of relationals:
+.Tp translation of relationals:
 >, >=, etc., become .GT., .GE., etc.
 >, >=, etc., become .GT., .GE., etc.
-.TP
-return (expression)
+.Tp return (expression)
 returns expression to caller from function
 returns expression to caller from function
-.TP
-define:
+.Tp define:
 define name replacement
 define name replacement
-.TP
-include:
+.Tp include:
 include filename
 include filename
-.PP
-.fi
-.I Ratfor
+.Tp
+.Pp
+.Nm Ratfor
 is best used with
 is best used with
-.IR f77 (1).
-.SH "SEE ALSO"
-f77(1)
+.Xr f77  1  .
+.Sh SEE ALSO
+.Xr f77 1
 .br
 B. W. Kernighan and P. J. Plauger,
 .br
 B. W. Kernighan and P. J. Plauger,
-.IR "Software Tools" ,
-Addison-Wesley, 1976.
+.Em Software Tools ,
+Addison-Wesley,
+1976.
+.Sh HISTORY
+.Nm Ratfor
+appeared in Version 7 AT&T UNIX.